Hello
I hope somebody can help with this one.
I want to create a webservice using IBM Web Administration for i5/OS. It is easy enough to compile the RPGLE program with PGMINFO set to *PCML and a path for the PCML file specified in INFOSTMF, and then use the PCML file to create the webservice using the Deploy New Service Wizard. The problem is that I am limited to the *Entry parameters of the RPG program for XML SOAP nodes.
This is a problem, because the SOAP response envelope is returned in a format which is difficult to parse.
Is there a way to edit the PCML file, or change the way the entry parameters are specified in the RPGLE, so that I can nest XML tags within one another,so that they will be easier to parse; for example:
What I am doing now is to create a XMLString node, and then control the start and end tags myself in my program. Then within the XMLString node, I have to substitute '<' for less-than (<) and '>' for greater than (>), so that the IBM XML process will let it through. The program that consumes the webservice then needs to translate the XMLString back before it can parse it. It does work, but it seems a bit crazy.
I am sure somebody must have had the same problem and found a better way to do it.
Thank you
I hope somebody can help with this one.
I want to create a webservice using IBM Web Administration for i5/OS. It is easy enough to compile the RPGLE program with PGMINFO set to *PCML and a path for the PCML file specified in INFOSTMF, and then use the PCML file to create the webservice using the Deploy New Service Wizard. The problem is that I am limited to the *Entry parameters of the RPG program for XML SOAP nodes.
This is a problem, because the SOAP response envelope is returned in a format which is difficult to parse.
Is there a way to edit the PCML file, or change the way the entry parameters are specified in the RPGLE, so that I can nest XML tags within one another,so that they will be easier to parse; for example:
Code:
<CLIENTS> <CLIENT> <SURNAME>Smith</SURNAME> <CLIENTNO>12345</CLIENTNO> <PHONE>1112224444</PHONE> </CLIENT> <CLIENT> <SURNAME>Jones></SURNAME> <CLIENTNO>12346</CLIENTNO> <PHONE>2223334444</PHONE> </CLIENT> . . . </CLIENTS>
I am sure somebody must have had the same problem and found a better way to do it.
Thank you
Comment