By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,742 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,742 IT Pros & Developers. It's quick & easy.

wsdl passing xmldocument

P: n/a

I am new to webservice. My requirement is to design a web
service which will send and receive xml documents. The xml document
send and received would be a very complex .xsd file which contains
multiple formats of send and receive mesages. On reading books on
webservice it was says to design an interface (ie design the xsd ,
wsdl, then run wsdl.exe to generate interface.vb class) Since my xsd is
very complex if I have to go with the interface approach it will get
complicated and any change in xsd will then have to be reflected in the
client and webservice side. Also does not support this approach.

If I have a create a webservice using whose web method receives
and send XMLDocument type. How does I map the .xsd file to the auto
generated wsdl file. By providing the auto generated wsdl how will the
client developers gets the information about the .xsd file/layout.
Unless there is an agreement on what xml document format will be send
and received by client and server programs.
Is there any way where just with my wsdl the client programs can be
build which gets the info about the xsd data to be send and received.
It would be good to send and receive in xml documents.

.....Please advice.

<WebMethod()> _
Public Function getquote(ByVal xmldoc As XmlDocument) As XmlDocument

<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:http=""
- <wsdl:types>
- <s:schema elementFormDefault="qualified"
- <s:element name="getquote">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="xmldoc">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
- <s:element name="getquoteResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="getquoteResult">
- <s:complexType mixed="true">
- <s:sequence>
<s:any />
- <wsdl:message name="getquoteSoapIn">
<wsdl:part name="parameters" element="tns:getquote" />
- <wsdl:message name="getquoteSoapOut">
<wsdl:part name="parameters" element="tns:getquoteResponse" />
- <wsdl:portType name="Service1Soap">
- <wsdl:operation name="getquote">
<wsdl:input message="tns:getquoteSoapIn" />
<wsdl:output message="tns:getquoteSoapOut" />
- <wsdl:binding name="Service1Soap" type="tns:Service1Soap">
<soap:binding transport=""
style="document" />
- <wsdl:operation name="getquote">
<soap:operation soapAction=""
style="document" />
- <wsdl:input>
<soap:body use="literal" />
- <wsdl:output>
<soap:body use="literal" />
- <wsdl:service name="Service1">
<documentation xmlns="" />
- <wsdl:port name="Service1Soap" binding="tns:Service1Soap">
location="http://localhost/websamples/lab5/Service1.asmx" />

Nov 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.