Wow... firstly awesome implementation or in integration with HTTPAPI and plex. I also see how to use pure rpg coding source code in plex and I tried Implementing a pointer solution. Could you please check the following and tell me if I am on the correct track?
I went through the examples using httpApi in stella tools and did the following.
This is in "Program A" : this program is responsible for building the request, in this plex function(RPGIV) I created a new field in WorkL called "MyXMLString" in the source code I modified it to be based on a pointer.
Now in "Program A" I am setting or appending the XML in to "MyXMLString"
Where MyXMLString.Test1 is a valid xml request just for testing purpose.
I then call a function RPGWebserviceCallInMemory that I created in Websphere Development studio the input I defined the following way.
I defined the iServiceReq as a pointer.
Then I also defined the following.
I define a string or field in memory that will be send into http_url_post
Next I move the the input in to my working variables.
In my free format I set myString pointers address to the input address vServiceReq.
I then consume the webservice using myString address as my post data.
When I run Program A and view my spoolfile to check the print statements I get the following.
So I am guessing its sort of working except its cutting off the start of my xml string.
Am I on the correct path in using a pointer will I be able to store a large string ie. 300 000 characters in my Input variable.
Thanks for your input I appreciate it.