Hi,

I know this is probably a dumb question but here it goes.

I have a WSDL and XSD from a customer and have generated code using Apache's 
wsdl2java. I then compiled that and wrote a little example program to do a 
'getLogin' call.

Apache CXF seems to have an issue parsing the response.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   <soapenv:Body xmlns:th="http://toolhost.example.com/ossapi";>
      <OSSResponse>
         <th:logins>
            <th:loginsItem>
               <th:accountNumber>8351100040007530</th:accountNumber>
               <th:domain>example.net</th:domain>
               <th:role>CHILD</th:role>
               <th:status>ACTIVE</th:status>
               <th:system>email</th:system>
               <th:username>[email protected]</th:username>
            </th:loginsItem>
            <th:loginsItem>
               <th:accountNumber>8351100040007530</th:accountNumber>
               <th:contactEmail>[email protected]</th:contactEmail>
               <th:domain/>
               <th:role/>
               <th:secQuestion>Favorite movie?</th:secQuestion>
               <th:status>ACTIVE</th:status>
               <th:system>member services</th:system>
               <th:username>test30</th:username>
            </th:loginsItem>
         </th:logins>
         <th:returnCode>0</th:returnCode>
         <th:returnString>Success</th:returnString>
         <th:roundTrip>0.175047</th:roundTrip>
      </OSSResponse>
   </soapenv:Body>
</soapenv:Envelope>

The resulting GetLoginResponse object has all fields left empty.

I'm not really sure how to begin to debug this. I can provide the WSDL and XSD 
if necessary.

Thanks.

Henk

Reply via email to