wsdl

wcf : string element nillable=“false”

十年热恋 提交于 2020-01-03 11:15:27
问题 I have a client that is mandating that my required string elements have nillable="false" , currently all strings in the wsdl come out will nillable="true" , IE: <xs:element name="username" nillable="true" type="xs:string" /> How can i change the nillable="false" ?!? I will take any suggestions on how to do this? Am I the first person that has run into this? 回答1: How is this element defined in your data contract? If it's not already done, try adding a IsRequired=true clause to the data member

Service Reference (VS2013) more than one fault is declared with element name in namespace

北战南征 提交于 2020-01-03 09:05:18
问题 I'm attempting to consume a web service created by Oracle Web Logic in Visual Studio 2013. I've added the service reference OK but when I call the service constructor I get the error: In operation (operationName), more than one fault is declared with element name (elementName) in namespace (namespace URL) The snippets for this operation from the WSDL is shown in the image below: This exception is thrown each time I attempt to use the service, and I can't proceed any further. Is this an issue

Why doesn't the /reference option to svcutil.exe work?

£可爱£侵袭症+ 提交于 2020-01-03 08:43:10
问题 I'm attempting to use svcutil.exe to generate -only- the service contracts (interfaces) from a set of .wsdl files. When I do this (from an http-hosted wsdl), it picks up the included schemas and generates all the code for them. Great. What I would REALLY like to do, however, is to use a set of classes already generated from the schema files using the xsd.exe tool (the reasons for this are not important, suffice it to say that I need to have the types in one assembly, and the service contracts

“Can not initialize the default wsdl from…” — Why?

荒凉一梦 提交于 2020-01-03 07:29:06
问题 My pom.xml contains the following to auto generate a client for a working web service having the WSDL specified below: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>generate-sources</id> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/myclient.wsdl</wsdl> <extraargs> <extraarg>-client</extraarg> <extraarg>

“Can not initialize the default wsdl from…” — Why?

烂漫一生 提交于 2020-01-03 07:29:06
问题 My pom.xml contains the following to auto generate a client for a working web service having the WSDL specified below: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.3.1</version> <executions> <execution> <id>generate-sources</id> <configuration> <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/wsdl/myclient.wsdl</wsdl> <extraargs> <extraarg>-client</extraarg> <extraarg>

SOAP - nillable=“true”

对着背影说爱祢 提交于 2020-01-03 03:38:10
问题 I am building a web service using the Zend Framework. I am using the Zend_Soap_AutoDiscover class for the generation of my WSDL. I am using various complex type in this web service form example: StockItemEntity Class class StockItemEntity { /** @var string */ public $sStockCode; /** @var string */ public $sQty; public function __construct($sStockCode, $sQty){ $this->sStockCode = $sStockCode; $this->sQty = $sQty; } } WSDL Definition <xsd:complexType name="StockItemEntity"> <xsd:all> <xsd

Binding to a SOAP Service With Optional Value Types

落爺英雄遲暮 提交于 2020-01-03 02:17:05
问题 I have a method on a SOAP service being generated with the following WSDL : <xs:complexType name="updateItem"> <xs:sequence> <xs:element name="itemCode" type="xs:string" /> <xs:element minOccurs="0" name="itemParentCode" type="xs:string" /> <xs:element minOccurs="0" name="itemStatus" type="xs:string" /> <xs:element minOccurs="0" name="isActive" type="xs:boolean" /> <xs:element minOccurs="0" name="isPrimary" type="xs:boolean" /> </xs:sequence> </xs:complexType> I'm connecting to this service

How can I generate comments from xs:documentation tags in a wsdl?

人盡茶涼 提交于 2020-01-03 01:47:29
问题 Aloha I received a nice wsdl with xs: documentation tags like: <xs:complexType name="Supplier"> <xs:annotation> <xs:documentation> The supplier of the product </xs:documentation> </xs:annotation> Is there any way to generate ///<summary> tags from this? I'm using visual studio 2008 回答1: Try the WSDL tool from Microsoft and see if that helps 回答2: I have found the tool xsd2code that includes this functionality. -Edoode 来源: https://stackoverflow.com/questions/374086/how-can-i-generate-comments

Ruby & Savon SOAP client - Unable to find SOAP operation

廉价感情. 提交于 2020-01-03 00:22:09
问题 First time working with a SOAP client, so not sure what I'm doing wrong here. Here's the SOAP API I'm trying to use: http://services.carsolize.com/BookingServices/DynamicDataService.svc?wsdl irb(main):018:0> client = Savon.client(wsdl: "http://services.carsolize.com/BookingServices/DynamicDataService.svc?wsdl", convert_request_keys_to: :camelcase) No matter what I pass to call on client , it tells me: irb(main):022:0> client.call :service_request, :message => {} HTTPI GET request to services

How to add soap basic auth request to WSDL

只愿长相守 提交于 2020-01-02 13:22:30
问题 How can I had soap AUTH BASIC auth to a WSDL, so who ever reads the WSDL knows I require that operation for a specific method ? 回答1: Using the example bellow I have managed to pass the SOAP basic autentication to the php webservice on the other end. The PHP.net/Soapclient has a simple working example, but in csharp I found this link to be a solution to my problem. link Michaelis.MockService is the Webservice library extracted you may see an example on how to do this in: link Mono project