soap-client

Cannot import WSDL file in SOAPUI - NT authentication pop up (Error loading WSDL)

岁酱吖の 提交于 2019-12-11 02:34:53
问题 I never faced similar problem before, I tried with SOAP 4.0.1 and also with SOAP 5.1.2. I tried it on my windows but also and on Windows Server 2008 I try to import WSDL: NT Authentication dialog is presented: Specify NT Authentication Credentials to populate Username,Password,Domain I am able to open the WSDL definition in Firefox: http://192.168.0.242/SO/Services/ScheduleService.svc?wsdl after entering username and password but when trying to import WSDL file or when trying to import wsdl

PHP NTLM authentication + soap client

爷,独闯天下 提交于 2019-12-11 02:32:30
问题 I came across the project where I need to implement web services protected by NTLM authentication. I gave it try via PHP SoapClient : $client = new \SoapClient("http://hostname.com/webservice", array( 'cache_wsdl' => WSDL_CACHE_NONE, 'login' => "username", 'password' => "password" )); This throws this error: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://hostname.com/webservice' : failed to load external entity "http://hostname.com/webservice" I gave it try via CURL:

SOAP web service with ksoap2 lib

时间秒杀一切 提交于 2019-12-11 02:25:56
问题 I'm trying to use .net SOAP web service with ksoap2 lib. Example from http://www.vimeo.com/9633556 shows how to do it correct. Below the code from that example. everything shoud work ok ! but i get force Close error ! here my code : import org.ksoap2.SoapEnvelope; import org.ksoap2.serialization.SoapObject; import org.ksoap2.serialization.SoapPrimitive; import org.ksoap2.serialization.SoapSerializationEnvelope; import org.ksoap2.transport.HttpTransportSE; import android.app.Activity; import

Consuming to a .NET SOAP service from PHP with authentication

删除回忆录丶 提交于 2019-12-11 01:19:36
问题 I've been hunting for several days for a solution to this but had no luck. I got my starter code from http://www.codingfriends.com/index.php/2010/04/16/soap-client-calling-net-web-service/ . Here's the code as adjusted (with a fake key): <?php // create a connection to the local host mono .NET pull back the wsdl to get the functions names // and also the parameters and return values $client = new SoapClient("https://realServer/events.asmx?WSDL", array( "trace" => 1, // enable trace to view

How to disable auto-escaping of HTML entities in php \SoapClient?

风流意气都作罢 提交于 2019-12-10 23:06:36
问题 I have to talk to a remote remote SoapServer that has a string field MessageXML where I have to put in unescaped XML that is encapsualated in CDATA. I am trying to use php's default \SoapClient . My $payload looks like this: <![CDATA[<DepartureDate>01/12/2015-01/12/2016</DepartureDate>]]> Yet when requesting the Soap service via: $client->ThatMethod(['MessageXML' => $payload]; I can see that the actual response gets escaped in the process via: $lastRequest = $client->__getLastRequest();

Easiest way to write a Java SOAP client that consumes a non-wsdl PHP SOAP server?

Deadly 提交于 2019-12-10 22:11:36
问题 I've been successfully writing PHP non-wsdl SOAP servers and clients. However, I don't know how to consume one of my non-wsd SOAP servers by a Java SOAP client. Could someone please provide me with a simple way to do this, preferably without external libraries. Assuming http://example.com/SOAP/m1/server.php is the URL where the PHP SOAP server located. 来源: https://stackoverflow.com/questions/5526741/easiest-way-to-write-a-java-soap-client-that-consumes-a-non-wsdl-php-soap-server

Php Soap Client equivalent in NodeJS

孤人 提交于 2019-12-10 18:27:56
问题 I am trying to replicate PHP Soap Client in NodeJS. In PHP: $result = $client->__SoapCall('PAYMENT_METHOD', array($params)); This is working fine When I use node-soap and do the following in NodeJS client.PAYMENT_METHOD([params], function(err, result) { console.log(err); },{},header); I get this error: <faultstring>Procedure 'PAYMENT_METHOD' not present</faultstring> 来源: https://stackoverflow.com/questions/39943122/php-soap-client-equivalent-in-nodejs

Adding attributes to the actual function tag in PHP soapCall

人走茶凉 提交于 2019-12-10 17:03:44
问题 I need to add attributes to the tag representing the function/method in a call to a soap interface (specifically, a zimbra interface). I understand how attributes are added to parameter tags, but not to the actual method tag. For example, to add them to parameters, one might do something like: $var = new SoapVar('<account by="name">' . $account . '</account>', XSD_ANYXML); $params = array(new SoapParam($var, 'account')); try { $result = $this->SoapClient->__soapCall( "GetAccountInfoRequest",

PHP SoapClient: Action mismatch

别说谁变了你拦得住时间么 提交于 2019-12-10 16:57:52
问题 I am trying to use the PHP SoapClient extension to communicate with an external SOAP server. This is my code: $this->_client = new SoapClient(SOAP_TAGGING_URL, array( 'trace' => 1, 'soap_version' => SOAP_1_2, 'cache_wsdl' => WSDL_CACHE_NONE, 'exceptions' => true, 'uri' => SOAP_URI, )); try { $actionHdr = array(); $actionHdr[] = new SoapHeader(SOAP_TAGGING_URL, 'Action', 'GetMessagesByTagsByGroup'); $this->_client->__setSoapHeaders($actionHdr); $info = $this->_client->GetMessagesByTagsByGroup(

PHP SoapClient type mapping behaves differently

≯℡__Kan透↙ 提交于 2019-12-10 16:46:00
问题 I've a web-service function which is returning an array of items to a PHP-Client. Depending on the number of items, the PHP return type is differently. If the function returns one item the PHP type is stdClass if the function returns more than one item, the PHP type is array . In either case it should be array . What can I do to achieve this? Details: A var_dump of the result from the web-service function looks like following: if one item is in the result: array(3) { ["filterErg"]=> object