id to load is required for loading

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
groganzola
User
Posts: 2
Joined: Mon Apr 13, 2020 11:35 am

id to load is required for loading

Post by groganzola »

Hello -

I am attempting to perform a find operation (after having initiated a session) using the 2.6 version of Bullhorn's SOAP web services (https://api-west9.bullhornstaffing.com/ ... -2.6/?wsdl).

However, when I attempt this request for a valid candidate record if our sandbox environment:

Code: Select all

<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:apis="http://apiservice.bullhorn.com/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
    <apis:find>
      <session>SESSIONKEY</session>
      <entityName>Candidate</entityName>
      <apis:id xsi:type="xs:int">334980</apis:id>
    </apis:find>
  </soapenv:Body>
</soapenv:Envelope>
I receive the following error:

Code: Select all

HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Wed, 03 Jun 2020 00:03:14 GMT
Connection: close

<faultcode>S:Server</faultcode>
<faultstring>id to load is required for loading</faultstring>
The api operation seems almost verbatim to that depicted within the documentation at:

http://soapdoc.bullhorn.com/version_2-0 ... %7C_____14

Has anyone else experienced this? Google tells me someone else may have experienced this issue:

http://supportforums.bullhorn.com/viewt ... 32&t=14101

But, I'm denied access to this URL and I can't find other references when I search.

Thank you for your assistance in helping me troubleshoot what is at issue.

John

lciastko
User
Posts: 12
Joined: Wed Feb 26, 2020 12:17 pm

Re: id to load is required for loading

Post by lciastko »

Hi there John,

This is Lindsay from Bullhorn support.

I ran some tests using SOAP and I was able to get the call to run as expected by changing the ID Field ever so slightly.

Code: Select all

<soapenv:Envelope xmlns:apis="http://apiservice.bullhorn.com/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
    <apis:find>
      <session>SESSIONKEY</session>
      <entityName>Candidate</entityName>
         <id xsi:type="xs:int" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"]CANDIDATEID</id>
    </apis:find>
  </soapenv:Body>
</soapenv:Envelope>
Could you try this and see if it works for you?

Thank you,
Lindsay

Post Reply