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?

Note: I thought this is related to xmlbeans and posted there but it seems the 
traffic is very low for me to get a response. Thanks in advance.

Thanks


Reply via email to