473,386 Members | 1,785 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,386 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 7158
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.