all groups > dotnet web services > december 2007 >
You're in the

dotnet web services

group:

xml error in webservice SOAP response ?


xml error in webservice SOAP response ? Jurjen de Groot
12/29/2007 3:29:00 PM
dotnet web services:
[Sorry for the cross-post, I was to fast clicking send...]

I'm 'consuming' a webservice written by a 3rd party wich uses Borland Soap
Server.
This all works fine, using the WSDL i've generated a Webservice and all
works fine,.... well almost. There are some 'webmethods' wich return a
exception.

System.InvalidOperationException was unhandled by user code


Message="There is an error in XML document (2, 1292)."

InnerException: System.InvalidOperationException
Message="The referenced element with ID '1' was not found in the
document."


Using a httpAnalyzer I've retrieved the response-XML (see below). I was just
wondering if it's possible that the problem is an array-indexing problem,
..NET using index '0' for the first entry and borland (seems to be) using
index '1' for their first entry ?


Anyone know about this ? (or know of a solution)

Best regards,
Jurjen de Groot
Netherlands.


<?xml version="1.0" ?>

<soap-env:envelope
xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/">

<soap-env:body
soap-enc:encodingstyle="http://schemas.xmlsoap.org/soap/envelope/">

<ns1:get_res_kindsresponse xmlns:ns1="urn:uIntf-IMyInterface"
xmlns:ns2="urn:uIntf">

<return xsi:type="SOAP-ENC:Array"
soap-enc:arraytype="NS2:TReservationKind[1]"><item href="#1"/></return>

<ns2:treservationkind id="1" xsi:type="NS2:TReservationKind">

<res_type_num xsi:type="xsd:int">1</res_type_num>

<name xsi:type="xsd:string">Zaterdag</name>

<price1 xsi:type="xsd:double">21</price1>

<price2 xsi:type="xsd:double">23.5</price2>

<price_unit xsi:type="xsd:int">0</price_unit>

<price_sw_time xsi:type="xsd:string">6:00</price_sw_time>

</ns2:treservationkind>

</ns1:get_res_kindsresponse>

</soap-env:body>

</soap-env:envelope>

Re: xml error in webservice SOAP response ? Spam Catcher
1/1/2008 1:23:02 AM
"Jurjen de Groot" <Jurjen.de.Groot@xs4all.nl> wrote in
news:u1abrciSIHA.484@TK2MSFTNGP06.phx.gbl:

[quoted text, click to view]

Any read-only properties... or properties with private settors?

--
Re: xml error in webservice SOAP response ? Jurjen de Groot
1/4/2008 10:02:50 AM
It would seem that not all webservices are created equal, this webservice is
not .NET compatible. Various options will have to be set on the 3rd party
SOAP server to make it compatible with .NET,
(http://qc.borland.com/wc/qcmain.aspx?d=14222 )



[quoted text, click to view]
Re: xml error in webservice SOAP response ? Spam Catcher
1/4/2008 2:55:55 PM
"Jurjen de Groot" <Jurjen.de.Groot@xs4all.nl> wrote in
news:u4iAgCrTIHA.3916@TK2MSFTNGP02.phx.gbl:

[quoted text, click to view]

Yes, if propretiary data types are sent, there could be issues with the web
service.

Here is a list of safe data types:

http://msdn2.microsoft.com/en-us/library/ms531031(VS.85).aspx


--
AddThis Social Bookmark Button