C#/Webservice/WDSL Help - Importing XSD into WSDL

Batista

Executive Member
Joined
Sep 2, 2011
Messages
7,906
Reaction score
266
Its simple , I need to import an xsd into my WSDL (Web service definition)

Here is the line I added to the WSDL that i got off the webservice by appending ?WSDL to the end of the webservice address :

<xs:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation= "Routes.xsd"/>

Now where on earth do I commit this change? In Visual Studio there is no such file as WSDL, on IIS where my webservice lives, there is no such option to edit WSDL file.This is something that should take all but 5 mins but im a noob at deploying webservices so i have been struggling for the past 2 days.

Help pls.
 
Thanks man, but after i have changed the WSDL, what do I use to build WSDL back into the webservice? I currently have 2 files, Routes.xsd and Service.WSDL.

You can't from what i recall (I may be wrong), you need to include the XSD within the code itself and let visual studio generate the proxies.

You could try svcutil

svcutil your.wsdl /l:cs
 
Why do you need to import that XSD?
The WSDL is automatically generated based on the service methods exposed by your service.
 
Guys, isolved this by just building a class that represents my data structure and used that, WSDL generated perfectly.
 
Top
Sign up to the MyBroadband newsletter
X