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
2
votes
1 answer

Why might VS "Add Service Reference" not generate interfaces for servicecontracts that svcutil recognizes just fine?

I have a WCF service that I'd like clients to be able to reference using Visual Studio's "Add Service Reference" feature. They've been able to recognize the metadata endpoint, the interfaces, methods and data types appear in the Add Service…
Max Strini
  • 2,288
  • 21
  • 24
2
votes
1 answer

SvcUtil and /dconly generates XSD's for data types NOT marked with the DataContract attribute

Has anyone ever encountered a problem with Svcutil and the /dconly option where it generates metadata for EVERY data type in an Assembly, even if it is NOT marked with with the [DataContract()] attribute? It also appears to be generating metadata…
Adam Wilson
  • 286
  • 2
  • 11
2
votes
0 answers

svcutil not generating fault

I have received a wsdl from a java webservice team and when I try to generate c# proxy class using svcutil, it gives me an error on faults and doesn't generate those. I get the below error. Warning: Fault named ProvApiException in operation put…
Priyaaa
  • 21
  • 3
2
votes
2 answers

Error generating Interface with svcutil.exe

Can someone help me generate the Interface (c#) file for the following OGC schema? Schema files: Download Schema Files Link I need to create web services for the Ordering wsdl in the schema zip file above. I've been at it for days now with no luck…
capdragon
  • 14,565
  • 24
  • 107
  • 153
2
votes
1 answer

Cant find Svcutil.exe on my machine

I have a visual studio 2015 on my machine I try to search for the svcutil.exe but I can't find it. Do I need to install it separately?
Ramppy Dumppy
  • 2,667
  • 7
  • 27
  • 37
2
votes
1 answer

Generate service client for 3 services using svcutil

There are 3 wcf services which is using some classes in common in their data contract but not all. I need to generate service client using svcutil toll for all 3 services with different namespaces for the service information and common classes in…
Ajith
  • 1,447
  • 2
  • 17
  • 31
2
votes
1 answer

How to call the svcutil exe from PowerShell?

Is there a way I can call the svcutil exe from PowerShell? I need to automate this process through scripting.
dsingh23
  • 185
  • 3
  • 14
2
votes
0 answers

Reference Shared Silverlight Assembly with slsvcutil.exe

I have several WCF services being consumed by different Silverlight applications. I am currently using slsvcutil.exe with a pretty standard setup to generate my Silverlight proxy objects: "%ProgramFiles%\microsoft…
Dan Auclair
  • 3,607
  • 25
  • 32
2
votes
1 answer

Multiple XSD files with same entities defined

Thanks for any help, We have two XSD files, both of them shares some same entities and some others different. Note that the one with differences are called differently. We want to generate C# code that can Serialize / Deserialize those entities,…
PBelanger
  • 1,269
  • 1
  • 13
  • 24
2
votes
1 answer

How to export metadata from a running WCF service

I wish to send the service metadata of a running WCF service to a third party developer, so he'll be able to create a proxy on his end. At the moment the service is accessible from my local machine only.
Arjor
  • 979
  • 1
  • 8
  • 12
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

New onvif events wsdl still not fixed?

To retrieve events from ONVIF compliant devices you need to use the ONVIF events wsdl. The following is mentioned on the ONVIF FAQ & Support page: Visual Studio 2008, 2010 and 2012 generate web services clients for the WCF framework with a tool…
Rik
  • 316
  • 3
  • 19
2
votes
2 answers

slsvcutil.exe Proxy and Interfaces

Is it possible when using slsvcutil.exe to generate a proxy through the command line not to have the proxy file output the Interface in an Asynchronous fashion. For example, if I have a function "foo()" on the serverside in the Interface, when I…
JPM
  • 21
  • 1
2
votes
2 answers

Importing wsdl using svcutil fails for security config

I try to access a java-webservice which uses ws-security (wsse). I tried to consume it using svcutil: svcutil *.wsdl *.xsd /language:C# /tcv:Version35 This works well, but I get an error importing this block in wsdl-file
UNeverNo
  • 549
  • 3
  • 8
  • 29
2
votes
1 answer

Where is svcutil.exe if i am using visual studio 2012?

I read a book "Pro c# 2010 and the .net 4 Platform" Andrew Troelsen.I stuck on page 926 "using svcutil.exe" Where is svcutil.exe in windows 7 if i am using visual studio 2012?
Ts-alan
  • 47
  • 2
  • 6