svcutil.exe

Problem generating data contract code with SVCUTIL

╄→尐↘猪︶ㄣ 提交于 2019-12-13 08:53:30
问题 When i run the following command in the visual studio command prompt: D:\Documents\DEV\SARPilot\Docs\eoschema\schema\OrderSchema>svcutil /t:code /language=C# *.wsdl *.xsd ..\ws-addressing\*.xsd ..\gml\3.1.1\base\*.xsd ..\ows\1.0.0\*.xsd ..\xlink\1.0.0\*.xsd ..\swe\sweCommon\0.0.0\*.xsd /out:MyServiceProxy.cs /config:MyServiceProxy.config I get the following error: Microsoft (R) Service Model Metadata Tool [Microsoft (R) Windows (R) Communication Foundation, Version 4.0.30319.1] Copyright (c)

svcUtil error 'SchemaLocation' must successfully resolve if <redefine> contains any child other than <annotation> [closed]

北战南征 提交于 2019-12-13 03:06:47
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . 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

svcutil generated code missing parts

旧时模样 提交于 2019-12-11 18:51:40
问题 I have this: "%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0A\bin\svcutil.exe" ^ /noLogo /t:code /l:cs /mc /tcv:Version35 /ct:System.Collections.Generic.List`1 /n:*,MYNS ^ /config:MyServiceProxy.config ^ /out:ServiceProxy.cs ^ https://remote-service/ServiceA?wsdl It generates classes, types and endpoint configurations as I expect. When I add multiple endpoints ex: "%PROGRAMFILES%\Microsoft SDKs\Windows\v7.0A\bin\svcutil.exe" ^ /noLogo /t:code /l:cs /mc /tcv:Version35 /ct:System.Collections

.NET 3.5 ASMX Web Service - Invoked via .NET 3.5 Service Reference - Common Class Reuse

佐手、 提交于 2019-12-11 13:40:30
问题 I have a .NET 3.5 web service with a single web method that looks something like this: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ using System; using System.Collections.Generic; using System.Web.Services; namespace Webservice1 { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] public class WebService1 : WebService { [WebMethod] public List<Model.Person>

Error: Cannot import wsdl:port with svcutil

吃可爱长大的小学妹 提交于 2019-12-11 12:14:46
问题 I created a small WCF service (hosted in IIS) and used Chrome to take the wsdl of it, put that in a .wsdf file and then wanted to use svcutil test.wsdl to generate the client proxy out of it but I'm getting this error: Error: Cannot import wsdl:port Detail: There was an error importing a wsdl:binding that the wsdl:port is depend ent on. XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/' ]/wsdl:binding[@name='WSHttpBinding_IService1'] XPath to Error Source: //wsdl

Svcutil generates wrong Name property value in DataContractAttribute

爷,独闯天下 提交于 2019-12-11 04:39:42
问题 When I use svcutil.exe to generate a Customer class from the definition contained in the xsd file: <xs:schema ...> <xs:element name="customer" type="Customer" nillable="true" /> <xs:complexType name="Customer"> <xs:sequence> <xs:element name="id" type="xs:decimal" minOccurs="0" /> <xs:element name="first_name" type="xs:string" /> <xs:element name="last_name" type="xs:string" /> <xs:element name="phone" type="Phone" minOccurs="0" /> <xs:element name="email" type="Email" minOccurs="0" /> <xs

How can I make WCF talk to this web service?

北战南征 提交于 2019-12-10 17:52:36
问题 This is a follow up of this question. As suggested by @Benjamin here, I am trying to add a service reference for my wsdl now (in stead of a web reference). Here is the url to the wsdl in question: https://eu.link.fiatauto.com/tsi/DDUWsAut.php?wsdl The problem is that Visual Studio generates an empty codefile: //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:2.0.50727.3603 // // Changes

Identical Types In Separate Web Services

别说谁变了你拦得住时间么 提交于 2019-12-10 14:42:50
问题 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 svcutil.exe gives this error when running: Error: There was a validation error on a schema generated during export: Source: Line: 8 Column: 3 Validation Error: The complexType 'http://MyServer.MyService:CommonType' has already been declared. With

SVCUtil “update service reference” equivalent command parameters

对着背影说爱祢 提交于 2019-12-10 11:05:10
问题 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. 回答1: Some googling here and here shows the settings on VS 2008,

Using svcutil to generate xsd files for client proxy

谁说我不能喝 提交于 2019-12-10 09:52:49
问题 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