Posts

Showing posts with the label soap

PHP SOAP WSDL How to call soap action with the same method name

PHP SOAP WSDL How to call soap action with the same method name I have WSDL which returns me function list which is included below [0] => ExternalCacheAccessRsp service(ExternalCacheAccessReq $parameters) [1] => PingRsp service(PingReq $parameters) [2] => SystemInfoRsp service(SystemInfoReq $parameters) [3] => TimeRsp service(TimeReq $parameters) How I can call PingReq function by __soapCall() When I am trying to call __soapCall('service') it returns me first method "ExternalCacheAccessReq" If you want to use __soapCall, the first parameter of the function is the service function, the second is service parameters. You can call it like $client->__soapCall('PingReq', $parameters) . – Cristian Bitoi Oct 14 '13 at 14:28 $client->__soapCall('PingReq', $parameters) ...

How to call overloaded wsdl webservice method from php soap client

How to call overloaded wsdl webservice method from php soap client Webservice : http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx Overloaded method is GetSubscriberInfoV2 MessageName="GetSubscriberInfoVCLogV2" My php code is, <?php $mobileno="01523833622"; $url="http://webservices.dishtv.in/Services/Mobile/Trade/TradeSubscriberInfo.asmx?wsdl"; $client = new SoapClient($url); $soapHeader = array('UserID' => '47','Password' => 'zZa@#286#@'); $header = new SOAPHeader('http://tempuri.org/', 'AuthenticationHeader', $soapHeader); $client ->__setSoapHeaders($header); try { $res = $client->GetSubscriberInfoVCLogV2(array('vcNo' => $mobileno, 'mobileNo' => '', 'BizOps' => '1', 'UserID' => '555300', 'UserType' => 'DL' )); } catch(SoapFault $e) { echo "Invalid No...

d2010 soap error element does not contain a single text node

d2010 soap error element does not contain a single text node I search to connect to a Web service but when I call the method I obtain this error "Element "OutputObj" does not contain a single text node'. This is the Unit I create importing my WSDL file: // ************************************************************************ // // The types declared in this file were generated from data read from the // WSDL File described below: // WSDL : D:SVNXML IE815WSDLDispatcherBean.wsdl // >Import : D:SVNXML IE815WSDLDispatcherBean.wsdl>0 // >Import : D:SVNXML IE815WSDLDispatcherBean.wsdl>1 // Encoding : UTF-8 // Version : 1.0 // (16/07/2014 9.33.06 - - $Rev: 25127 $) // ************************************************************************ // unit UNDispatcherBean; interface uses InvokeRegistry, SO...

How to get response based on the request body matching using wiremock and JSON

How to get response based on the request body matching using wiremock and JSON How to verify if my Soap request consists of an particular element in header and body using JSON and standalone WireMock. I should get response1 if my request contain <a:Id>1876</a:Id> in the header else i should get response2 <a:Id>1876</a:Id> similarly i need to check in body also. Below is my request XML <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:a="http://abc.example.com/a" xmlns:b="http://abc.example.com/b" xmlns:c="http://abc.example.com/c" <soapenv:Header> <a:abcHeaders> <a:Id>1876</a:Id> <a:Xid>12</a:Xid> </a:abcHeaders> </soapenv:Header> <soapenv:Body> <b:abcOpern> <b:xyz> <c:pqr>12</c:pqr> </b:xyz> </b:abcOpern> </soap...