473,854 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wsdl passing xmldocument


I am new to vb.net webservice. My requirement is to design a VB.net 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 vb.net does not support this approach.

If I have a create a webservice using vb.net 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:definitio ns xmlns:http="htt p://schemas.xmlsoap .org/wsdl/http/"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:soapenc=" http://schemas.xmlsoap .org/soap/encoding/"
xmlns:tns="http ://tempuri.org/"
xmlns:mime="htt p://schemas.xmlsoap .org/wsdl/mime/"
targetNamespace ="http://tempuri.org/"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">
- <wsdl:types>
- <s:schema elementFormDefa ult="qualified"
targetNamespace ="http://tempuri.org/">
- <s:element name="getquote" >
- <s:complexTyp e>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="xmldoc">
- <s:complexTyp e mixed="true">
- <s:sequence>
<s:any />
- <s:element name="getquoteR esponse">
- <s:complexTyp e>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="getquoteR esult">
- <s:complexTyp e mixed="true">
- <s:sequence>
<s:any />
- <wsdl:message name="getquoteS oapIn">
<wsdl:part name="parameter s" element="tns:ge tquote" />
- <wsdl:message name="getquoteS oapOut">
<wsdl:part name="parameter s" element="tns:ge tquoteResponse" />
- <wsdl:portTyp e name="Service1S oap">
- <wsdl:operati on name="getquote" >
<wsdl:input message="tns:ge tquoteSoapIn" />
<wsdl:output message="tns:ge tquoteSoapOut" />
- <wsdl:binding name="Service1S oap" type="tns:Servi ce1Soap">
<soap:binding transport="http ://schemas.xmlsoap .org/soap/http"
style="document " />
- <wsdl:operati on name="getquote" >
<soap:operati on soapAction="htt p://tempuri.org/getquote"
style="document " />
- <wsdl:input>
<soap:body use="literal" />
- <wsdl:output>
<soap:body use="literal" />
- <wsdl:service name="Service1" >
<documentatio n xmlns="http://schemas.xmlsoap .org/wsdl/" />
- <wsdl:port name="Service1S oap" binding="tns:Se rvice1Soap">
location="http://localhost/websamples/lab5/Service1.asmx" />
</wsdl:definition s>

Nov 21 '05 #1
0 2137

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

Similar topics

by: Generic Usenet Account | last post by:
Does anyone have an opinion on how IDL and WSDL compare to each other? Are they equally powerful in their "expressive power"? Sometimes it appears to me that IDL is a little easier for humans to follow. Also, it appears to be more compact. Are IDL and WSDL equally powerful in expressing complex data types, and describing inheritance and association relationships? What would be the most compelling reasons to choose one over the other?
by: olafmol | last post by:
Hello, i have a problem using a .NET WSDL Webservice from PHP. Using both the NuSOAP lib for PHP4, and the build-in SOAP lib for PHP5 it seems that the SOAP client cannot pass a variable amount of complex datatypes to the WSDL webservice. This is the request-structure we've been using: <EzCreateAuctionArray xmlns=http://www.blabla.com>
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID parameter to the XSLT stylesheet XsltArgumentList xsltArgList = new XsltArgumentList(); xsltArgList.AddParam("pmID", "", pmID); xmlItems.TransformArgumentList = xsltArgList;
by: Hans [DiaGraphIT] | last post by:
Hi! Can anyone help me with translating a VB-code to C#? I'm reading the walkthrough: Passing data to a custom action. In part 4 were you create an installer class there is a example of VB-code. I've tried to translate the code to c# but I have problem with a small part of it ...
by: Hans [DiaGraphIT] | last post by:
Hi! I have problem with passing data to custom action. I don't know what wrong I'm doing. I'm trying to follow the steps in the walkthrough: "Passing Data to a Custom Action" http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/vxwlkwalkthroughpassingdatatocustomaction.asp The error I recieve is: "The savedSate dictionary does not contain the expected values and might
by: MattBell | last post by:
I've tried to search for an answer to this without much success, and I think it's probably a common thing to do: I have a web service I want to accept an XmlDocument as an argument which conforms to a specific XSD that is defined. Right now when I declare XmlDocument as my argument, it puts the old xml:any type in. How do I change that to reflect the XSD that I'm looking for? Thanks for any Help!
by: Naveed Anwar | last post by:
how a tcp server running on given uri like "soap:tcp://localhost:8080/MyReceiver" will return wsdl. In normal web service case which runs on http returns wsdl by simply appending '?wsdl' in url, but I am confused how a tcp server will do the same. plzzzzzzzzz reply :((!! thanks:) in advance
by: saish | last post by:
Hello, Please advice I am new to vb.net webservice. My requirement is to design a VB.net 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
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk code but the calls to web methods pass parameters by ref so that I have to call it like: XmlDocument doc = new XmlDocument(); doc.LoadXml(message);
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.