×
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 David,
On 3/20/2012 10:55 AM, David Baugh wrote:
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'.
Yes, that's what IWS always does...
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.
If you are on IBM i 6.1 or higher, there are PTFs available that provide
a "case=convert" option for XML-INTO. With this option, RPG will
translate any characters that aren't available in an RPG variable name
into a valid RPG variable name. The same PTF provides an ns=remove
option to strip the namespace (which is the 'ns:' part) if so desired.
You can learn more about this PTF, here:
http://tinyurl.com/rpg-xml-into-namespace
Alternately, instead of using XML-INTO, consider using either XML-SAX or
the XML parser included with HTTPAPI. These won't have problems with
this on any release.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.