Click here to Skip to main content
15,895,011 members
Home / Discussions / C#
   

C#

 
GeneralCapturing Video Pin
Deobrat Singh26-Jan-05 22:43
Deobrat Singh26-Jan-05 22:43 
GeneralServicedComponent object in server process Pin
kianboo26-Jan-05 21:27
kianboo26-Jan-05 21:27 
GeneralWindows login Pin
sharathgowda26-Jan-05 20:14
sharathgowda26-Jan-05 20:14 
GeneralRe: Windows login Pin
26-Jan-05 21:34
suss26-Jan-05 21:34 
GeneralRe: Windows login Pin
sharathgowda27-Jan-05 0:58
sharathgowda27-Jan-05 0:58 
GeneralRe: Windows login Pin
Dave Kreskowiak27-Jan-05 4:18
mveDave Kreskowiak27-Jan-05 4:18 
GeneralUpdating a database from a complex DataSet Pin
Luis Alonso Ramos26-Jan-05 18:11
Luis Alonso Ramos26-Jan-05 18:11 
Generalusing wsdl.exe to generate webservice server and proxy Pin
rana7426-Jan-05 16:36
rana7426-Jan-05 16:36 
I create a very simple helloworld webservice using vs.net (let us call it myservice.asmx).I browse to the correspnoding wsdl - http://localhost/Myservice/myservice.asmx?wsdl;and save the generated wsdl to disk after removing the service element.
Now i intend to use the wsdl for generating another service.So I use the vs.net command prompt.


wsdl /server http://localhost/Myservice/myservicewsdl.wsdl /l:CS /out:InheritedService.cs

This gives me the error

Error: Unable to import binding 'MyServiceSoap' from namespace 'http://tempuri.org/'.
- Unable to import operation 'HelloWorld'.
- Specified cast is not valid.

So I separate out the types into a separate schema
My schema(testWSDLInheritanceTypes.xsd)
========
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:tns="http://jpnws0t1/SchemaWSDL" elementFormDefault="qualified" targetNamespace="http://jpnws0t1/SchemaWSDL" id="DataSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="HelloWorld">
<xs:complexType />
</xs:element>
<xs:element name="HelloWorldResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="1" maxOccurs="1" name="HelloWorldResult" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

And the wsdl
=========

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:i1="http://jpnws0t1/SchemaWSDL"
xmlns:tns="http://jpnws0t1/SchemaValidatedService"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://jpnws0t1/SchemaValidatedService"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://jpnws0t1/SchemaWSDL" location="testWSDLInheritanceTypes.xsd" />
<types />
</definitions


On using wsdl.exe on this file,I do not get any errors but a very helpful warning:no classes were generated.
How do I proceed to generate code?

Generalaccessing variables Pin
John L. DeVito26-Jan-05 14:05
professionalJohn L. DeVito26-Jan-05 14:05 
GeneralRe: accessing variables Pin
Heath Stewart26-Jan-05 14:22
protectorHeath Stewart26-Jan-05 14:22 
GeneralCustom Column Style (Windows Forms) Pin
epinaud26-Jan-05 10:14
epinaud26-Jan-05 10:14 
GeneralRe: Custom Column Style (Windows Forms) Pin
Heath Stewart26-Jan-05 14:35
protectorHeath Stewart26-Jan-05 14:35 
GeneralProgramming crystal reportsss Pin
primomak26-Jan-05 9:39
primomak26-Jan-05 9:39 
GeneralAdding assemblies to the GAC Pin
thepersonof26-Jan-05 8:27
thepersonof26-Jan-05 8:27 
GeneralRe: Adding assemblies to the GAC Pin
Nick Parker26-Jan-05 10:15
protectorNick Parker26-Jan-05 10:15 
GeneralGeneral .Net question Pin
Yaakov Davis26-Jan-05 8:11
Yaakov Davis26-Jan-05 8:11 
GeneralRe: General .Net question Pin
Heath Stewart26-Jan-05 14:44
protectorHeath Stewart26-Jan-05 14:44 
GeneralBinding DB to Controls Pin
Eyal Carmi26-Jan-05 3:00
Eyal Carmi26-Jan-05 3:00 
GeneralRe: Binding DB to Controls Pin
Heath Stewart26-Jan-05 14:50
protectorHeath Stewart26-Jan-05 14:50 
GeneralProgramming crystal reportsss Pin
primomak26-Jan-05 2:03
primomak26-Jan-05 2:03 
GeneralSystem wainning sound Pin
jzb26-Jan-05 1:35
jzb26-Jan-05 1:35 
GeneralRe: System wainning sound Pin
jzb26-Jan-05 17:51
jzb26-Jan-05 17:51 
Questionhow to programe winform to surppoort multiLanguage ? Pin
Fire.Rolland.Han26-Jan-05 0:24
Fire.Rolland.Han26-Jan-05 0:24 
AnswerRe: how to programe winform to surppoort multiLanguage ? Pin
Richard Schneider26-Jan-05 0:58
Richard Schneider26-Jan-05 0:58 
GeneralRe: how to programe winform to surppoort multiLanguage ? Pin
Fire.Rolland.Han26-Jan-05 1:24
Fire.Rolland.Han26-Jan-05 1:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.