cancel
Showing results for 
Search instead for 
Did you mean: 

ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error

Former Member
0 Kudos

Hi guys,

I am encountering an error when sending a message (XI 3.0 to SOAP 1.1) to the target web service. This is the error I am getting:

The target web service does not send any acknowledgment message to PI as agreed. I've tried sending directly to their system via SoapUI and the message was received. Please advise. Thank you in advance!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi everyone. Thanks for all your responses. The issue is now resolved by changing the Soap Action in the receiver communication channel.

former_member182412
Active Contributor
0 Kudos

Hi Bernard,

Please close the thread as mentioned in below blog.

Regards,

Praveen.

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Bernard,

Are you sure the message sent by PI is equal that your example in SOAPui?. Pay attention to the namespaces and the data sent. The http 500 can be an exception in the endpoint because the data received is not the data expected.

Regards.

Former Member
0 Kudos

Thanks for the response, Iñaki.

Yes, I confirm that the message sent via SoapUI is the same with what PI sends. In fact, the message I sent thru SoapUI came from Operation Mapping's output xml.

Notice: I am using a custom soap envelope which was requested by the target system. The soap envelope is added in OM.

Thanks.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Bernard,

If you have checked Do Not Use SOAP Envelope, the content-type is automatically application/xml. Have you used MessageTransformBean to bring it back to text/xml?

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

Yes it is checked and I have used MessageTransformBean with this configuration:

Module Key = transform

Parameter Name = Transform.ContentType

Parameter Value = text/xml; charset=utf-8

Is this right?

Thank you.

former_member182412
Active Contributor
0 Kudos

Hi Bernard,

Use TCPGW to check what is the response you getting from third party, please check below blog gow to use TCPGW.

Kind Regards,

Praveen.

Former Member
0 Kudos

Thanks, Praveen.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi,

Can you share the (raw) request/response in SOAP UI?

Regards,

Mark

Former Member
0 Kudos

Hi Mark,

As stated in the opening post, the target system is not sending an acknowledgment. If you are referring to the response from SoapUI only, please see below data. Is there something in the data that I need to check?

MessageResponse:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <ProvideResultResponse xmlns="http://www.newenergy.com"/>
   </s:Body>
</s:Envelope>

Message Request:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:new="http://www.newenergy.com">
<soapenv:Header/>
<soapenv:Body>
<new:ProvideResultResponse>
<new:ResultRequest>
<new:From>ACTIVEMETER</new:From>
<new:To>NEWENERGY</new:To>
<new:RequestID>12345</new:RequestID>
<new:Payload>100,A,C,S,45,55,65,75,A,A,I,O,A,E,P,A,EE,600,700</CSVPayload>
<new:Severity>H</new:Severity>
<new:Code>0</new:Code>
<new:Context>C</new:Context>
</new:ResultRequest>
</new:ProvideResultResponse>
</soapenv:Body>
</soapenv:Envelope>

Thank you.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Bernard,

In SAP Note 856597, it specifically states:


o Q: What should my web service return to the adapter for

asynchronous calls?

A: Currently, the receiver adapter expects an HTTP 200 with a SOAP

envelope with an empty content for successful delivery. Any other

response will result in a XI system error and triggers retries of

the message.

The Soap envelope needs to be empty, e.g

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

</s:Envelope>

Hope this helps,

Mark

Former Member
0 Kudos

Thanks, Mark.