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
5
votes
3 answers

svcutil exlude/reuse refrenced assemblies

Is it possible to use svcutil to reuse/exclude referenced types, as with visual studio. I have multiple projects, my types/datamodels are stored in separate assemblies, so they can be used by other non wcf projects etc. When updating refrences in…
Stígandr
  • 2,874
  • 21
  • 36
5
votes
6 answers

WCF: Svcutil generates invalid client proxy, Apache AXIS Web Service, overload operations

I'm using a 3rd party web service written in Java and using Apache Axis 1.3. The service has many overload operations. When the WCF Svcutil generates the proxy, it renames the overloaded operation by appending a number after the operation name. …
Mark Good
  • 4,271
  • 2
  • 31
  • 43
5
votes
1 answer

Howto use svcutil to generate a C# WCF proxy from a web service that uses restriction to hide elements?

I'm creating a client to a web service that is more or less out of my control. Here is a simplified sample of the schema:
Trond Aarskog
  • 118
  • 1
  • 8
5
votes
0 answers

How can I get the raw XML response from a .NET generated SOAP client rather than serialized objects?

I need to access the raw response XML from a .NET generated SOAP client (using svcutil). I believe that I can do this by intercepting it with a custom behaviour, but I don't really need the deserialized objects at all (and would rather not take the…
Brad Allan
  • 51
  • 1
5
votes
3 answers

Identical Types In Separate Web Services

I have a similar problem as this question. I have multiple web services that I am consuming with WCF, which all share types. The services themselves are written in Java and I do not have access to them. The shared types have the same signatures, but…
swilliams
  • 48,060
  • 27
  • 100
  • 130
5
votes
2 answers

How to determine what schema files (xsd) to include on my svcutil command line?

Using svcutil, I'm trying to generate a proxy class for a web service endpoint which follows the OGC CSW 2.0.2 (07-006r1) standard for catalog services. I've downloaded the entire OGC schema files and placed them into my "D:/temp/OGCSchemas/"…
capdragon
  • 14,565
  • 24
  • 107
  • 153
5
votes
2 answers

How can I set a namespace without overwriting the service configuration name using SvcUtil.exe?

I'm using SvcUtil.exe to generate my WCF code, like this: SvcUtil.exe http://www.MyServer.com:8080/MyService/mex /out:"C:\test.cs" /mc I can get it to work, but if I set add a /namespace argument(/namespace:*,MyNamespace), it overwrites the…
Mike Pateras
  • 14,715
  • 30
  • 97
  • 137
5
votes
0 answers

Referenced type is only valid for encoded SOAP

I'm trying to generate C# proxy class from wsdl file by using svcutil. But I get a lot errors: Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension:…
Y. Ivan
  • 109
  • 1
  • 9
5
votes
1 answer

WCF service + SvcUtil generating unexpected object structure

I am trying to create a WCF application that will listen for requests from a suppliers system. The supplier has provided me with a WSDL so I need to create a service and expose its' endpoint to them. I have used SvcUtil.exe to generate the C#…
Arj
  • 1,981
  • 4
  • 25
  • 45
5
votes
0 answers

Make svcutil.exe generate Properties with no Order attribute

I use svcutil.exe to generate proxy classes from a hosted WebService created by WebSphere that uses Java under the hood. I am using the XmlSerializer instead of DataContractSerializer and targeting Framework v3.5 with VS2010 The proxy classes are…
Luis Filipe
  • 8,488
  • 7
  • 48
  • 76
5
votes
1 answer

Generating separate "model" classes from a WCF service

I'd like to be able to generate individual classes (one class per file) for each Data Contract or XML type in a WCF Web Service. I've read the svcutil documentation, and unless I skimmed a little too fast, it doesn't look like the tool supports this…
Aaronaught
  • 120,909
  • 25
  • 266
  • 342
5
votes
0 answers

Command Line WCF References For WinRT

How do you generate a service reference via the command line that replicates the output of adding a service reference in Visual Studio for a WinRT application. I have tried using svcutil (using local schema files): svcutil.exe /internal…
J_D
  • 429
  • 2
  • 12
4
votes
1 answer

svcutil support for WS-Addressing and WS-Policy

I'm using schema-first web service development approach by hand-coding WSDL/XSD and then feeding it to svcutil tool to generate .NET data and service contracts. I've tried to introduce WS-Addressing into my WSDL by including "UsingAddressing"…
Konstantin
  • 3,817
  • 4
  • 29
  • 39
4
votes
1 answer

Performance of ChannelFactory versus pre-generated proxy using Svcutil

Do Svcutil generated proxies give better performance over ChannelFactory used at runtime? Does ChannelFactory cache proxy by default? I am using .NET 4 with a service which has more than 100 operations and more than 500 data contracts participating…
Learner
  • 4,661
  • 9
  • 56
  • 102
4
votes
1 answer

DatacontractSerializer. Export metadata. Type annotations

Tell me please is it possible to automatically generate annotation for types/elements in generated xsd file with comments somehow? from /// /// Comment for myclass /// [DataContract] public class myclass { } to …
Andrey Khataev
  • 1,303
  • 6
  • 20
  • 46