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

Cannot compile svcutil-generated C# in Mono

The root problem I'm trying to solve is why none of the WSDL parsers I try to use (Perl, Python, or Node.js) can generate the stubs for this SOAP service I'm trying to communicate with. The service (written in .NET) says to use svcutil.exe to…
Rob Kinyon
  • 1,770
  • 2
  • 19
  • 28
0
votes
1 answer

I want to add the date to my log file

Log files can get very big, very fast if you log wcf calls and messages. I want to split up the log files by date. I can write my own tracelistener but i prefer some constant in the log if that is possible. Something like this
MichaelD
  • 8,377
  • 10
  • 42
  • 47
0
votes
1 answer

svcUtil error 'SchemaLocation' must successfully resolve if contains any child other than

I am trying to generate a proxy from a 3rd party wsdl and xsd files. I am calling svcutil like so: svcutil *.wsdl *.xsd /language:C# It returns this error: 'SchemaLocation' must successfully resolve if contains any child other than . There is…
Robin Clowers
  • 2,150
  • 18
  • 28
0
votes
2 answers

Why does my WCF Service have trouble returning custom object?

So my question is much like this one: WCF service: Returning custom objects, however, despite the solutions in that question I see nothing working. Yesterday I proposed a question related to this one, but I've come closer, if not identified the…
Derek W
  • 9,708
  • 5
  • 58
  • 67
0
votes
1 answer

How to avoid svcutil to produce XmlSerializerFormatAttribute for collection type?

Using svcutil to generate C# code from WSDL; I want to avoid XmlSerializerFormatAttribute attribute; I know why its producing, don't know how to use it correctly to avoid it? lets do some research; basically below piece of xsd producing it; any…
0
votes
1 answer

Unwrapping responses on WCF with XmlSerializer and Soap with RPC Literal

I´m trying to consume a Soap 1.1 web service with WCF. After generating proxies with svcutil from wsdl definition, I found that the all the responses where null. It seems that the service uses RPC Literal so WCF fallbacks to using XmlSerializer.…
Iñaki Elcoro
  • 2,153
  • 1
  • 18
  • 33
0
votes
2 answers

WCF Proxy call is not registering with server?

I've got a service and have verified using "netstat -anb" that when the service is running, it's listening on the correct port (8040). The service contract contains the following contract: [OperationContract] bool RegisterPlayer(); The…
Mike Beck
  • 35
  • 4
0
votes
1 answer

SvcUtil is not generating a class derived from DuplexClientBase despite the ServiceContract defining a CallbackContract

When I use SvcUtil.exe to generate a proxy of my service, I get a class derived from ClientBase even though I declare a CallbackContract. This is the service contract: [ServiceContract(CallbackContract = typeof(IMechClient))] interface…
Mike Beck
  • 35
  • 4
0
votes
1 answer

.NET auto-generated WSDL client does not handle abstract type when maxOccurs attribute is used

I have a rather complicated WSDL that I am adding as a service reference in Visual Studio. The problem I am having is that the auto-generated client code is not properly handling an abstract type (and ignoring all the types that substitute for that…
sst4460
  • 353
  • 1
  • 2
  • 16
0
votes
2 answers

WCF FaultException naming conflict

I have 2 WCF services (different projects) sharing a class library with a MyExceptions defined. Both services uses: [OperationContract] [FaultContract(typeof(MyException))] void op(); When I add both references in the client project I get: Type…
Stefano Altieri
  • 4,550
  • 1
  • 24
  • 41
0
votes
1 answer

How to ignore duplicate xsd elements while generating proxy class wsdl scheme in .NET

I need to generate .NET (C#) proxy classes from wsdl scheme http://hh.ru/services/VacancyService?wsdl but I receive an error: The global element 'http://ns.hr-xml.org/2007-04-15:InternetDomainName' has already been declared. I tried to use…
0
votes
1 answer

ASMX service parameter (type string) has null value when invoked from WCF client

I am trying to consume an existing ASMX service using WCF with a BasicHttpBinding. I used SvcUtil to get me started and just extracted the contract definition interface and the config in to my project leaving all default configuration values as…
Simon Fox
  • 10,409
  • 7
  • 60
  • 81
0
votes
0 answers

Create WCF Service based on Existing WSDL and XSD

If I use svcutil, I don't think I can generate server side code because all interfaces generated don't have ServiceContract attribute and all model classes don't have DataContract and DataMember attributes. So what is the best way I can create my…
hardywang
  • 4,864
  • 11
  • 65
  • 101
0
votes
0 answers

How to avoid generation of pointer to structs, using wsutil?

I've defined the following struct in my WCF service: [Serializable] [DataContract] public struct CompositeKey : IComparable, IComparable, IEquatable { [DataMember] public long Primary { get; private set; } …
Nawaz
  • 353,942
  • 115
  • 666
  • 851
0
votes
1 answer

Change method parameter value types to nullable value types in proxy generation

Just to give a big context of my idea. I have to consume a Java Service. And some methods have value types as parameters like int, decimal. I generated a proxy through the svcutil.exe and of course it generates the methods with the respective types,…
Hector Sanchez
  • 2,297
  • 4
  • 26
  • 39