SOAP 2.5 getAssociationIDs

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

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
bullhorn_noob
User
Posts: 6
Joined: Tue Jan 07, 2014 12:00 pm

SOAP 2.5 getAssociationIDs

Post by bullhorn_noob » Fri Feb 28, 2014 5:03 pm

Greetings,

I have two scripts, one SOAP 1 and the other SOAP 2.5. Both work fine, with one exception. I am missing ids results w/ the 2.5 .
You can see below what I am passing and what is coming back. What worries me is the response from the 2.5 script is that, according to your documentation, I should be getting back the corporationID and UserID, which you can see I do not.

So, any ideas on why I would be missing an id in the 2.5?

Thank you

SOAP 1
$findRequest = array(
'session' => $API_currentSession,
'entityName' => 'JobOrder',
'id' => new SoapVar(11222, XSD_INTEGER,'int','http://www.w3.org/2001/XMLSchema'),
'associationName' => 'categories'
);
$response = $BHclient->getAssociationIDs($findRequest);
print_r($response->return);

stdClass Object
(
[session] => stdClass Object
(
[client] => rO0ABXNyACpjb20uYnVsbGhvcm4uZGF0YXNlcnZpY2UuYXBpLkFwaURhdGFDbGllbnQAAAAAAAAA
AQIACEoACmxhc3RBY2Nlc3NJAAmcuSW50ZWdlchLioKT3gYc4AgABSQAFdmFs
dWV4cgAQamF2YS5sYW5nLk51bWJlcoaslR0LlOCLAgAAeHAAABRydAAMQlVMTEhPUk40ODE4c3EA
fgAEAFEQz3NxAH4ABAAAHQxzcQB+AAQAAAAmc3EAfgAEAABbhw==
[corporationId] => 5234
[userId] => 38
)

[ids] => Array
(
[0] => 873811
[1] => 923848
)

)

SOAP 2.5
$findRequest = array(
'session' => $API_currentSession->session,
'entityName' => 'JobOrder',
'id' => new SoapVar(11222, XSD_INTEGER,'int','http://www.w3.org/2001/XMLSchema'),
'associationName' => 'categories'
);

$response = $BHclient->getAssociationIDs($findRequest);


print_r($response);

