svcutil.exe

WCF / svcutil in .NET 4.5 generates unusable code by default

若如初见. 提交于 2019-12-07 01:29:28
问题 With .NET 4.5, my WCF creation using svcutil suddenly seems to break (I've been using only .NET 4.0 until very recently) .... With the default settings I'm using to convert a pre-existing WSDL to my C# WCF proxy class: c:> svcutil.exe /n:*,MyNamespace /out:WebService MyService.wsdl I get this C# file created: [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="MyService.IMyService1")] public

SVCUtil “update service reference” equivalent command parameters

青春壹個敷衍的年華 提交于 2019-12-06 09:11:53
I want to update service references in a Visual Studio 2010 solution by using SVCUtil because this solution has several projects and it's not good to get references refreshed one by one. I'd like to know your point, because I've to be sure I'm going to execute exactly same command than one done by Visual Studio 2010, or even if Visual Studio 2010 doesn't use SVCUtil, an equivalent command to IDE's behavior. Thank you very much. Some googling here and here shows the settings on VS 2008, although this will depend of course on your options in the Advanced options in the Add Service Reference

How can i make this a valid WSDL?

[亡魂溺海] 提交于 2019-12-06 04:46:42
问题 I'm trying to generate code from this WSDL using the following command: svcutil /noConfig /language:C# /out:ICatalog.cs http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl However svcutil cannot read it, and the xMethods WSDL validator says it's invalid. What's invalid about it? How can i get svcutil to generate my interface code? 回答1: I'm not sure if the WSDL is valid or not but what you are trying to do won't work. Svcutil can generate code only for

Using svcutil to generate xsd files for client proxy

笑着哭i 提交于 2019-12-05 23:57:12
I am trying to use Svcutil to export metadata for proxy generation off a locally hosted service. I dont want to go into visual studio and click 'Add service reference' as this is a learning exercise on my part(!) I am using svcutil as follows: Svcutil /d:c:\temp /t:metadata http://localhost/IISCalculatorService/service.svc This then generates two WSDL files, calculatorservice.wsdl and tempuri.org.wsdl. However I was expecting it to generate two .XSD files as well. Without these .XSD files I cant use svcutil to then generate the client code. Am I missing something in my use of svcutil or is my

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

自闭症网瘾萝莉.ら 提交于 2019-12-05 14:28:30
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/" Directory. The schema i'm interested in is CSW, however CSW schema includes and imports other schemas and that's why i've downloaded the entire set. For example you will see something like this: <wsdl:import namespace="http://www.opengis.net/cat/csw/2.0.2/requests" location="./xml-interfaces.wsdl"/> <xsd:schema targetNamespace="http://www.opengis.net/cat

Is there a way to force svcutil.exe to ignore SSL certificate issues?

时光毁灭记忆、已成空白 提交于 2019-12-05 12:19:35
I need svcutil.exe to generate a proxy class for me, but the problem is that the web service can be accessed only via HTTPS and the SSL certificate is self signed. How can I force svcutil.exe to ignore this issue? You could try browsing to the https site first, ignore the warning that the certificate is not trusted, then click on the certificate and install it. This should result in the machine you are working on trusting the certificate. Then try running svcutil again. One thing that seemed to work was to fire up Fiddler and have it running as you make the SVCUTIL requests. Fiddler's cert is

SVCUtil skip complexType of a wsdl to avoid duplicates

霸气de小男生 提交于 2019-12-04 21:40:25
I have multiple wsdl files downloaded on my local - A.WSDL and B.WSDL A.WSDL has same set of complex type (nearly 100) as that of B.WSDL <xsd:complexType name="Book"> but the methods/operations are different. For Example: A.WSDL has complex type <xsd:complexType name="Book"> and operations being create new operations B.WSDL has same complex type <xsd:complexType name="Book"> and operations being read operations I am using SVCUtil to generate stubs on the client end to a single file and stubs with the same namespace. But getting the below error: Error: There was an error verifying some XML

how to generate client proxy class of a wcf service that will work in the .net 2.0

你离开我真会死。 提交于 2019-12-04 17:29:32
I have to use a wcf service in the ssis script component which is developing in BIDS 2005. For this i have generated the proxy class of that service using svcutil.exe . After attaching the proxy class in the script component it has error of some class such as System.Runtime.Serialization.DataContractAttribute is not defined. Any suggestion how can i resolve this issue.. Or can wsdl is used to genrate proxy class of wcf service. so that it can be used in the .net 2.0. Thanks Finally after much struggling over it, i have resolved the issue. Now i have successfully created the proxy class of the

SvcUtil generates “Order” Named Parameter for xsd:all complexcontent

試著忘記壹切 提交于 2019-12-04 13:40:14
Here is my dilemma, the svcutil command still generates Order Named parameter for complex content who are marked as xsd:all. Here is my sample schema. <xsd:complexType name="SpecialReportEntityRow" > <xsd:complexContent> <xsd:extension base="list:BaseRowExt"> <xsd:all> <xsd:element name="customerName" type="xsd:string" form="unqualified" minOccurs="0" maxOccurs="1" /> <xsd:element name="Id" type="xsd:long" form="unqualified" minOccurs="0" maxOccurs="1" /> <xsd:element name="certificateType" type="xsd:string" form="unqualified" minOccurs="0" maxOccurs="1" /> <xsd:element name=

How can i make this a valid WSDL?

二次信任 提交于 2019-12-04 11:23:02
I'm trying to generate code from this WSDL using the following command: svcutil /noConfig /language:C# /out:ICatalog.cs http://schemas.opengis.net/csw/2.0.2/profiles/ebrim/1.0/wsdl/2.0/csw-ebrim-interface.wsdl However svcutil cannot read it, and the xMethods WSDL validator says it's invalid. What's invalid about it? How can i get svcutil to generate my interface code? I'm not sure if the WSDL is valid or not but what you are trying to do won't work. Svcutil can generate code only for WSDL files of version 1.1. Yours is a WSDL version 2.0. The WSDL validator you pointed in your question returns