How to create wsdl from dll in commandline?

Discussion in 'ASP .Net Web Services' started by X_AWemner_X, Aug 13, 2003.

  1. X_AWemner_X

    X_AWemner_X Guest

    Is it possible to create .wsdl from given assembly dll in commandline?

    I have written MathService.cs file and then compiled it to SoapTest.dll
    file. Then I used soapsuds to generate a wsdl from the given dll file. I did
    get something, but it does not have any methods in it and namespaces look
    very interesting.

    Anyone succeded generating such file in commandline only?

    ***create schema command***
    c:\>TestSoap\soapsuds -ia:SoapTest -os:MathService.wsdl


    ***MathService.cs sourcecode***
    using System;
    using System.Web.Services;

    [WebService(Description="My First WS Test",
    Namespace="http://www.mytest.com/")]

    public class MathService : WebService {

    [WebMethod(Description="sum given integers")]
    public int sum(int a, int b) {
    return (a + b);
    }

    }

    *** generated MathService.wsdl ***
    <?xml version='1.0' encoding='UTF-8'?>
    <definitions
    targetNamespace='http://schemas.microsoft.com/clr/assem/SoapTest%2C%20Versio
    n%3D0.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'
    xmlns='http://schemas.xmlsoap.org/wsdl/'

    xmlns:tns='http://schemas.microsoft.com/clr/assem/SoapTest%2C%20Version%3D0.
    0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:suds='http://www.w3.org/2000/wsdl/suds'
    xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
    xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/'

    xmlns:ns0='http://schemas.microsoft.com/clr/assem/SoapTest%2C%20Version%3D0.
    0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'

    xmlns:ns1='http://schemas.microsoft.com/clr/nsassem/System.Web.Services/Syst
    em.Web.Services%2C%20Version%3D1.0.5000.0%2C%20Culture%3Dneutral%2C%20Public
    KeyToken%3Db03f5f7f11d50a3a'
    xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'>
    <types>
    <schema
    targetNamespace='http://schemas.microsoft.com/clr/assem/SoapTest%2C%20Versio
    n%3D0.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'
    xmlns='http://www.w3.org/2001/XMLSchema'
    elementFormDefault='unqualified'
    attributeFormDefault='unqualified'>
    <element name='MathService' type='ns0:MathService'/>
    <complexType name='MathService' base='ns1:WebService'/>
    </schema>
    </types>

    <portType name='MathServicePortType'>
    </portType>
    <binding name='MathServiceBinding' type='tns:MathServicePortType'>
    <soap:binding style='rpc'
    transport='http://schemas.xmlsoap.org/soap/http'/>
    <suds:class type='ns0:MathService' extends='ns1:WebService'>
    </suds:class>
    </binding>
    <service name='Service'>
    </service>

    </definitions>
    X_AWemner_X, Aug 13, 2003
    #1
    1. Advertising

  2. X_AWemner_X

    X_AWemner_X Guest

    ForYourInformation,
    I solved my problem by installing Cassini webserver. I can use it to host
    webservice pages and copy .wsdl description. Cassini is a small .net
    application from www.asp.net site.

    > Is it possible to create .wsdl from given assembly dll in commandline?
    X_AWemner_X, Aug 19, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dark
    Replies:
    1
    Views:
    4,602
    milfar
    Nov 14, 2008
  2. Chris Bedford
    Replies:
    0
    Views:
    557
    Chris Bedford
    Aug 21, 2003
  3. Stephen Edgecombe

    WSDL.EXE: WSDL Import Directive

    Stephen Edgecombe, Aug 13, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    221
    Stephen Edgecombe
    Aug 13, 2003
  4. RH
    Replies:
    1
    Views:
    248
    Dino Chiesa [Microsoft]
    May 27, 2004
  5. mrnu

    wsdl.exe fails with WebMethods generated wsdl file

    mrnu, Jun 7, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    195
Loading...

Share This Page