Questions tagged [wsdl.exe]

The Web Services Description Language tool generates code for XML Web services and XML Web service clients from WSDL contract files, XSD schemas, and .discomap discovery documents.

The Web Services Description Language tool generates code for XML Web services and XML Web service clients from WSDL contract files, XSD schemas, and .discomap discovery documents.

A .wsdl file is an XML document written in an XML grammar called Web Services Description Language (WSDL). This file defines how an XML Web service behaves and instructs clients as to how to interact with the service.
You can obtain discovery documents for an XML Web service using the Web Services Discovery Tool (Disco.exe). The .discomap, .disco, .wsdl, and .xsd files produced by this tool can be used as input to Wsdl.exe.
When you use Wsdl.exe to create a proxy class, a single source file is created in the programming language that you specify. In the process of generating the source code for the proxy class, the tool determines the best type to use for objects specified in the service description.

http://msdn.microsoft.com/en-us/library/7h3ystb6(vs.80).aspx

58 questions
2
votes
1 answer

How to consume web service hosted on multiple servers, from different clients?

I am consuming web services in my client application. At present, the proxy classes are generated using the wsdl.exe. The web class's URL property is set to specific URL where the web service is hosted. The proxy classes are part of one of the class…
Learner
  • 4,661
  • 9
  • 56
  • 102
2
votes
0 answers

How to add namespace in soap envelope of request in c#

I have created a proxy class using wsdl.exe. It is sending a soap envelope as listed below which does not work since the other end of the router is expecting a different set of namespaces inside it
Sofia Khwaja
  • 1,909
  • 3
  • 17
  • 20
2
votes
0 answers

WCF Service reference generates code for SOAP 1.1, not for SOAP1.2

I've received a WSDL which contains the reference for both SOAP 1.1 & SOAP 1.2, since the server supports both SOAP 1.1 & 1.2 However, I would like to use SOAP 1.2 for my client purpose. But when I try to generate the Service reference using Visual…
Abhinav
  • 191
  • 1
  • 3
  • 16
2
votes
1 answer

SoapHttpClientProtocol receives unexpected content type

I created a C# proxy class via wsdl.exe from a WSDL-URL. I'm using this proxy class in the context of a web app which I do not control (so there's no way to change a web.conf or similar). I'm also unable to change anything in the web service that…
germi
  • 4,628
  • 1
  • 21
  • 38
2
votes
0 answers

wsdl.exe ignores complexType containing a single array element

I want to have the following structure in my WSDL (leaving out namespaces)
Sadhir
  • 413
  • 4
  • 13
1
vote
0 answers

Wrong SOAP message generated by class from WSDL.exe

I have two SOAP requests, of which one works and the other doesn't. The second one is created by a class generated directly from the WSDL and it seems to be wrong. Working Created by soapUI 4.0.1 from the WSDL file
Julian
  • 408
  • 5
  • 16
1
vote
1 answer

How to consume JavaScript classes generated by WSDL utility?

I generated classes in JavaScript from a WSDL by using Visual Studio's WSDL utility. wsdl /o:SomeClasses.js /l:js https://SomeCompany.com/SomeService?WSDL The output contains classes (in JavaScript) that look like this: public…
Mark Maslar
  • 1,121
  • 4
  • 16
  • 28
1
vote
2 answers

Extending svcutil.exe and wsdl.exe with custom methods

I really need to add some of my own convenience methods into the auto-generated proxy files that are output by wsdl.exe and svcutil.exe. What I am doing is adding another type of ***Operation***Async method for each service method. I would like to…
skb
  • 30,624
  • 33
  • 94
  • 146
1
vote
0 answers

How to fix "Attribute namespace declaration missing in XML"

I have automatically generated a C# class using the visual studio wsdl.exe tool starting from supplied wsdl and xsd files. I want to use this client to call a java SOAP service in Italy created by SII (Servizio Informativo integrato). I am getting…
1
vote
1 answer

Auto Generating SOAP WS Proxy in VS2008

It seems that there are two methods for auto generating web service proxies in VS2008 from a wsdl. wsdl.exe Adding a web reference/service reference from the interface I've been using wsdl.exe because I like having access to the class - and when…
1
vote
1 answer

Any way to stop wsdl.exe producing output for every class in a hierarchy?

Take a simple example - I have a 'Car' class that inherits from a 'Vehicle' class (BTW I've using Vs2010 and C#). I write myself a trivial web server method (using asmx) that returns a 'Car'. Looking at the WSDL from the ASP.net generated pages I…
SAL
  • 1,218
  • 1
  • 14
  • 34
1
vote
1 answer

How to generate proxy class with wsdl.exe when my file imports other wsdl and xsd files?

I have a wsdl file and I'm trying to generate a proxy class with VS 2012 wsdl.exe tool, but when I try I get the following error message: C:\VISUAL_STUDIO_PATH>wsdl.exe "C:\PATH_TO_FILE\AmHub_service_1_0.wsdl" Error: Cannot find definition for…
Uriel Arvizu
  • 1,876
  • 6
  • 37
  • 97
1
vote
3 answers

Can Visual Studio 2005 wsdl.exe create proxy methods with generic parameters?

The proxy methods that I am seeing generated for methods that have generics for parameters like List Of are getting converted to arrays in the proxy methods. I am not sure what the problem is, is it that the wsdl.exe that shipped with Visual…
OutOFTouch
  • 1,017
  • 3
  • 13
  • 30
1
vote
1 answer

How to generate web service proxy code with wsdl.exe that is serializable

I am using wsdl.exe to auto generate the web service proxy code from a huge wsdl file. I then take the .cs file it generates compile it to a dll and use it in my program to make web service calls. The problem is that when using sql session state in…
Ryan Sampson
  • 6,717
  • 12
  • 47
  • 55
1
vote
1 answer

Update dynamic Web Reference via command line (wsdl tool)

I have a problem with updating dynamic Web Reference using WSDL.exe tool. When I'm using "Update Web Reference" in VS, everything is working as expected. Below is generated code (part of Reference.cs file): public MyService() { …
Martin
  • 57
  • 1
  • 7