Thanks for the answer. The problem was the return envelope. The line:
"Dino Chiesa [Microsoft]" <dinoch@online.microsoft.com> wrote in message
news:Obb1feOdEHA.3512@TK2MSFTNGP12.phx.gbl...
> can you not use literal rather than SOAP section-5 encoding ?
>
> "Michel" <michel@nospam.nl> wrote in message
> news:cdlu08$o3m$1@reader13.wxs.nl...
> > Hi there,
> >
> > I am using a web service in VS2003 (the service itself is a dll - I
think
> it
> > is made in Delphi).
> > When calling it, I get an InvalidOperationException: "There is an error
in
> > XML document (2, 5587)", with an inner exception: "The referenced
element
> > with ID '2' was not found in the document."
> >
> > I use SOAP toolkit to trace the messages. Below are the return message
and
> > the schema (shortened for clarity). They look fine to me (xmlspy
validates
> > them fine).
> >
> > Any help is greatly appreciated. I have no idea where to look.
> > Thanks,
> > Michel
> >
> > <?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:berekenResponse xmlns:NS1="urn:TraditionalLifeIntf-TraditionalLife"
> > xmlns:NS2="bbGoudseTraditionalLife">
> > <NS2:UitvoerData id="1" xsi:type="NS2:UitvoerData">
> > <Verloop xsi:type="SOAP-ENC:Array"
> > SOAP-ENC:arrayType="NS2:TRisicoVerloopValue[16]">
> > <item href="#2"/>
> > </Verloop>
> > </NS2:UitvoerData>
> > <NS2:TRisicoVerloopValue id="2" xsi:type="NS2:TRisicoVerloopValue">
> > <xsd:datum xsi:type="xsd:date">2004-07-21</xsd:datum>
> > </NS2:TRisicoVerloopValue>
> > <return href="#1"/>
> > </NS1:berekenResponse>
> > </SOAP-ENV:Body></SOAP-ENV:Envelope>
> >
> > The schema:
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <definitions xmlns="
http://schemas.xmlsoap.org/wsdl/" > > xmlns:xs="
http://www.w3.org/2001/XMLSchema" name="TraditionalLifeservice"
> > targetNamespace="
http://tempuri.org/" xmlns:tns="
http://tempuri.org/" > > xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" > > xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/" > > xmlns:ns1="bbGoudseTraditionalLife">
> > <types>
> > <xs:schema targetNamespace="bbGoudseTraditionalLife"
> > xmlns="bbGoudseTraditionalLife">
> > <xs:complexType name="UitvoerData">
> > <xs:sequence>
> > <xs:element name="Verloop" type="ns1:TRisicoVerloopValues"/>
> > </xs:sequence>
> > </xs:complexType>
> > <xs:complexType name="TRisicoVerloopValues">
> > <xs:complexContent>
> > <xs:restriction base="soapenc:Array">
> > <xs:sequence/>
> > <xs:attribute ref="soapenc:arrayType"
> > n1:arrayType="ns1:TRisicoVerloopValue[]"
> > xmlns:n1="
http://schemas.xmlsoap.org/wsdl/"/>
> > </xs:restriction>
> > </xs:complexContent>
> > </xs:complexType>
> > <xs:complexType name="TRisicoVerloopValue">
> > <xs:sequence>
> > <xs:element name="datum" type="xs:date"/>
> > </xs:sequence>
> > </xs:complexType>
> > </xs:schema>
> > </types>
> > </definitions>
> >
> >
>
>