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

Auto generated service from SVCUtil.exe cannot show metadata

I have followed all the steps on showing the metadata using the config file but I still received Metadata publishing for this service is currently disabled Below is my config file.
dantz
  • 37
  • 1
  • 9
0
votes
1 answer

How to get a reusable svcutil-generated proxy

It is easy to generate a proxy for a service (which has a wsdl) with svcutil.exe. With the command call "%VS100COMNTOOLS%"\vsvars32.bat svcutil.exe http://localhost:8754/MyService.svc?wsdl /out:MyProxy.cs /config:MyProxy.config two files are…
Mare Infinitus
  • 8,024
  • 8
  • 64
  • 113
0
votes
0 answers

WCF fault is not generated as DataContract

I am consuming JAVA service everything working fine but faultexception are giving me trouble. fault exception is not getting de-serialized properly. due to some name space issue. this is the wsdl.
sandeep
  • 996
  • 2
  • 11
  • 22
0
votes
1 answer

How can I use SimpleType in a WSDL data contract?

I use a wsdl file to generate web service with the help of svcutil but it generates class instead of simple int or string parameter for the service contract. What I did: I created a WCF Service Application I created a Console Application then…
sada
  • 584
  • 2
  • 8
  • 25
0
votes
2 answers

HOw to manage newly added methods into WCF service

I have created wcf service and added its refernece into web application project. Have added as below way: 1. generated proxy and config file using - svcutil command and added proxy file into web application project and merged configuraiton…
user3711357
  • 1,425
  • 7
  • 32
  • 54
0
votes
1 answer

Duplicate classes in my wcf proxy

Okay, I have two OperationContracts and MessageContracts, like this: [OperationContract] OperationResult OperationOnSingleItem(Input input) [OperationContract] OperationResult OperationOnItemCollection(Inputs inputs) [MessageContract] public class…
ashwnacharya
  • 14,601
  • 23
  • 89
  • 112
0
votes
1 answer

Svcutil.exe generates wrong method types

WCF novice here. In my solution i have 3 projects: Common Logic Client Server Both Client and Server imports Common Logic. My server has a method called GetNextFile. Here the interface implementation: [OperationContract] RemoteFileInfo…
HypeZ
  • 4,017
  • 3
  • 19
  • 34
0
votes
1 answer

Svcutil.exe - how to handle types common for many wsdl?

I have many WSDL's and referenced XSD's in a directory structure. Some types in XSD - for example a common message header - are shared among all WSDL's. I run svcutil.exe for each WSDL, to have separate namespace for the service and it's types, but…
Mikee
  • 626
  • 1
  • 10
  • 23
0
votes
1 answer

svcutil generated code needs xmlinclude

I am developing a console application in VB NET using WCF which communicates with a secure vendor service. I want to serialize both the request and the response from the calls and store them in a XML file for analysis. Unfortunately, the object I…
Ebassador
  • 339
  • 3
  • 20
0
votes
1 answer

How to generate code for WCF with svcutil and xsd files?

I have a set of xsd files that define an XML message protocol for communications between devices. I'm planning to use WCF at one end. I'm hoping that there is a way to automate generation of classes based on the xsd files that I could use with WCF.…
bdristan
  • 1,048
  • 1
  • 12
  • 36
0
votes
1 answer

Do I have to build the WCF Client for each machine its used on?

I've built and compiled my WCF client to run successfully. I've found that as long as these two files are together, my client will run anywhere on my computer: Client.exe Client.exe.config When I move these files to another computer, there's an…
qdev76
  • 149
  • 1
  • 9
0
votes
1 answer

Create assembly with datacontracts of WCF service

Here is my issue: in a project I have to consume 3 third-party wcf services. 2 of those contain the same objects and largely the same methods. The user's role within the application determines which service to use. For example: Let's say the 2…
DirkV
  • 353
  • 1
  • 4
  • 16
0
votes
1 answer

referencing all dlls in a folder with SvcUtil.exe /reference

We have a bunch of 3rd party dlls which have the datacontracts we want to use. Right now we are generating the proxy using svcutil.exe by specifying /reference for each dll separately. This is very tedious. Is there a way to specify all the dlls…
Avinash
  • 25
  • 1
  • 8
0
votes
1 answer

svcutil getting stuck on usernameToken Policy

I'm attempting to build a WCF client in C# to consume eMedNy's SOAP web services. The WSDL is here: https://service100.emedny.org:9047/MHService?wsdl When I try running svcutil I get this error: Warning: The following Policy Assertions were not…
Isaac Kleinman
  • 3,994
  • 3
  • 31
  • 35
0
votes
0 answers

why svcutil.exe ignoring targetnamespace in xsd

can somebody explain me why svcutil.exe is ignoring targetnamespace when it is generating c# code from wsdl and xsd? if I use: svcutil.exe /importXmltypes /useSerializerForFaults /noLogo /language:cs serializer:XmlSerializer /async MyService.wsdl…
Dusan Plavak
  • 4,457
  • 4
  • 24
  • 35