473,770 Members | 2,096 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:anyTyp e, 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:definitio ns
name="DataServi ce"
targetNamespace ="urn:dataservi ce"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:tns="urn: dataservice"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema
attributeFormDe fault="qualifie d"
elementFormDefa ult="qualified"
targetNamespace ="urn:dataservi ce"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<xsd:element name="DataServi ceResponse">
<xsd:complexTyp e>
<xsd:sequence >
<xsd:element maxOccurs="1" minOccurs="1"
name="Token" type="xsd:strin g"/>
</xsd:sequence>
</xsd:complexType >
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="DataServi ceResponse">
<wsdl:part element="tns:Da taServiceRespon se"
name="DataServi ceResponse"/>
</wsdl:message>
<wsdl:message name="DataServi ceRequest"/>
<wsdl:portTyp e name="DataServi cePortType">
<wsdl:operati on name="DataServi ce">
<wsdl:input message="tns:Da taServiceReques t"/>
<wsdl:output message="tns:Da taServiceRespon se"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DataServi ceBinding"
type="tns:DataS ervicePortType" >
<soap:binding style="document "
transport="http ://schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="DataServi ce">
<soap:operati on soapAction="Dat aService"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DataServi ce">
<wsdl:port binding="tns:Da taServiceBindin g"
name="DataServi cePort">
<soap:address
location="http://somewhere.com/dataservice"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>
Jul 20 '05 #1
0 1568

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

Similar topics

3
19627
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 150, but it could be anything because it is calculated earlier in the code. I can't see anything wrong with the code myself, but it seems not to like it. Any help would be appreciated. Kevin
0
1441
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 WS.Recipient but it won't let me create an object array of this type directly, so I'm creating an ArrayList object and using CType to convert it, like so:
5
1797
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 __abs__(self):# the set of q-grams (to be calculated only once) return set() for n in range(len(self))]) def __sub__(self,other): # the q-grams distance between 2 words set1=abs(self) set2=abs(other)
3
25057
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. eg. this only transferes the first record in the area. ..Fields("Uge").Value = ws.Range("A98").Value Sub SelectMaster()
0
284
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 WS.Recipient but it won't let me create an object array of this type directly, so I'm creating an ArrayList object and using CType to convert it, like so:
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10260
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6712
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.