473,245 Members | 1,765 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

how to get wsdl using wse 2.0 in short

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

iffi
Nov 23 '05 #1
6 7148
The SoapService has built-in a SoapMethod - RequestDescription to retrieve a
service description in the wsdl format.

The wsdl document can be modified by overriding the following method:
protected override XmlDocument GetDescription(Uri location)
{
XmlDocument doc = base.GetDescription(location);
ServiceDescription serviceDescription = null;
using(MemoryStream ms = new MemoryStream())
{
doc.Save(ms);
serviceDescription = ServiceDescription.Read(ms);
}

// modify serviceDescription

// write serviceDescription to the XmlDocument

// return XmlDocument
}
hth

Roman

p.s.
you don't need to multiple your question, just read the WSE Documention
before that such as
ms-help://MS.WSE20.1033/wse/html/fe81454b-678f-4912-89a6-b77ad423cc10.htm
ms-help://MS.WSE20.1033/wseref/html/M_Microsoft_Web_Services2_Messaging_SoapService_Re questDescription_1_b63e69b1.htm

"Naveed Anwar" <na************@hotmail.com> wrote in message
news:e2*************@TK2MSFTNGP09.phx.gbl...
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

iffi

Nov 23 '05 #2
The SoapService has built-in a SoapMethod - RequestDescription to retrieve a
service description in the wsdl format.

The wsdl document can be modified by overriding the following method:
protected override XmlDocument GetDescription(Uri location)
{
XmlDocument doc = base.GetDescription(location);
ServiceDescription serviceDescription = null;
using(MemoryStream ms = new MemoryStream())
{
doc.Save(ms);
serviceDescription = ServiceDescription.Read(ms);
}

// modify serviceDescription

// write serviceDescription to the XmlDocument

// return XmlDocument
}
hth

Roman

p.s.
you don't need to multiple your question, just read the WSE Documention
before that such as
ms-help://MS.WSE20.1033/wse/html/fe81454b-678f-4912-89a6-b77ad423cc10.htm
ms-help://MS.WSE20.1033/wseref/html/M_Microsoft_Web_Services2_Messaging_SoapService_Re questDescription_1_b63e69b1.htm

"Naveed Anwar" <na************@hotmail.com> wrote in message
news:e2*************@TK2MSFTNGP09.phx.gbl...
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

iffi

Nov 23 '05 #3
Naveed Anwar wrote:
[...]

Please *don't* crosspost.

microsoft.public.it.dotnet.framework is an *Italian* newsgroup so you should
post into italian language here.
The same should apply for kr (korean) ng.

--
Raffaele Rialdi
Microsoft .NET MVP http://mvp.support.microsoft.com -
http://italy.mvps.org UGIdotNET - User Group Italiano .NET
http://www.ugidotnet.org Weblog: http://blogs.ugidotnet.org/raffaele

Nov 23 '05 #4
Naveed Anwar wrote:
[...]

Please *don't* crosspost.

microsoft.public.it.dotnet.framework is an *Italian* newsgroup so you should
post into italian language here.
The same should apply for kr (korean) ng.

--
Raffaele Rialdi
Microsoft .NET MVP http://mvp.support.microsoft.com -
http://italy.mvps.org UGIdotNET - User Group Italiano .NET
http://www.ugidotnet.org Weblog: http://blogs.ugidotnet.org/raffaele

Nov 23 '05 #5
Thanks Roman!!
I sent a reply but it didn't appear on the group ... i think it was only
sent to you....
I have tried doing the way u suggested ..but came up with a bit different
solution

/*********** SoapService overriden method **********************/

protected override XmlDocument GetDescription(Uri location)

{

XmlDocument doc = base.GetDescription(location);

XmlTextWriter writer = new XmlTextWriter("c:\\MyOutWsdl.wsdl", null);

writer.Formatting = Formatting.Indented;

doc.Save(writer);

return doc;

}

---------------------------------------------------------

and the generated WSDL looks like this...

-------------------------------------------------------

<?xml version="1.0"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
<s:element name="string" nillable="true" type="s:string" />
</s:schema>
</wsdl:types>
<wsdl:message name="MyStringMessageIn" />
<wsdl:message name="MyStringMessageOut">
<wsdl:part name="data" element="tns:string" />
</wsdl:message>
<wsdl:portType name="MyServicePortType">
<wsdl:operation name="MyString">
<wsdl:input message="tns:MyStringMessageIn" />
<wsdl:output message="tns:MyStringMessageOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MyServiceBinding" type="tns:MyServicePortType">
<soap:binding transport="http://schemas.microsoft.com/wse/2003/06/tcp"
/>
<wsdl:operation name="MyString">
<soap:operation soapAction="get a string" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyService">
<wsdl:port name="MyServicePort" binding="tns:MyServiceBinding">
<soap:address location="soap.tcp://localhost:8080/MyReceiver" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

--------------------------------------------

I have a question now .....that how can i add a reference of this WSDL using
VS .... i have tried but it doesn't work... the auto generated proxy shows
the following embedded error.

"There is no SoapTransportImporter that understands the transport
'http://schemas.microsoft.com/wse/2003/06/tcp'."

I am using VS 2005 but VS 2003 is also giving the same problem....????????

WBR
iffi
"Roman Kiss [MVP]" <rk***@pathcom.com> wrote in message
news:ej**************@TK2MSFTNGP14.phx.gbl...
The SoapService has built-in a SoapMethod - RequestDescription to retrieve
a service description in the wsdl format.

