svcutil.exe

Why is an XSD element of type s:date becoming a string when generating a Service Reference?

吃可爱长大的小学妹 提交于 2019-12-21 17:37:28
问题 I'm trying to create a new Service Reference from a WSDL and all of the properties I expect to be DateTime instead of string. For example, this xsd definition for Contact: <s:complexType name="Contact"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="Address" type="tns:Address" /> <s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" /> ... <s:element minOccurs="1" maxOccurs="1" name="BirthDate" type="s:date" /> </s:sequence> The type of BirthDate is s:date, but the

svcutil from wsdl file: Error Schema with target namespace could not be found

℡╲_俬逩灬. 提交于 2019-12-21 09:37:15
问题 On my machine I have a WSDL file and all the necessary schema files. I am trying to use svcutil to create client proxy code from the WSDL. Command: svcutil myfile.wsdl I keep getting an error when using svcutil, but have no problems when loading the wsdl with soapUI if that means anything. I keep getting this error: Error: Cannot import wsdl:portType Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description

WCF - The maximum nametable character count quota (16384) has been exceeded while reading XML data

旧时模样 提交于 2019-12-18 04:46:10
问题 I'm having a WCF Service that uses wsHttpBinding. The server configuration is as follows : <bindings> <wsHttpBinding> <binding name="wsHttpBinding" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"> <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /> <security mode="None"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message

svcutil exlude/reuse refrenced assemblies

余生颓废 提交于 2019-12-18 03:43:59
问题 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 the visual studio gui, this all works out just fine. As long as a type is found on both sides of the border, it's excluded from beeing defined in the proxy. How can I achieve the same thing using svcutil? More clearly I want to generate the proxy

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

[亡魂溺海] 提交于 2019-12-17 16:37:46
问题 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. For example: getDataResponse getData(getDataRequest request); getDataResponse1 getData1(getDataRequest1 request); This by itself isn't a problem, but when Svcutil generates the request/response messages, it neglects to change the WrapperName property

The 'minOccurs' attribute cannot be present

谁说胖子不能爱 提交于 2019-12-17 06:57:07
问题 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 like this: svcutil /language:C# /namespace:*,OGC.OSEO.DataContract /out:IOSEO.cs oseo/1.0/oseo.wsdl oseo/1.0/oseo.xsd ows/2.0/owsAll.xsd ows/2.0/ows19115subset.xsd ows/2.0/owsAdditionalParameters.xsd ows/2.0/owsCommon.xsd ows/2.0/owsContents.xsd

Creating a batch files for visaul studio command

北城余情 提交于 2019-12-14 03:27:31
问题 Hi i have 2 commands need to execute in visual studio command prompt at one time using batch file. C:\iwatch\trunk\CPCE Client\InterviewManagementServiceClient>svcutil http://localhost:19021/InterviewManagementService/InterviewManagementService.svc /l:C# /out:Reference.cs /ct:System.Collections.Generic.List`1 /t:code /n:*,iWatch.InterviewManagementService C:\iwatch\trunk\CPCE Client\EfileServiceClient>svcutil http://localhost:19012/EfileService/EfileService.svc /l:C# /out:Reference.cs /ct

svcutil getting stuck on usernameToken Policy

戏子无情 提交于 2019-12-13 20:35:08
问题 I'm attempting to build a WCF client in C# to consume eMedNy's SOAP web services. The WSDL is here: https://service100.emedny.org:9047/MHService?wsdl When I try running svcutil I get this error: Warning: The following Policy Assertions were not Imported: XPath://wsdl:definitions[@targetNamespace= http://org/emedny/mhs/ ]/wsdl:binding[@name='MHS'] Assertions: <dpe:summary xmlns:dpe='http://www.datapower.com/extensions'> .. </dpe:summary> <sp:SupportingTokens xmlns:sp='http://docs.oasis-open

WCF service + SvcUtil generating unexpected object structure

坚强是说给别人听的谎言 提交于 2019-12-13 13:08:41
问题 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# classes, but it outputs rather odd-looking types. This is a snippet of the WSDL that has been given to me: <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl

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

佐手、 提交于 2019-12-13 12:16:20
问题 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 回答1: Finally after