Home »
Imported messages »
comp.lang.php »
problem with web service
Re: problem with web service [message #172716 is a reply to message #172715] |
Sun, 27 February 2011 11:21 |
Jonathan Stein
Messages: 43 Registered: September 2010
Karma:
|
Member |
|
|
Den 27-02-2011 11:43, parviz a skrev:
> $client = new SoapClient( 'http://192.168.0.94:8080/DecisionService/ws/
> test111ruleapp/4.0/test111/1.0?WSDL');
When debugging SOAP, you can set 'trace' to 1:
$client = new SoapClient(
' http://192.168.0.94:8080/DecisionService/ws/test111ruleapp/4.0/test111/1.0? WSDL',
array('trace' => 1));
Then you can echo the result of these functions after the method call:
SoapClient->__getLastRequest(), SoapClient->__getLastRequestHeaders(),
SoapClient->__getLastResponse() and SoapClient->__getLastResponseHeaders()
This will probably reveal a more or less usable error message from the
server.
> $result=(array)$client->__SoapCall('executeDecisionService', $params);
I think you should be able to call the method as:
$client->executeDecisionService(1, $card);
Maybe $card should be stdObject instead of array:
$card = new stdClass;
$card->creditCeilings = 45;
Regards
Jonathan
|
|
|
Goto Forum:
Current Time: Tue Nov 26 15:25:09 GMT 2024
Total time taken to generate the page: 0.04033 seconds