468,251 Members | 1,372 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,251 developers. It's quick & easy.

Help: WS-I doc/lit wsdl with anyType SOAPBody

Hi All,

I am writing a doc/lit web services, in which the elements under
SOAPBody is unknown. That is, these two message are acceptable.

1. <SOAP-ENV:Body><Tag1>It is ok</Tag1></SOAP-ENV:Body>
2. <SOAP-ENV:Body><Tag2><Tag3>It is also
ok</Tag3></Tag2></SOAP-ENV:Body>

The question is, if I write the wsdl as below, it defines the
request message to be empty, instead of anyType. If I create an
element with type=xsd:anyType, this element tag will appear under
SOAPBody. How do I write the wsdl in this case?

I would like this wsdl to be ws-i complaince, is it possible to do
so?

Cheers,
Sonna Nach

----- wsdl -----

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="DataService"
targetNamespace="urn:dataservice"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="urn:dataservice"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema
attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="urn:dataservice"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="DataServiceResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1"
name="Token" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="DataServiceResponse">
<wsdl:part element="tns:DataServiceResponse"
name="DataServiceResponse"/>
</wsdl:message>
<wsdl:message name="DataServiceRequest"/>
<wsdl:portType name="DataServicePortType">
<wsdl:operation name="DataService">
<wsdl:input message="tns:DataServiceRequest"/>
<wsdl:output message="tns:DataServiceResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DataServiceBinding"
type="tns:DataServicePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="DataService">
<soap:operation soapAction="DataService"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DataService">
<wsdl:port binding="tns:DataServiceBinding"
name="DataServicePort">
<soap:address
location="http://somewhere.com/dataservice"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Jul 20 '05 #1
0 1354

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kevin Long | last post: by
reply views Thread by Roger Bonine | last post: by
5 posts views Thread by Paolino | last post: by
reply views Thread by Roger Bonine | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.