PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

Performing a HTTP Form Post To Third Party Vendor Using PeopleSoft IB Services?

edited Dec 7, 2021 10:37PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 10 commentsAnswered

I have a requirement to invoke a 3 rd party web services API via Peoplesoft IB.

We are on Peopletools 8.58

I am using IB REST operation and the method is POST. The API request consists of file uploads(PDF/PNG/JPEG) and the type of request in the body is form-data. Basically, the API consumes multipart/form-data and produces application/json. But Peoplesoft IB does not support multipart/form-data as content type.

So, I am trying to set the content type in the PeopleCode as follows

&msg.IBInfo.IBConnectorInfo.AddConnectorProperties("Content-Type", "multipart/form-data boundary=TheBoundary", %Header);

But IB response is coming back as error HTTP code- 400 Bad Request

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center