The wsdl document can be modified by overriding the following method:
protected override XmlDocument GetDescription(Uri location)
{
XmlDocument doc = base.GetDescription(location);
ServiceDescription serviceDescription = null;
using(MemoryStream ms = new MemoryStream())
{
doc.Save(ms);
serviceDescription = ServiceDescription.Read(ms);
}

// modify serviceDescription

// write serviceDescription to the XmlDocument

// return XmlDocument
}
hth

Roman

p.s.
you don't need to multiple your question, just read the WSE Documention
before that such as
ms-help://MS.WSE20.1033/wse/html/fe81454b-678f-4912-89a6-b77ad423cc10.htm
ms-help://MS.WSE20.1033/wseref/html/M_Microsoft_Web_Services2_Messaging_SoapService_Re questDescription_1_b63e69b1.htm

"Naveed Anwar" <na************@hotmail.com> wrote in message
news:e2*************@TK2MSFTNGP09.phx.gbl...
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

iffi


Nov 23 '05 #6
Thanks Roman!!
I sent a reply but it didn't appear on the group ... i think it was only
sent to you....
I have tried doing the way u suggested ..but came up with a bit different
solution

/*********** SoapService overriden method **********************/

protected override XmlDocument GetDescription(Uri location)

{

XmlDocument doc = base.GetDescription(location);

XmlTextWriter writer = new XmlTextWriter("c:\\MyOutWsdl.wsdl", null);

writer.Formatting = Formatting.Indented;

doc.Save(writer);

return doc;

}

---------------------------------------------------------

and the generated WSDL looks like this...

-------------------------------------------------------

<?xml version="1.0"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://tempuri.org/" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace="http://tempuri.org/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://tempuri.org/">
<s:element name="string" nillable="true" type="s:string" />
</s:schema>
</wsdl:types>
<wsdl:message name="MyStringMessageIn" />
<wsdl:message name="MyStringMessageOut">
<wsdl:part name="data" element="tns:string" />
</wsdl:message>
<wsdl:portType name="MyServicePortType">
<wsdl:operation name="MyString">
<wsdl:input message="tns:MyStringMessageIn" />
<wsdl:output message="tns:MyStringMessageOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MyServiceBinding" type="tns:MyServicePortType">
<soap:binding transport="http://schemas.microsoft.com/wse/2003/06/tcp"
/>
<wsdl:operation name="MyString">
<soap:operation soapAction="get a string" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyService">
<wsdl:port name="MyServicePort" binding="tns:MyServiceBinding">
<soap:address location="soap.tcp://localhost:8080/MyReceiver" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

--------------------------------------------

I have a question now .....that how can i add a reference of this WSDL using
VS .... i have tried but it doesn't work... the auto generated proxy shows
the following embedded error.

"There is no SoapTransportImporter that understands the transport
'http://schemas.microsoft.com/wse/2003/06/tcp'."

I am using VS 2005 but VS 2003 is also giving the same problem....????????

WBR
iffi
"Roman Kiss [MVP]" <rk***@pathcom.com> wrote in message
news:ej**************@TK2MSFTNGP14.phx.gbl...
The SoapService has built-in a SoapMethod - RequestDescription to retrieve
a service description in the wsdl format.

The wsdl document can be modified by overriding the following method:
protected override XmlDocument GetDescription(Uri location)
{
XmlDocument doc = base.GetDescription(location);
ServiceDescription serviceDescription = null;
using(MemoryStream ms = new MemoryStream())
{
doc.Save(ms);
serviceDescription = ServiceDescription.Read(ms);
}

// modify serviceDescription

// write serviceDescription to the XmlDocument

// return XmlDocument
}
hth

Roman

p.s.
you don't need to multiple your question, just read the WSE Documention
before that such as
ms-help://MS.WSE20.1033/wse/html/fe81454b-678f-4912-89a6-b77ad423cc10.htm
ms-help://MS.WSE20.1033/wseref/html/M_Microsoft_Web_Services2_Messaging_SoapService_Re questDescription_1_b63e69b1.htm

"Naveed Anwar" <na************@hotmail.com> wrote in message
news:e2*************@TK2MSFTNGP09.phx.gbl...
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

iffi


Nov 23 '05 #7

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

Similar topics

24
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...
1
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or...
0
by: Dave | last post by:
Hi, If anyone could help with this, I would greatly appreciate it! I've created my own WSDL file and referenced an XSD file too. I've generated a service side interface using wsdl /server, and...
4
by: Mike | last post by:
I have a web service being consume by a new client. The WebMethod they are calling is called Process. So in the WSDL I have has 2 elements, Process and ProcessResponse. <s:schema...
0
by: Naveed Anwar | last post by:
Hi !! 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'...
2
by: Danny Gagne | last post by:
I'm currently working an .net application (I can use 1.1 or 2.0 if needed) that needs to read a wsdl file and generate another piece of code that can use it. I'm encountering a problem where I...
9
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: ...
3
by: Siva | last post by:
Hi all, I want to Convert a WSDL to a SOAP message. Is there any way to do this. I am using .NET 2.0 Thanks in Advance Siva
0
by: Eternal Snow | last post by:
Hi all. I have some trouble by using WCF while creating WSDL. Please follow that: 1 Create a WCF service in EXE mode (not tried in IIS), add a basicHTTPBinding and a mexHttpBinding. 2 Run it,...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...

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.