× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Looked at that too and found this

https://www.ibm.com/support/knowledgecenter/en/SSPSQF_9.0.0/com.ibm.etools.iseries.pgmgd.doc/cpprog299.htm

Hopefully the PTFs will resolve this.

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of John McKee
Sent: Tuesday, June 19, 2018 7:25 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: REST from V7R3

I hav not done C programming in pver twenty years, so this may not be helpful.

I remember seeing #include <stdio.h> as well as #include "stdio,h", but I don't recall the difference between the two forms. I >think< both forms are used on the i as well, but don't know.

I just used stdio.h as an example. Could the characters surrounding the header file make a difference?

John McKee

On Tue, Jun 19, 2018 at 5:50 PM, Don Osmond <don.osmond@xxxxxxxxxxxxxx>
wrote:

ITransport.h is not present so I will get PTFs done. As for the
Axis.h, it is there and I did the INCDIR('/qibm/proddata/os/
webservices/v1/client/include') and it did not find Axis.h.

Thanks

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of
Nadir Amra
Sent: Tuesday, June 19, 2018 5:52 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: RE: REST from V7R3

Don,

First, if you do not find the file

/qibm/proddata/os/WebServices/V1/client/include/axis/ITransport.h

you should load the latest HTTP group (even if you do have it you
should load latest HTTP group to pick up fixes).

The file has the prototypes for the transport APIs.

When I include a file, I do something like:

#include <axis/Axis.h>
#include <axis/ITransport.h>
#include <axis/AxisException.h>

and when I compile, I do something like:

CRTCMOD MODULE(AMRA/RESTCS) SRCSTMF('/restcs.c') DBGVIEW(*ALL)
ENUM(*INT)
INCDIR('/qibm/proddata/os/webservices/v1/client/include')

CRTpgm pgm(AMRA/RESTCS) module(amra/restcs)
bndsrvpgm(qsysdir/qaxis10cc)
ACTGRP(*NEW)


There is sample C source (restCS.c) at:

https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki
/dW%
20IBM%20Integrated%20Web%20Services%20for%20i/page/Send%20user-defined
% 20payloads%20using%20new%20client%20APIs

Documentation may be found in the Web Service Client for ILE
Programming GUI on the web site[1] near bottom of page, starting on page 169.


[1] http://www.ibm.com/support/docview.wss?uid=isg3T1026868



"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 06/19/2018
04:35:59 PM:

From: Don Osmond <don.osmond@xxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 06/19/2018 04:36 PM
Subject: RE: REST from V7R3
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>

Is there anything that would keep a V7R1 system (DEV box and PRD is
V7R3) would not support this line? I tried both with "" and <>.

#include "/QIBM/ProdData/OS/WebServices/V1/client/include/axis/Axis.h"

I get the following

Message . . . . : DPOLIB/QCSRC(SOMCLEPCCS), 52.11: CZM0296(30)
#include file
"/QIBM/ProdData/OS/WebServices/V1/client/include/axis/Axis.h" not
found.

The #include for these and others

#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>

Work just fine.

-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf
Of Nadir Amra
Sent: Tuesday, June 19, 2018 11:00 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: REST from V7R3

Hi, you are the client, so you do not need an integrated web
services server or any other server.

To consume a service, I would take a look at the integrated web
services client for ILE[1] - in particular, the transport APIs
(article for RPG[2]). Most examples are from the RPG perspective,
but you can extrapolate to do within C code since it is the same
APIs that are used by both C and RPG. The benefit of using
transport APIs is that it handles TCP/IP and HTTP and SSL for you.

[1] http://www.ibm.com/support/docview.wss?uid=isg3T1026868

[2]
http://www.ibm.com/developerworks/ibmi/library/i-send-receive-user-
defined-soap-rest-messages-trs/index.html

"MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx> wrote on 06/19/2018
09:19:49 AM:

From: Don Osmond <don.osmond@xxxxxxxxxxxxxx>
To: Midrange Systems Technical Discussion
<midrange-l@xxxxxxxxxxxx>
Date: 06/19/2018 09:22 AM
Subject: REST from V7R3
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>

If this needs to go to another group please let me know. First a
little history, back in the day (2005) I had to write a PGM on the
i5 to send credit card requests to Vital (now known as TSYS) and
that has worked for years. All in C using a socket connection and
the gsk_. I learned a lot and pretty sure Scott K had some examples.

So now the powers to be want to move to Sage (known now as paya).
This is a POST/GET type process. Found an example of RPG (sorry
now in my skill set) but I need to do this in C or CBL (ILE).
Maybe even PHP (another one not in my skill set). So some of the
documentation indicated I need to setup Web Services Server. Is
this correct? The PGM will need to submit POST and GET to the URL
provided by "paya". Am I even close?
Thanks



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: INVALID URI REMOVED

u=https-3A__lists.midrange.com_mailman_listinfo_midrange-
2Dl&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-

ew&m=ZAxxO2uZU1oBnZ2pksz6X_me6RDbEnWVfZd5HDuCQVQ&s=d_
ju6AB9P3RlPDQqRVeCbvCKL3Krl_T6P777CXyMv_c&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at https://
urldefense.proofpoint.com/v2/url?
u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=jf_iaSHvJOb
Tbx-
siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-

ew&m=ZAxxO2uZU1oBnZ2pksz6X_me6RDbEnWVfZd5HDuCQVQ&s=
iqtrWgAIObNOV2lMcmtugjHAhOubciEdf00A3Z_ZCBI&e=
.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
INVALID URI REMOVED
u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=1i-
jGlz0-JTK1aLHcsU-
ew&m=ZAxxO2uZU1oBnZ2pksz6X_me6RDbEnWVfZd5HDuCQVQ&s=E-25Ou-
pTxN2pZjWFHdIc4a90IZ-s75ORYbnP_qEdvg&e=
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L)
mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: INVALID URI REMOVED

u=https-3A__lists.midrange.com_mailman_listinfo_midrange-
2Dl&d=DwICAg&c=jf_iaSHvJObTbx-
siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-

ew&m=ZAxxO2uZU1oBnZ2pksz6X_me6RDbEnWVfZd5HDuCQVQ&s=d_
ju6AB9P3RlPDQqRVeCbvCKL3Krl_T6P777CXyMv_c&e=
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
take a moment to review the archives at INVALID URI REMOVED
u=https-3A__archive.midrange.com_midrange-2Dl&d=DwICAg&c=jf_iaSHvJOb
Tbx-
siA1ZOg&r=1i-jGlz0-JTK1aLHcsU-

ew&m=ZAxxO2uZU1oBnZ2pksz6X_me6RDbEnWVfZd5HDuCQVQ&s=
iqtrWgAIObNOV2lMcmtugjHAhOubciEdf00A3Z_ZCBI&e=
.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our
affiliate
link:
INVALID URI REMOVED
u=http-3A__amzn.to_2dEadiD&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=1i-
jGlz0-JTK1aLHcsU-
ew&m=ZAxxO2uZU1oBnZ2pksz6X_me6RDbEnWVfZd5HDuCQVQ&s=E-25Ou-
pTxN2pZjWFHdIc4a90IZ-s75ORYbnP_qEdvg&e=



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: http://amzn.to/2dEadiD

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.