Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sushantkapoor19
Contributor III
Contributor III

Pushing the xml file to Trest client

Hello All,

 

I have a scenario where i am pushing XML output something like this:

<integration-history-record>
<contact-alert-type/>
<document-id></document-id>
<document-type></document-type>
<document-status></document-status>
<status></status>
<responses>
<response>
<response-code>400</response-code>
<response-message>availability control:</response-message>
</response>
</responses>
<integration>
<code>inbound.api.po</code>
</integration>
<integration-run>
<id>1325</id>
</integration-run>
</integration-history-record>
 
we are sending this information xml to coupa integration-history-record API, but i am getting Exception in component tRESTClient_3 (Coupa_API_PO_to_oneDWH_SK_Integration_run)
javax.ws.rs.WebApplicationException: HTTP 403 Forbidden error.
 
can yoiu tell me how to design this job or resolve this issue?
Labels (2)
1 Reply
Shicong_Hong
Employee
Employee

Hello 

Sometimes when trying to consume a web service from a java client, you get a 403 forbidden HTTP response code, even though the service is accessible normally from web browsers.

The HTTP 403 forbidden error doesn’t necessarily occur due to missing authentication attributes, some web services would only authorize web browsers or some specific clients to access them, while they deny any requests coming from third-party clients. For more information about Http 403 forbidden error, read this page. So, make sure you have access to API from third-party clients, such as Postman, Talend Studio.

About the job design, can you share a screenshot to show us which components are you using in the job? Which format of XML file you pass to tRestClient? String or Document?

Regards

Shicong