Hi all,
In my wsdl I use genericResponse complex type as a base type to all
responses. Everything is fine, but response I receive from the SOAP
server is not valid. Type attribute is added to the response.
What's wrong and how to change?
Thanks,
Yana
wsdl:
<xs:element name="addResponse">
<xs:complexType>
<xs:complexContent>
<xs:extension base="genericResponseType"/>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="genericResponseType">
<xs:sequence>
<xs:element name="error" type="ErrorMessageType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
response:
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:addResponse xmlns:ns1="http://xxx.com/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:addResponse" RequestId="2"
RequestTimeStamp="2001-12-17T09:30:47.000Z"
ResponseTimeStamp="2008-02-24T12:39:00.546Z"/>
</soapenv:Body>
</soapenv:Envelope>
*************************************************************************************
This e-mail is confidential, the property of NDS Ltd and intended for the
addressee only. Any dissemination, copying or distribution of this message or
any attachments by anyone other than the intended recipient is strictly
prohibited. If you have received this message in error, please immediately
notify the [EMAIL PROTECTED] and destroy the original message. Messages sent
to and from NDS may be monitored. NDS cannot guarantee any message delivery
method is secure or error-free. Information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or contain viruses. We do not
accept responsibility for any errors or omissions in this message and/or
attachment that arise as a result of transmission. You should carry out your
own virus checks before opening any attachment. Any views or opinions
presented are solely those of the author and do not necessarily represent those
of NDS.
NDS Limited Registered office: One Heathrow Boulevard, 286 Bath Road, West
Drayton, Middlesex, UB7 0DQ, United Kingdom. A company registered in England
and Wales Registered no. 3080780 VAT no. GB 603 8808 40-00
To protect the environment please do not print this e-mail unless necessary.
**************************************************************************************