Hello all,
I am developing a Visual Studio .Net 2005 application.
This application consumes a JAVA web service from Axis 1.3.
When I call a method of the web service I get the following error message:
{"Error in XML-Document (1,393)."}
System.InvalidOperationException: {"Error in XML-Dokument (1,393)."}
Data: {System.Collections.ListDictionaryInternal}
HelpLink: Nothing
InnerException: {"The element with the ID 'id0', that was referenced,
was not found in the document."}
Message: "Error in XML-Document (1,393)."
Source: "System.Xml"
So I have made a trace to get the SOAP response:
<?xml version="1.0" encoding="utf-8" ?>
- <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Header>
<ns1:sessionID soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0" href="#id0"
xmlns:ns1="http://xml.apache.org/axis/session" />
</soapenv:Header>
- <soapenv:Body>
- <ns2:createLogonRequestResponse
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns2="http://xfleet.de/webservices">
<createLogonRequestReturn href="#id1" />
</ns2:createLogonRequestResponse>
<multiRef id="id0" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:long"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">2807852614272519769</multiRef>
- <multiRef id="id1" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns3:LogonRequest" xmlns:ns3="http://xfleet.de/types"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<ident xsi:type="soapenc:string">zKpLGnG51</ident>
<realm href="#id2" />
<userName xsi:nil="true" />
<password xsi:nil="true" />
<secretToken xsi:nil="true" />
<sessionToken xsi:nil="true" />
<timeout href="#id3" />
<authmethods href="#id4" />
<authmethod xsi:nil="true" />
<attributes href="#id5" />
</multiRef>
- <multiRef id="id2" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns4:Realm" xmlns:ns4="http://xfleet.de/types"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<realm xsi:type="soapenc:string">XFLEET_DE</realm>
</multiRef>
- <multiRef id="id4" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
soapenc:arrayType="xsd:anyType[2]" xsi:type="soapenc:Array"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<multiRef href="#id6" />
<multiRef href="#id7" />
</multiRef>
<multiRef id="id3" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="soapenc:long"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">-1</multiRef>
<multiRef id="id5" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns5:Map" xmlns:ns5="http://xml.apache.org/xml-soap"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" />
- <multiRef id="id7" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns6:AuthenticationMethod" xmlns:ns6="http://xfleet.de/types"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<authmethod xsi:type="soapenc:string">SYSTEM_USER</authmethod>
</multiRef>
- <multiRef id="id6" soapenc:root="0"
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xsi:type="ns7:AuthenticationMethod" xmlns:ns7="http://xfleet.de/types"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
<authmethod xsi:type="soapenc:string">PLAIN_TEXT</authmethod>
</multiRef>
</soapenv:Body>
</soapenv:Envelope>
Do you have any idea?
Thanks in advance and best regards.
Hennesey
Yury - 16 Feb 2006 22:17 GMT
If it possible switch to document/literal.
Hennesey - 16 Feb 2006 23:37 GMT
Hello Yury,
thank You very much for your prompt reply.
Sorry for the stupid question. But how can I switch to document/literal?
CU
> If it possible switch to document/literal.
news.microsoft.com - 17 Feb 2006 12:31 GMT
I have the same problem, seems to be a problem in vs2005 ...
> Hello all,
>
[quoted text clipped - 88 lines]
>
> Hennesey