X
X_AWemner_X
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, Versio
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, Version=0.
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, Version=0.
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, Versio
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>
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, Versio
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, Version=0.
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, Version=0.
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, Versio
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>