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

Call authenticated web service in asp.net MVC

My problem is in calling authenticated (has username and password) web service (asmx) in ASP.NET MVC I did the following: I added the web service to the project by adding service reference to the solution Tried to create proxy class of the service…
RProgrammer
  • 47
  • 1
  • 8
3
votes
0 answers

svcutil with local files dosen't make code but online does

I have locally a wsdl it's xsd's files and trying to get the proxy file with svcutil.exe with this command svcutil *.wsdl *.xsd /l:cs I get this error: Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL…
Mao
  • 125
  • 2
  • 11
3
votes
0 answers

Creating a WCF project using an existing WSDL and svcutil.exe

I am fairly new to authoring my own webserivces, so you'll need to bear with me if I use incorrect terminology. I am attempting to create a web service using WCF. The service needs to be created using an existing wsdl spec that can be found here: …
fulgore66
  • 31
  • 1
  • 3
3
votes
2 answers

Generate task based WCF service references with svcutil

I read an article recently regarding creating task based WCF service references in this article. The mechanism that I use to generate my service references for consuming applications is using svcutil in a batch file. Is it possible to create task…
amateur
  • 43,371
  • 65
  • 192
  • 320
3
votes
0 answers

wsdl doc has missing wsdl:port element when svcutil executed from a Process object in a windows app

For reasons unnecessary to go into on this thread, I'm trying to create a wrapper for svcutil, which will then standardise the wsdl & xsd docs created to point at certain addresses. However, one of my WCF services has two different service…
3
votes
2 answers

F# wsdl type provider error?

Although I love the idea of F# type providers my first serious attempt to use them crashed hard. I was going to connect to a service (WCF) with WsdlService<"http://someurl/some.svc?wsdl"> It fails epicly with: The type provider …
Helge Rene Urholm
  • 1,190
  • 6
  • 16
3
votes
1 answer

ServiceStack WSDL error. Endpoint is not compatible with Windows Store apps. Skipping...

Working on a Windows 8 (metro style) application, and want to reference a service hosted by ServiceStack from it. Since I cannot use the C# client objects provided by ServiceStack (can't reference the DLL from a Windows 8 project) I figured I'd…
3
votes
1 answer

WCF: SvcUtil.exe with imports issue

One of the requirement in our project is as follows: We got from client WSDL and XSD files only. Our task is to generate SOAP messages based on these WSDL and XSD files and extract SOAP bodies. First step we should undertake is to generate client…
tesicg
  • 3,971
  • 16
  • 62
  • 121
3
votes
1 answer

Storing classes transmitted over wcf

When I use svcutil or some other proxy generator it creates appropriate classes in client. I wonder what is the best way to store this classes to avoid conflicts. In some other "Common" project and remove generated classes from proxy? Or just use…
Saint
  • 5,397
  • 22
  • 63
  • 107
3
votes
2 answers

How to generate async method with svcutil?

Is it possible generate async ServiceOperation only for one method by svcutil? I know I can add /async parameter but then it generates all methods in async pattern.
Saint
  • 5,397
  • 22
  • 63
  • 107
3
votes
1 answer

WCF Service Client with svcutil ( no "extra" clientside-datatype def. )

i got the problem, that a WCF service ( generated with svcutil.exe ) generates it's own datatypes, instead of using the ones i already defined.. for example: The svcutil generated something like this: public partial class EmailTransactionRequestMsg…
David
  • 2,551
  • 3
  • 34
  • 62
2
votes
0 answers

WCF service reference proxy generation fails to update web.config in MVC3

When I add a service reference to a WCF web service in my current ASP.net MVC 3 project, proxy classes are successfully generated, but there's no information added to web.config. This results in an error when I attempt to instantiate the proxy class…
Yes - that Jake.
  • 16,725
  • 14
  • 70
  • 96
2
votes
2 answers

Include Extension Methods in Generated Proxies File

We have two assemblies, DataContracts and Core. We are currently using svcutil to generate our DataContracts, while referencing Core. We've got a couple of extension methods on different enum types that would be useful on the client side. Is there…
AlexCuse
  • 18,008
  • 5
  • 42
  • 51
2
votes
1 answer

The 'minOccurs' attribute cannot be present

I'm in the process of building my svcutil command line to generate business objects from the OSEO schema. Whenever it tells me "xxx" type is missing, i determine what xsd i need to include to the command line and add it. So far my command line looks…
capdragon
  • 14,565
  • 24
  • 107
  • 153
2
votes
1 answer

Svcutil generates wrong Name property value in DataContractAttribute

When I use svcutil.exe to generate a Customer class from the definition contained in the xsd file: