1

I have made a successful connection to a wsdl file and I'm getting back all of the available functions.

    $soapURL ='http:/wsdlfile';

    $soapClient = new SoapClient($soapURL);

    $response = $soapClient->__getFunctions();

    print_r($response);

But when I try to use an individual function:

   $response2 = $soapClient->getOrders();

I don't get anything back.

UPDATE: This is the response I am receiving:

Array ( [0] => getOrdersResponse getOrders(getOrders $parameters) [1] =>       getConractualOrderDetailsResponse getConractualOrderDetails(getConractualOrderDetails $parameters) [2] => getSubscriptionsByAccNumberResponse getSubscriptionsByAccNumber(getSubscriptionsByAccNumber $parameters) [3] => getContractsResponse getContracts(getContracts $parameters) [4] => isContentPresentResponse isContentPresent(isContentPresent $parameters) [5] => getOrderResponse getOrder(getOrder $parameters) 

But when I try to use one of those functions I get this error:

Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host in /var/www/html/bill/onebill.php:21 Stack trace: #0 [internal function]: SoapClient->__doRequest('__call('getOrders', Array) #2 /var/www/html/bill/onebill.php(21): SoapClient->getOrders() #3 {main} thrown in /var/www/html/bill/onebill.php on line 21

I don't understand I got a response initially, here is the documentation of the API that I'm trying to connect to:

http://onebillapi.helpdocsonline.com/how-to-access-the-onebill-apis

Thank you

dscottvtg
  • 19
  • 2
  • 6
  • Please, make sure that php is set to display errors. Here is [How do I get PHP Errors to display?](http://stackoverflow.com/q/1053424/4577762) – FirstOne Mar 04 '16 at 18:19
  • Once you've set errors to display like @FirstOne has said, please post the errors you are receiving and any information about the response from the SOAP service. – mmcclannahan Mar 04 '16 at 19:12
  • I have updated the post, thank you for any help you can provide. – dscottvtg Mar 04 '16 at 19:40
  • I've been stuck on this for days and I my job is depending on me to get this done. I would be thankful beyond words if you could help. Thanks. – dscottvtg Mar 04 '16 at 19:42

0 Answers0