soap-client

Could not find endpoint element with name 'xxxxx' and contract 'yyy' in the ServiceModel client configuration section

与世无争的帅哥 提交于 2019-12-22 09:06:08
问题 I generated a proxy via this command - svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config https://service100.emedny.org:9047/MHService?wsdl and then copied the elements from the resulting app.config into the app.config file of an existing project. When I try to access the client in that config file via- MHSClient serviceProxy = new MHSClient("MHSPort"); it should reference the second client below: <client> <endpoint address="https://webservices.hmsa.com/EDI27X/cstc

Why am I receiving java.lang.NullPointerException rather than soap response?

不问归期 提交于 2019-12-22 07:00:02
问题 I am sending the following request to the server, when I copy the request and use the SOAPUI it shows the correct response, but when I use the following code to generate and send it, returns java.lang.NullPointerException on line 50, which is sm.writeTo(out); code: SOAPConnectionFactory soapConnectionFactory = SOAPConnectionFactory.newInstance(); SOAPConnection connection = soapConnectionFactory.createConnection(); SOAPFactory soapFactory = SOAPFactory.newInstance(); MessageFactory factory =

SOAP Service Reference in Windows Phone 8.1 Universal app

霸气de小男生 提交于 2019-12-22 04:42:47
问题 I try to add a reference to a SOAP WebService. No problem adding it to the Windows 8.1 part of the project. But no chance to do the same for the WP 8.1. Somehow I could only add a new "Push Notification" as a reference. Adding the generated reference.cs to the WP project directly leads to many unresolved references in System.ServiceModel (i.e. System.ServiceModel.Channels not found). Any idea? Maybe its not in the current beta? VS 2013 Update 2 RC. 回答1: While not a proper solution, a

Custom header using PHP soap functions

試著忘記壹切 提交于 2019-12-21 10:17:34
问题 I am having a problem getting a custom soap header to work with PHP5. Can anybody guide me please. What I require is something like this <SOAP-ENV:Header> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </SOAP-ENV:Header> What I get is : <SOAP-ENV:Header> <ns2:null> <USER>myusername</USER> <PASSWORD>mypassword</PASSWORD> </ns2:null> </SOAP-ENV:Header> I would like to remove the namespace tags. The code I use to get this is: class Authstuff { public $USER; public $PASSWORD; public

SOAP in Node.js

安稳与你 提交于 2019-12-21 03:59:11
问题 Sure, you're gonna tell me that SOAP is deprecated and all, well I'm forced to use it. Now, I've tried with the douche module (https://github.com/marcgreenstock/douche) but it fails when I do this (the WSDL url is fine, in fact I'm trying the provided example at test/index.js ) Client.wsdl.parse(function(wsdl) { console.log(wsdl); }); The error is: /usr/local/lib/node_modules/douche/lib/douche/wsdl.js:74 attrs.forEach(function(url,index) { ^ TypeError: Object #<Object> has no method 'forEach'

php SoapClient fails when passed a wsdl with relative path schemas

泪湿孤枕 提交于 2019-12-20 05:28:37
问题 I have the following issue: The instantiation of my SoapClient object fails when I pass it a wsdl that imports a schema using relative paths. (I believe this is the case anyway, based on my research) My code is as follows: $wsdl = 'http://myproxy/webservice?wsdl'; $options = array( /* options */ ); $client = new SoapClient($wsdl, $options); The schema import part of the wsdl: <schema xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://myprovider/namespace1/namespace1"

Workaround for PHP SOAP request failure when wsdl defines service port binding as https and port 80?

前提是你 提交于 2019-12-20 04:26:58
问题 I am consuming a SOAP web service using php5's soap extension. The service' wsdl was generated using Axis java2wsdl, and whatever options are used during generation result in the port binding url being listed as https ://xxx.xxx.xxx.xxx**:80** If I download the wsdl to my server, remove the port 80 specification from the port binding location value, and reference the local file in my soapclient call it works fine. However, if I try to reference it remotely (or download it and reference it

Compress a HttpWebRequest using gzip

喜夏-厌秋 提交于 2019-12-20 04:16:07
问题 I am developing a .NET 4.0 Console Application to serve as a SOAP Web Service client which will send data (POST) through to a third-party. I have no control over the web service on the server-side. The third-party did provide WSDL's to use, and I was able to import them and use them with reasonable success. However, there is a requirement to compress the request message using gzip , and I could not for the life of me figure out how to do that using the proxy services. This topic here on SO,

How I change soap xml web service in c#?

江枫思渺然 提交于 2019-12-19 12:05:58
问题 I used webservice preferences cs code. I have soap xml web service request. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <List xmlns="http://ws.ddd.com/" wsNo="451" member="XYZ"> <dateStart xmlns="">20180708</dateStart> <dateFinish xmlns="">20180708</dateFinish> <typeX xmlns="">0</type> </List> </s:Body> </s:Envelope> But I want to change this, How I do it c#? Thanks

How I change soap xml web service in c#?

烂漫一生 提交于 2019-12-19 12:05:14
问题 I used webservice preferences cs code. I have soap xml web service request. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <List xmlns="http://ws.ddd.com/" wsNo="451" member="XYZ"> <dateStart xmlns="">20180708</dateStart> <dateFinish xmlns="">20180708</dateFinish> <typeX xmlns="">0</type> </List> </s:Body> </s:Envelope> But I want to change this, How I do it c#? Thanks