Re: How to get a WSDL from a given URI



Hi iffi,

This form of WSDL / XSD / WS-Policy (not in WSE yet, BUT it is in Indigo)
exchange is know as WS-MetadataExchange or MEX for short.

This sort of using standard SOAP API Packets as querying mechanisms is used
widely by UDDI deployments. Think of MEX as something rather similar.

WSE 2.0 supports some kind of MEX exchange thru something you have just
described. Could you post the "serialized" SOAP Envelope here so we are able
to inspect what is the Tcp endpoint actually receiving ?


--
Thank you.

Regards,
William T
http://www.softwaremaker.net/blog

Independent Microsoft Regional Director | Microsoft MVP - Solutions
Architect
======================================================


"iffi" <iffi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C9089989-6D49-4EA1-A54D-8BA7743D9DBC@xxxxxxxxxxxxxxxx
> I am writing a server application using SOAP over TCP (soap.tcp). I want
to
> generate a WSDL file from this uri
"soap.tcp://localhost:8080/stockservice".
> All I have heard is that its not possible to add a web referene as it
happens
> to generate proxy class "If the SoapService endpoint is bound to an HTTP
> endpoint, you can request the WSDL definition by appending "?wsdl" to the
> endpoint address.However since the release of WSE 2.0 and WS-Addressing
many
> leading service providers are using TCP.The "?wsdl" approach doesn't make
> sense for protocols such as TCP that don't support the notion of a query
> string. MS has provided a generic way to get WSDL Simply send a SOAP
message
> with an action of
> http://schemas.microsoft.com/wse/2003/06/RequestDescription
> and an empty body, as illustrated here:"
> --------------------------
> soap:Envelope xmlns:wsa="..." xmlns:soap="..." ...>
> <soap:Header>
> <wsa:Action>http://schemas.microsoft.com/wse/2003/06/
> RequestDescription</wsa:Action>
> ...
> </soap:Header>
> <soap:Body />
> </soap:Envelope>
>
> -----------------------------
> now I have created a method given below that returns the above mentioned
> soap envlope, and further i m sending it from client program using
> "sender.Subscribe(env)".
>
> private static SoapEnvelope CreateSubscriptionMessage()
> {
> SoapEnvelope env = new SoapEnvelope();
> XmlElement header = env.CreateHeader();
> env.Envelope.AppendChild(header);
> header.AppendChild(env.CreateElement("wsa:Action"));
> header.FirstChild.InnerText=
> "http://schemas.microsoft.com/wse/2003/06/RequestDescription";;
> Console.WriteLine(env.Envelope.InnerXml);
>
> return env;
> }
>
> -------------------
> I dont know how it will gonna return WSDL in response to this soap packet.
> And how to recieve that WSDL ..
> Could some body please provide or direct me to some sample by using which
I
> could receive WSDL and save it in a file.
>
> thanks in advance
>


.



Relevant Pages

  • How to get a WSDL from a given URI
    ... to generate proxy class "If the SoapService endpoint is bound to an HTTP ... you can request the WSDL definition by appending "?wsdl" to the ... MS has provided a generic way to get WSDL Simply send a SOAP message ... private static SoapEnvelope CreateSubscriptionMessage() ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: SOAP project
    ... and what do I do if they haven't published the WSDL document? ... your job is much easier - you can create a SOAP ... > | the server as standard SOAP messages. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: [PHP] WSDL Generator class
    ... I'm no big fan of SOAP and certainly think it's silly that I have to use like 8 million lines of WSDL to describe a 20 line function ... We use Ruby to talk to PHP5 via SOAP. ... I'am looking for an WSDL generator class. ... Is the soap extension or a PEAR classes will include this ...
    (php.general)
  • Re: SOAP to webservice
    ... Unfortunately they do not have the WSDL ... required for the SOAP header etc. Do you know of any "SOAP wrapper" ... XML document I've manually put together for testing, but I want to be able ... > class and open a socket to send the SOAP envelope to the Java server. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Problem to invoke a method of webservice from a C++ SoapClient
    ... I used SoapClient Libray provided by SQLData to invoke a method ... exposed by Webservices of weblogic over HTTP.(using WSDL). ... and do html encoding and send that to the server, ... the response would be build as a soap response and send over http. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)

Quantcast