stdClass Object
(
[return] => stdClass Object
(
[session] => rO0ABXVyAAJbQqzzF/gGCFTgAgAAeHAAAAJYdFM8CgmOiXZnFeEAjdblvOJHe7+hy5p/02hR/WLP
pLqo1Fls1aUyjbWfcFkR4ozMhdqU9O44PmHVqfYLhAdMyVtB4UvhCs2GqxQH4LkxQSfOYY0BUFEU
nRWc2OUWl9Ui2gei8ccVtSOix8cD4uhnC2nH6rATN8zpYfnp8cqrFnf7VcxUjk9exSx7U
UW7lKoaR5qGL83+QWpC7EzMi/V6I2JK4Gd0Tp+vOc7YpFz/1tybUJTmSCXIefy2tcYjmrJIrVbEQ
wZSFZU3F45dvYzfDY5gUZm49GLorq2kdBUnklpX68rDqI6j8pjVV/kQTel7K8KM7aOCVbc0XnSCc

[ids] => 873811
)

jhenriquez
User
Posts: 2
Joined: Wed Dec 31, 1969 8:00 pm

Re: SOAP 2.5 getAssociationIDs

Post by jhenriquez » Wed Mar 05, 2014 12:41 am

Hi bullhorn_noob,

The difference that you see when you initiate a session using SOAP 1.1 and SOAP 2.5 is totally fine, this is just a difference on how these versions generate the sessions.

As far as the extra ID that you are getting in SOAP 1.1 I believe that this is just an invalid category that is associated with that job record. An invalid category is just a category that was deleted on your Bullhorn and this category doesn't exist on your category entity. I was able to login as one of your users in Bullhorn and verified that job record 11222 only has the category 873811 associated, so SOAP 2.5 is showing the proper information.

I am going to follow up with you on this post, as I am going to escalate this issue to our engineers to see if this is a bug on SOAP 1.1

Have a great day!
Jeorge Henriquez
Technical Support Analyst
BULLHORN
US Support 617-478-9126

bullhorn_noob
User
Posts: 6
Joined: Tue Jan 07, 2014 12:00 pm

Re: SOAP 2.5 getAssociationIDs

Post by bullhorn_noob » Thu Mar 06, 2014 12:21 pm

Thank you for getting back to me, but your post raises a serious problem.

At bullhornstaffing.com I go into the Job Detail of 112222 and I see a Discipline of PT (873811) and a Specialty of PT (923848)
How are you only seeing one associated number? And why with SOAP 1_1 do I see both associated numbers and with SOAP 2_5 I only see 1?

You are saying that category doesn't exist in the jobOrder entity. I'm looking right at it.

jhenriquez
User
Posts: 2
Joined: Wed Dec 31, 1969 8:00 pm

Re: SOAP 2.5 getAssociationIDs

Post by jhenriquez » Thu Mar 06, 2014 11:36 pm

Hi bullhorn_noob,

Thank you for clarifying the information that you were getting in SOAP 1.1, this really helped to solve this issue, basically what is happening in SOAP 1.1 is that this version is bringing back all the categories/skills/specialties associated with the job record, in the other hand SOAP 2.5 is just bringing back the categories, in order to bring back the specialties on SOAP 2.5 you need to replace the association name categories with specialties since SOAP 2.5 handles this differently, your code should look like this

SOAP 2.5
$findRequest = array(
'session' => $API_currentSession->session,
'entityName' => 'JobOrder',
'id' => new SoapVar(11222, XSD_INTEGER,'int','http://www.w3.org/2001/XMLSchema'),
'associationName' => 'specialties'
);

$response = $BHclient->getAssociationIDs($findRequest);


print_r($response);

stdClass Object
(
[return] => stdClass Object
(
[session] => rO0ABXVyAAJbQqzzF/gGCFTgAgAAeHAAAAJYdFM8CgmOiXZnFeEAjdblvOJHe7+hy5p/02hR/WLP
pLqo1Fls1aUyjbWfcFkR4ozMhdqU9O44PmHVqfYLhAdMyVtB4UvhCs2GqxQH4LkxQSfOYY0BUFEU
nRWc2OUWl9Ui2gei8ccVtSOix8cD4uhnC2nH6rATN8zpYfnp8cqrFnf7VcxUjk9exSx7U
UW7lKoaR5qGL83+QWpC7EzMi/V6I2JK4Gd0Tp+vOc7YpFz/1tybUJTmSCXIefy2tcYjmrJIrVbEQ
wZSFZU3F45dvYzfDY5gUZm49GLorq2kdBUnklpX68rDqI6j8pjVV/kQTel7K8KM7aOCVbc0XnSCc

[ids] => 873811
)

I understand that this is a transition that includes coding changes, but SOAP 2.5 was designed to be a more powerful version than 1.1

I apologize for all the inconvenience.
Jeorge Henriquez
Technical Support Analyst
BULLHORN
US Support 617-478-9126

htphuong82
User
Posts: 20
Joined: Wed May 21, 2014 4:23 am

Re: SOAP 2.5 getAssociationIDs

Post by htphuong82 » Thu Jun 26, 2014 6:40 am

Guys,

How to get new jar file for soap api 2.5?
I have this bullhorn-client-1.0-jar-with-dependencies.jar but it seems too old to get edit history.

Thanks,
Phuong
Phuong
Developer

s.emmons
User
Posts: 333
Joined: Wed Dec 31, 1969 8:00 pm

Re: SOAP 2.5 getAssociationIDs

Post by s.emmons » Thu Jun 26, 2014 10:51 am

Hi Phuong,

Please see the other thread. I provided the WSDL link there.
Sam Emmons
Enterprise Team Lead
BULLHORN
US Support 617-478-9126

htphuong82
User
Posts: 20
Joined: Wed May 21, 2014 4:23 am

Re: SOAP 2.5 getAssociationIDs

Post by htphuong82 » Thu Jun 26, 2014 9:48 pm

Thanks Sam, I found that.
Phuong
Developer

Post Reply