472,791 Members | 1,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

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 1502

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kevin Long | last post by:
Hi everybody. I was wondering if somebody out there could tell me what is wrong with this code? I'm trying to plot a chart in excel using VB. For this example, the value of the Index variable is...
0
by: Roger Bonine | last post by:
This might be a stupid question, but I'd appreciate any help you could offer. I'm trying to pass an array of objects back to a Web service. The Web service expects this: Dim Recipients() as...
5
by: Paolino | last post by:
I have a self organizing net which aim is clustering words. Let's think the clustering is about their 2-grams set. Words then are instances of this class. class clusterable(str): def...
3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
0
by: Roger Bonine | last post by:
This might be a stupid question, but I'd appreciate any help you could offer. I'm trying to pass an array of objects back to a Web service. The Web service expects this: Dim Recipients() as...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.