SOAP-ERROR: Parsing WSDL

Forum for users and developers of Bullhorn's Webservices API suite

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
conradd
User
Posts: 1
Joined: Mon Nov 26, 2012 6:49 pm

SOAP-ERROR: Parsing WSDL

Post by conradd » Mon Nov 26, 2012 7:12 pm

Hello,

I downloaded your example from http://developer.bullhorn.com/Getting_S ... ng_started. This sample code uses SOAP client. When I try to check the code in my local xampp server I get the following error:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://api.bullhornstaffing.com/webservices-1.1/?wsdl' : failed to load external entity "https://api.bullhornstaffing.com/webservices-1.1/?wsdl" in...

I have already setup the API of bullhorn developer and put correct username, password and API key. On both my localhost SOAP client and SOAP server are enabled.

I got same errors with your 3 access API:
https://api.bullhornstaffing.com/webservices-2.5/?wsdl
https://api.bullhornstaffing.com/webservices-2.0/?wsdl
https://api.bullhornstaffing.com/webservices-1.1/?wsdl

I don't have connection problem with SOAP and WSDL, because I can connect to another WSDL Api service like:
http://clients.mindbodyonline.com/api/0 ... .asmx?wsdl

Can you help me please? I need to find a solution quickly, the account name of my client is: RL Canning

Thanks,
Conrad

c.choy
User
Posts: 49
Joined: Wed Dec 31, 1969 8:00 pm

Re: SOAP-ERROR: Parsing WSDL

Post by c.choy » Tue Dec 04, 2012 11:17 am

Hi,

I'm not familiar with xampp, but either way, the best idea that I can provide you is to try added extension=php_openssl.dll in the php.ini file.

Generally I create a soapclient and pass the wsdl that way:

$params = array('trace' => 1,
'soap_version' => SOAP_2_0);
$BHclient = new SoapClient("https://api.bullhornstaffing.com/webser ... l",$params);

// Start a new session
$session_request = new stdClass();
$session_request->username = $username;
$session_request->password = $password;
$session_request->apiKey = $apiKey;
$API_session = $BHclient->startSession($session_request);
$API_currentSession = $API_session->return->session;

Post Reply