Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / August 2003

Tip: Looking for answers? Try searching our database.

How to create wsdl from dll in commandline?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
X_AWemner_X - 13 Aug 2003 15:51 GMT
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 - 19 Aug 2003 16:40 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.