Michael I remember getting that same message a few weeks ago when I first started using Scotts tools.
I'm afraid I don't remember exactly what the deal was...
What you are trying to do sounds very similar to what I've been doing.... (I think?) so I've attached the code that is working very well for me. I hope this helps...
One thing, you need HTTPAPI 1.11 pre release to use Scotts encoding subprocedures.
Otherwise you have to encode your XML manually or I wrote a procedure to do it before I knew about 1.11
This code sends the vedors response to the IFS and even displays it on the screen, makes it real easy for testing!
good luck
Sender: Michael Tierney <miketinternet@xxxxxxxxx>
I didn't see an example that is similar to what I
am trying to do, RPG sending a request and
looking for a simple sucess or failure. The best
I could tell was the UPS example.
In any event, there is a need with the RPG guys I
deal with to send XML strings via HTTP to web
services and get a reply.
On the code I sent, the error states something
about the program expecting a character input
field with a maximum length of 52a. Is the
conflict because non Iseries is Varchar and
Iseries is fixed character length ?
--- Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:
> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
>
>
> > Am I heading in the correct direction ? I am
> > trying to send an HTTP string out to a web
> > service from RPG and get back a reply of
> success
> > or failure. I would love to use an XML parser
> of
> > some sort for the data and tag it to the end
> of
> > the HTML string.
>
> Yes, I think you're headed in the right
> direction. Your code looks good to
> me, but apparently theres some detail that the
> server isn't happy with. If
> you can get all of the details right, it shoudl
> work.
>
> > If there is a more simple example you have I
> will
> > definitely try it.
>
> Hmmm.. I thought the EXAMPLE source members
> were pretty simple...
>
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubsribe
> from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body:
> unsubscribe ftpapi mymailaddr
>
-----------------------------------------------------------------------
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com -----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------