Hello team,
AOD version:7.1.0.1202
AAEP version: 7.0.2
Tomcat: 7.0.57
I am using rest operation to connect with the web services but getting error on the Content-Type header. I am able to run these services on google's rest client just fine with the URL, Key and content-Type: application/xml
Not sure whether its the web services that are expecting a different header value in content-Type or is it the rest web service operation.
Here are the trace logs:
08/06/2018 18:56:22:316 INFO - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Starting REST web service operation [ExternalEcbOrderStatus]
08/06/2018 18:56:22:378 DEBUG - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Collecting [frSL1l59R4uTihQKYWAEo0l0dL5] from:getConfigForVdn:ecp_api_key
08/06/2018 18:56:22:378 DEBUG - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Adding HTTP header [apikey: frSL1l59R4uTihQKYWAEo0l0dL5]
08/06/2018 18:56:22:378 DEBUG - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Web Service Request ->
https://dev02-epapi-na.us.gspt.net/v1.0/external-ivr-service/orders/ASHSTSTG.xml?storeId=TMSUS
08/06/2018 18:56:22:425 INFO - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Response had content type: application/xml. Retrying call with new type...
08/06/2018 18:56:22:472 DEBUG - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Storing [<FaultType>MissingHeader</FaultType><TimeStamp>2018-06-08T22:56:27Z</TimeStamp><FaultCode>400_MissingContentTypeException</FaultCode><Description>Content-Type header is either not sent or is invalid. Please validate your request and try again.</Description>
] to: orderStatusReturnXml
08/06/2018 18:56:22:472 DEBUG - 426C9F7CC015404ECB179B48DCB03004:/SF_EBayOrderStatus_ver_2_4 : Web Service Reply <- <FaultType>MissingHeader</FaultType><TimeStamp>2018-06-08T22:56:27Z</TimeStamp><FaultCode>400_MissingContentTypeException</FaultCode><Description>Content-Type header is either not sent or is invalid. Please validate your request and try again.</Description>
Please advice.
Thank you,
Chani Shrivastava