Hi all,

I seem to remember a discussion on this a while ago, but cannot seem to find it now.

I am trying to use an Axis2 web service (generated from WSDL) from a Visual C# client (also generated from the WSDL. Everything works fine until the client starts parsing the response XML, when it gives an error 'There is an error in XML document(1,877)'. Position 877 in the response xml is the first character name of the first element withing the complex return type. The start of the xml is included below. If anybody has any ideas, please let me know!

Thanks!

Justin

XML Response:
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>
<soapenv:Header>
<wsa:Action mlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>ConfirmCustomerRequest</wsa:Action> <wsa:ReplyTo xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";><wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address></wsa:ReplyTo> <wsa:From xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";><wsa:Address>http://cohen:8080/axis2/services/XMLVendService2.0</wsa:Address></wsa:From> <wsa:MessageID xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";>A7E4A85F20AA66B0C4114018114390618</wsa:MessageID>
</soapenv:Header>
<soapenv:Body>
<confirmCustomerResp xmlns="http://www.nrs.eskom.co.za/xmlvend/revenue/2.0/schema";> <clientID xmlns="http://www.nrs.eskom.co.za/xmlvend/base/2.0/schema"; type="GenericDeviceID" id="12345" /> <serverID xmlns="http://www.nrs.eskom.co.za/xmlvend/base/2.0/schema"; ean="1" /> <terminalID xmlns="http://www.nrs.eskom.co.za/xmlvend/base/2.0/schema"; type="GenericDeviceID" id="54321" /> <reqMsgID xmlns="http://www.nrs.eskom.co.za/xmlvend/base/2.0/schema"; dateTime="2006-02-17 12:00:00" uniqueNumber="MSGID-0001" /> <respDateTime xmlns="http://www.nrs.eskom.co.za/xmlvend/base/2.0/schema";>2006-02-17T14:59:03.910+02:00</respDateTime>
<confirmCustResult>
<custVendDetail address="here" contactNo="0123456789" name="Mr JF Schoeman" accNo="12345-67890" /></confirmCustResult>
</confirmCustomerResp>
</soapenv:Body></soapenv:Envelope>

Reply via email to