Hi,
I am consuming a third-party service that uses SOAP-ENC arraytypes. I
rewrote the WSDL so that I could use XmlBeans.
The service returns an array of Complex Type element with its attributes are
of simple types. When I print the xmltext, it works fine but when I access
the child element, I noticed that it is looking for a child element with
QNAMEs.
I had similar problem at the root of the response. The service was returning
like this
<snp:GetNAICs xmlns:snp="urn:SentryService">
<return soapenc:arrayType="q1:CSentryNAIC[53]"
xmlns:q1="urn:SentryService">
Then I modified the xml like below to work.
<snp:GetNAICs xmlns:snp="urn:SentryService">
<snp:return soapenc:arrayType="q1:CSentryNAIC[53]"
xmlns:q1="urn:SentryService">
I tried the same trick here but did not work.
XMLText output:
<?xml version="1.0" encoding="UTF-8"?>
<xml-fragment xmlns:q1="urn:SentryService" xmlns:snp="urn:SentryService"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<iNAICID>25001</iNAICID>
<sName>Lexington Insurance Company</sName>
<sNAICNbr>19437</sNAICNbr>
</xml-fragment>
I get null when I access 'sName'.
Could anyone provide me a solution to access this?
Thanks
--
View this message in context:
http://www.nabble.com/Problem-reading-child-element-without-QNAME-tp20341271p20341271.html
Sent from the Xml Beans - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]