Custom HTTP Import XML Response Hanlding
I am having trouble handling Success and Error within XML response from a HTTP connection to an API. I get a 200 http status code for success and errors.
Success response looks like this:
<response xmlns=\"http://dcd/datacontracts/post_purchase_order\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">
<purchase_order_errors xmlns:a=\"http://schemas.datacontract.org/2004/07/DCDAPIService\"/>
</response>
Error response looks like this:
<response xmlns=\"http://dcd/datacontracts/post_purchase_order\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\">
<purchase_order_errors xmlns:a=\"http://schemas.datacontract.org/2004/07/DCDAPIService\">
<a:purchase_order_error>
<a:error_description>The 'quantity' element is invalid.</a:error_description>
<a:purchase_order_number>8142</a:purchase_order_number>
</a:purchase_order_error>
</purchase_order_errors>
</response>
The challenge is the I do not get a success value and I do not get any sort of standard error value. I can get the XPATH to work using local-name() syntax but I can;t figure out a way to set a wildcard in the Error Value field.
Example B in this article is helpful but will only work if I always get back a standard error code or message, which unfortunately is not the case.
-
Hi Martin Jahn -
Thanks for posting to the Community! One more avenue you may want to try is scheduling an office hours session to go through this with one of our solution consultants.0 -
Hi Kate Larson - I am not having much luck with the resources I am reaching through the office hours. The first guy never got back to me after we had our initial session to review the issue and following up with him. It has now been a couple of weeks. I have another office hours meeting in a couple of minutes and hopefully it will go better (a different resource). How else do I get support?
I do not want to go back to the client an tell them we need to move to a different integration platform.
Thanks,
Martin
0 -
Hi Martin Jahn -
I'm sorry to hear about the lack of follow up, and I hope today's session helps you solve your challenge. We also have a Customer Support team available to assist with technical issues. Please see Submit a support ticket for instructions.
Thanks,
Kate
0 -
Kate Larson I have opened several tickets but since I am a partner, so I am immediately directed to Office Hours and the ticket is simply closed. My Office Hours session yesterday simply gave me a suggestion for a solution using the PostSubmit Hook unfortunately the Celigo resource I was working with have no experience with PostSubmit Hooks so was not sure of the data structure or usage, and given that the documentation is somewhat limited I have still not arrived at a solution.
0 -
Hi Martin Jahn,
Thank you so much for letting us know about this experience. I've reached out to your CSM, so hopefully he'll be able to get you to the right person quickly.
0
Please sign in to leave a comment.
Comments
5 comments