× 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.



Hi All

I'm new to webservices on IBM-i. I'm running V5R4. Created an RPG program to extract data from a file. It's a simple function, just to get me going in this environment. I define the service in IWS Wizard, it sets up the variables and returns the data as expected.

When I run this in SOAPui, I notice that all the elements have a namespace prefix of 'ns:_' .
e.g. where my field name from my program is 'ID', the element is called 'ns:_ID'.

In my test RPG program to consume that service, I'm calling Scott's HPPTAPI routine 'http_url_post' to send the input to a file in the IFS, then using that as input to XML-INTO.

I keep getting kicked out of XML-INTO because it can't find a match in my RPG variable.

I think this is because of the namespace default. Is there a setting in IWS Wizard to remove this, to get the clean element names in the XML ? I noticed that there's an option 'ns=remove' available in later system releases, but wondering If I can nip it in the bud during creation before going there (i.e. a system upgrade). Or perhaps there's a setting in the call to the post routine that can intercept it?

Thanks in advance.

David Baugh

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.