soapserver

Zend Framework 2 SOAP AutoDiscover and complex types

╄→尐↘猪︶ㄣ 提交于 2019-12-12 08:44:50
问题 I'm preparing the SOAP server and generating my WSDL using the follow code: //(... Controller action code ...) if (key_exists('wsdl', $params)) { $autodiscover = new AutoDiscover(); $autodiscover->setClass('WebServiceClass') ->setUri('http://server/webserver/uri'); $autodiscover->handle(); } else { $server = new Server(null); $server->setUri($ws_url); $server->setObject($this->getServiceLocator()->get('MyController\Service\WebServiceClass')); $server->handle(); } //(... Controller action code

String values returned by PHP SoapServer not received by .Net client

旧城冷巷雨未停 提交于 2019-12-11 01:19:29
问题 I am using the WSDL document automatically generated by Visual Studio 2010 (ie. from the "HelloWorld" application that is created when you create a new web service application in Visual Studio.) But I am needing to develop the web service in PHP, so I am using this WSDL document with PHP SoapServer. I will copy the WSDL document here: <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime

SoapServer maps functions incorectly when the wsdl messages have the same part name

 ̄綄美尐妖づ 提交于 2019-12-06 08:29:34
I'm not sure if this is php bug (bad implementation) or my bug (bad understanding of the SOAP protocol / SoapServer as this is the first time I'm using SoapServer) I've noticed that if there are two or more operations with the same wsdl:part (even if the wsdl:message , operation and soapAction are different), The SoapServer will allways call the first function. In this example, I've two functions multiply2 and multiply4 both having num (int) as input parameter. earlier today, If I change the part name (service1.wsdl) the functions are mapped correctly. Although, I don't mind using different

Extending php SoapClient for siteminder authentication

▼魔方 西西 提交于 2019-12-06 03:39:53
问题 Short Version I want to extend SoapClient so it does this internally when accessing the WSDL: curl -L -E /location/of/cert.pem -c /tmp/location/of/cookie.jar https://web-service-provider/servicename?wsdl Long Version I've got a SOAP request similar to this: $serviceUrl = 'https://service-url'; $wsdl = $serviceUrl . '?wsdl'; $proxyServiceUrl = 'http://localhost/myproxy.php?url=$serviceUrl'; $proxyWsdl = 'http://localhost/myproxy.php?url=$wsdl'; $options = array( 'cache_wsdl' => WSDL_CACHE_NONE

Extending php SoapClient for siteminder authentication

眉间皱痕 提交于 2019-12-04 08:17:43
Short Version I want to extend SoapClient so it does this internally when accessing the WSDL: curl -L -E /location/of/cert.pem -c /tmp/location/of/cookie.jar https://web-service-provider/servicename?wsdl Long Version I've got a SOAP request similar to this: $serviceUrl = 'https://service-url'; $wsdl = $serviceUrl . '?wsdl'; $proxyServiceUrl = 'http://localhost/myproxy.php?url=$serviceUrl'; $proxyWsdl = 'http://localhost/myproxy.php?url=$wsdl'; $options = array( 'cache_wsdl' => WSDL_CACHE_NONE, 'encoding' => 'utf-8', 'soap_version' => SOAP_1_1, 'exceptions' => true, 'trace' => true, 'location'

Zend Framework 2 SOAP AutoDiscover and complex types

与世无争的帅哥 提交于 2019-12-04 03:12:20
I'm preparing the SOAP server and generating my WSDL using the follow code: //(... Controller action code ...) if (key_exists('wsdl', $params)) { $autodiscover = new AutoDiscover(); $autodiscover->setClass('WebServiceClass') ->setUri('http://server/webserver/uri'); $autodiscover->handle(); } else { $server = new Server(null); $server->setUri($ws_url); $server->setObject($this->getServiceLocator()->get('MyController\Service\WebServiceClass')); $server->handle(); } //(... Controller action code ...) But in one of my WebService method I have a parameter of type Array in which each element is of

How return custom XML response in soapServer response?

╄→гoц情女王★ 提交于 2019-12-01 04:02:30
I am setting up a SOAP webservice which takes XML input and has to return custom XML output. All this is defined in a WSDL. I apply soapServer for this (until someone says it has bugs preventing me from achieving my goal :-)). I haven't been able yet to return custom XML: I get some result which seems to be based on teh WSDL, with a standard root element name equal to the input XML one plus "Response". Actually that surprises me too so as a side question I wonder why that is and whether it can be influenced. Of course it is a nice thing that the WSDL definitions are used somehow when responses

PHP SoapClient: SoapFault exception Could not connect to host

折月煮酒 提交于 2019-11-30 22:14:13
问题 using this code I make soap requests $client = new SoapClient('http://example.com/soap/wsdl'); try { $result = $client->myMethod(); } catch (Exception $e) { echo $e->getMessage(); } Sometimes (once out of ten), an exception is raised: SoapFault exception: [HTTP] Could not connect to host My attempts 1) I looked for solutions, and I read that this problem can be caused by wsdl cache, I disabled it in php.ini : soap.wsdl_cache_enabled = 0 soap.wsdl_cache_ttl = 0 raises fewer exceptions 2) I