Questions tagged [svcutil.exe]

The ServiceModel Metadata Utility tool (SVCUTIL.EXE) is used to generate service model code from metadata documents and metadata documents from service model code.

Svcutil.exe can generate code for service contracts, clients and data types from metadata documents. These metadata documents can be on a durable storage, or be retrieved online. Online retrieval follows either the WS-Metadata Exchange protocol or the DISCO protocol

http://msdn.microsoft.com/en-us/library/aa347733.aspx

416 questions
4
votes
5 answers

Is there a way to force svcutil.exe to ignore SSL certificate issues?

I need svcutil.exe to generate a proxy class for me, but the problem is that the web service can be accessed only via HTTPS and the SSL certificate is self signed. How can I force svcutil.exe to ignore this issue?
Piotr Owsiak
  • 6,081
  • 8
  • 39
  • 42
4
votes
4 answers

Convert sequences to Generic Lists with svcutil

I am trying to auto generate some code with svcutil. I have the following within an xsd: I then…
Shiraz Bhaiji
  • 64,065
  • 34
  • 143
  • 252
4
votes
2 answers

WCF svcutil with client certificate

I've developed a WCF service that uses transport security with a required client certificate. It is hosted on IIS 7.5 and require client certificate is checked. I've setup a mex endpoint and am able to view the wsdl in my browser at…
ultraviolet
  • 95
  • 2
  • 8
3
votes
1 answer

methods with the same soapaction

I'm doing contract-first development of a SOAP server. The wsdl declares the same soapAction for several methods. Now svcutil produces code that declares the same value for the OperationContractAttribute.Action property of several methods. This…
Miel
  • 3,347
  • 2
  • 26
  • 39
3
votes
2 answers

Using svcutil to adjust specific values on bindings

I am using svcutil to generate a proxy file for use against a service we consume. Currently, I have a batch file that we can run at anytime to regenerate the proxy file if the service changes. However, I always have to adjust a few values on the…
Mr Moose
  • 5,946
  • 7
  • 34
  • 69
3
votes
1 answer

C# Asynchron call with Named Pipes in WCF

I have a WCF host created with named pipes binding: using System; using System.ServiceModel; using System.ServiceModel.Description; namespace Microsoft.ServiceModel.Samples { // Define a service contract. [ServiceContract] public interface…
Juergen
  • 3,489
  • 6
  • 35
  • 59
3
votes
2 answers

svcutil.exe generates errors while wsdl.exe runs through without

I'm looking into generating a web-service conforming to the WSDL found at: http://assets.cdn.gamigo.com/xml/connection-service/1.0.10/account.wsdl When I run with svcutil.exe like this: svcutil.exe /language:C# /out:GamigoServices.cs…
max
  • 123
  • 7
3
votes
1 answer

Access denied when using svcutil

I am trying to consume a WCF service I wrote, but I can't get the svcutil.exe to generate a proxy. Every path I try brings up access denied... What do I need to set to get permission? Generating files... Error: Cannot create output file:…
chobo
  • 31,561
  • 38
  • 123
  • 191
3
votes
1 answer

Why are attributes not supported with the DataContractSerializer?

I create xsd's based upon client's documentation and all of the xsd's have attributes. I have been using xsd.exe to generate the classes from the xsd's, but I read that attributes aren't supported for the DataContractSerializer. Why not? Does…
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
3
votes
1 answer

Generate WCF (windows service hosted) client proxy class with XML comments?

I have a small problem which I haven´t found a solution to. I'm developing a simple WCF service (VS2010, .NET 4.0, windows service hosted). I have no control over the client side, and therefore I need to make it as simple as possible for the…
sekarmaeu
  • 105
  • 1
  • 9
3
votes
4 answers

How can I make multiple SOAP web service calls generic to reduce redundancy?

I have these methods below that call some SOAP web services, all from the same provider, so they all have the same methods/calls/etc. I'm looking for a more OOP/abstract way to call these without writing so many methods? Ideally I'd like one method…
chuckd
  • 13,460
  • 29
  • 152
  • 331
3
votes
1 answer

What is the output of svcutil /l:CPP /out: output_Folder_Path wsdl_folder_path?

I was trying to create .cpp files from wsdl using svcutil. But unable to create cpp files. svcutil /l:CPP /out: output_Folder_Path wsdl_folder_path with this command it is creating .h header file. Please help me how to create .cpp files.
Gajanan Kulkarni
  • 697
  • 6
  • 22
3
votes
1 answer

SVCUTIL.EXE: Any way to separate my Commons.xsd classes? (C#)

Basically I have the following scenario: I have 2 WSDL files: User.wsdl Customer.wsdl Both of these wsdl's reference a Commons.xsd (Schema) so that they can use an Address ComplexType. Then I do svcutil.exe "User.wsdl" "Commons.xsd" to generate…
michael
  • 14,844
  • 28
  • 89
  • 177
3
votes
2 answers

SvcUtil generates "Order" Named Parameter for xsd:all complexcontent

Here is my dilemma, the svcutil command still generates Order Named parameter for complex content who are marked as xsd:all. Here is my sample schema.
M.Nadeem Shaikh
  • 116
  • 1
  • 8
3
votes
1 answer

Scraping KnownType attributes during SvcUtil and WSDL Code generation

I have a WCF service with a mex endpoint for metadata. I use the SvcUtil through visual studio to generate client data contracts code (C#) while the service is running. SvcUtil adds KnownType attributes for the inherited and referenced types. I have…
LadderLogic
  • 1,090
  • 9
  • 17