Search found 21 matches

by k.pham
Wed Nov 16, 2011 6:46 pm
Forum: Webservices API
Topic: ParseResume Sample for C#
Replies: 4
Views: 5666

Re: ParseResume Sample for C#

cdmorrow, I already posted the sample code for C# on another topic. http://supportforums.bullhorn.com/viewtopic.php?f=32&t=11921 static void log(String text){ Console.WriteLine(text); } static void Main(string[] args){ String path = "C:\\BobSmithTestResume.doc"; log("Parsing resume: " + path); FileS...
by k.pham
Wed Nov 16, 2011 10:29 am
Forum: Legacy API Suite Support
Topic: DB Query error on UpdateProfileAPI.cfm
Replies: 3
Views: 15525

Re: DB Query error on UpdateProfileAPI.cfm

The only proble with that request was that the Address and Address1 field was too long. The limit for these fields are 40. If you limit these fields to less than 40 characters, the request will go through. documentations on field attributes for the candidate entity can be found on the Resource Cente...
by k.pham
Wed Nov 09, 2011 11:38 am
Forum: Webservices API
Topic: Webservices API 2.0 Status
Replies: 15
Views: 29140

Re: Webservices API 2.0 Status

Could you please post the corpID (ONLY corpID please).
I want to check to see if it's a problem specific to this corp.
Thanks!
by k.pham
Fri Nov 04, 2011 10:53 am
Forum: Webservices API
Topic: Webservices API 2.0 Status
Replies: 15
Views: 29140

Re: Webservices API 2.0 Status

Can you see if you get any error ? The code looks good for 2.0.
The credentials might be invalid. Can you still start a session with the same credentials on 1.1
by k.pham
Wed Nov 02, 2011 10:25 am
Forum: Webservices API
Topic: resumeParse HttpResponseCode=200 error
Replies: 3
Views: 4016

Re: resumeParse HttpResponseCode=200 error

Hi Chris, I use php_soap and php 5.0 to run this code and it works fine for me. I haven't tried nuSoap yet but will see if I could make it work. if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { $filename = $_FILES["file"]["tmp_name"]; } $handle = fop...
by k.pham
Wed Nov 02, 2011 9:36 am
Forum: Webservices API
Topic: ParseResume Issue on API 2.0 (URGENT)
Replies: 32
Views: 43458

Re: ParseResume Issue on API 2.0 (URGENT)

rkarthy, Please find below the sample code that works for us. Thanks, static void log(String text){ Console.WriteLine(text); } static void Main(string[] args){ String path = "C:\\BobSmithTestResume.doc"; log("Parsing resume: " + path); FileStream fs = new FileStream(path, FileMode.Open, FileAccess.R...
by k.pham
Fri Oct 28, 2011 8:58 am
Forum: Webservices API
Topic: ParseResume w PHP
Replies: 3
Views: 4607

Re: ParseResume w PHP

How's this? $base64ChunkedResume = base64_encode($fileBinary); $API_request_parseResume_operation = array( 'session' => $API_currentSession, 'base64ChunkedResume' =>$base64ChunkedResume, ); try { $API_response__parseResume_operation = $BHclient->parseResume($API_request_parseResume_operation); } cat...
by k.pham
Thu Oct 27, 2011 2:00 pm
Forum: Webservices API
Topic: Stuck at the start (PHP and WSDL) - Answered but more Qs
Replies: 3
Views: 4179

Re: Stuck at the start (PHP and WSDL) - Answered but more Qs

Once you get the IDs, use findMultiple to retrieve all the data in 1 call.

A sample find_multiple request looks like this:
$API_request_find_multiple_operation = array(
'session' => $API_currentSession,
'entityName' =>'ClientContact',
'ids' => $id1
'ids' => $id2
'ids' => $id3
);
by k.pham
Thu Oct 27, 2011 1:54 pm
Forum: Webservices API
Topic: Create a search
Replies: 5
Views: 6764

Re: Create a search

Could you post the code snippet where you declare the where clause and how you define $desc?
by k.pham
Thu Oct 27, 2011 1:51 pm
Forum: Webservices API
Topic: ParseResume Issue on API 2.0 (URGENT)
Replies: 32
Views: 43458

Re: ParseResume Issue on API 2.0 (URGENT)

Sorry I thought I posted this. Can you try with a real resume? I get this error as well if I just used a random file that doesn't make sense to the resume parser.
by k.pham
Thu Oct 27, 2011 1:48 pm
Forum: Webservices API
Topic: resumeParse HttpResponseCode=200 error
Replies: 3
Views: 4016

Re: resumeParse HttpResponseCode=200 error

Your code looks fine to me. Not sure what you've done to get $resumeContentBase64 but it should be as simple as below:

$handle = fopen($filename, "r");
$fileBinary = fread($handle, filesize($filename));
fclose($handle);

$base64ChunkedResume = base64_encode($fileBinary);
by k.pham
Wed Oct 26, 2011 3:31 pm
Forum: Webservices API
Topic: ParseResume Issue on API 2.0 (URGENT)
Replies: 32
Views: 43458

Re: ParseResume Issue on API 2.0 (URGENT)

Hi, My bad, I meant to ask yo to convert the Base64String to a byte array, not to decode to. Could you try this? // file data in Binary byte[] fileData = br.ReadBytes((int)numBytes); //convert fileData from Binary to Base64String String Base64String = Convert.ToBase64String(fileData ); // convert th...
by k.pham
Mon Oct 24, 2011 5:04 pm
Forum: Webservices API
Topic: ParseResume Issue on API 2.0 (URGENT)
Replies: 32
Views: 43458

Re: ParseResume Issue on API 2.0 (URGENT)

You should be able to convert the file data to a base64 String, and encode that base64 string to binary. // file data in Binary byte[] fileData = br.ReadBytes((int)numBytes); //convert fileData from Binary to Base64String String Base64String = Convert.ToBase64String(fileData ); // convert the base-6...
by k.pham
Fri Oct 21, 2011 12:42 pm
Forum: Webservices API
Topic: list jobs using api 2.0
Replies: 4
Views: 6180

Re: list jobs using api 2.0

Say i want to return the DTO for job 5107910, i have to convert the id to a SoapVar $id = new SoapVar('5107910', XSD_INTEGER,"int","http://www.w3.org/2001/XMLSchema"); $API_request_find_operation = array( 'session' => $API_currentSession, 'entityName' =>'JobOrder', 'id' => $id ); try { $API_response...
by k.pham
Fri Oct 21, 2011 12:34 pm
Forum: Webservices API
Topic: Resume Upload API
Replies: 13
Views: 16377

Re: Resume Upload API

I believe tht the parseResume operation in API 2.0 only returns the hrXML but it doesn't create a record. It's up to you to turn that hrXml to a Canidate DTO and use the 'save' operation to create a new candidate. I don't have a complete script but this should get you started. // Start a new session...