cancel
Showing results for 
Search instead for 
Did you mean: 

Error: Cannot read payload from message object.

Former Member
0 Kudos

Hi experts.

My scenario is: FILE ---> PI -


> SOAP(WS).

The problem is when the message is sent to the web service an error is shown in sxi_moni:

"Unable to read payload".

I am almost sure that the problem is in the response of the web service.

Because in the log of the server on which the web service is on I am able to see the sent message.

The web service request is an xml structure,

but it has no response structure, Only http return code.

All the structures was taken from the imported WSDL of the Web Service.

What should i put in the response field of the sync interface, and how i should solve the problem?

Regards Max.

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos
My scenario is: FILE ---> PI ----> SOAP(WS).

I am almost sure that the problem is in the response of the web service.

What should i put in the response field of the sync interface, and how i should solve the problem?

FILE does not support Sync communication unless a BPM is involved or RequestresponseBean is used.....how did you designed your interface?

Regards,

Abhishek.

Former Member
0 Kudos

FILE does not support Sync communication unless a BPM is involved or RequestresponseBean is used.....how did you designed your interface?

I have a BPM. But i am not interested to pass any response to "File" side.

I just need to call the web service and pass the xml to it.

regards Max.

Shabarish_Nair
Active Contributor
0 Kudos

>

>

> FILE does not support Sync communication unless a BPM is involved or RequestresponseBean is used.....how did you designed your interface?

>

>

>

> I have a BPM. But i am not interested to pass any response to "File" side.

> I just need to call the web service and pass the xml to it.

>

> regards Max.

if it is async then why do you need a BPM?

Only for a sync WS you will get a response. Else for a async WS the response will be only a technical ack and you will never receive the payload back to PI

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks guys. Problem solved.

Changed the interfaces to async.

Shabarish_Nair
Active Contributor
0 Kudos

is you WS async or sync?

Also in case your scenario is Async to Async call then you will need to define the interface for the WS as async with only request structure.

Additional Ref: /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

Former Member
0 Kudos

is you WS async or sync?

Also in case your scenario is Async to Async call then you will need to define the interface for the WS as async with only request structure.

I guess it is async. because it has no return structure but only http response.

Am i right?

Is it possible to call web service async?

former_member200962
Active Contributor
0 Kudos
Is it possible to call web service async?

Yes it is possible.

Regards,

Abhishek.

Shabarish_Nair
Active Contributor
0 Kudos

>

> I guess it is async. because it has no return structure but only http response.

> Am i right?

So is your message/service interface async?

also do a check test of the WS using some tool like XML Spy or SOAPUI to check how it responds.

>

> Is it possible to call web service async?

yes.