cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle a web service with an empty SOAP request

alancecchini
Participant
0 Kudos

Hi,

We need to expose a web service (server proxy) which provides a list of drop down field lists for a web form client.

When configuring the inbound message interface it is mandatory to provide an input and output message.

I tried adding an empty data type to the input message but I receive an error that the data type cannot be empty.

Please can someone suggest if an empty SOAP request can be processed through SAP PI or whether we need to use a dummy input parameter.

After all the client doesn't need to pass anything other than the operation to be processed hence the input message should be empty.

Thanks,

Alan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>>Please can someone suggest if an empty SOAP request can be processed

When you are creating your Message interface,you would be using Input/Output Messages.

These are either Message Types which you would have defined or you would have got WSDL from sender system,right.

Now in these message type or WSDL if you have described your elements as occurence from 0-unbounded,it will let you pass an empty payload,but if any of the field is mandatory,it will throw an error.

Yu can not leave Input/Output Message type empty when creating Message Interface,there should be some message structure there,could be a dummy one

Thanks

Aamir

Answers (1)

Answers (1)

Former Member
0 Kudos

Dont think so...

By the way hoe are u passing the operation to be performed...Thats data...and it needs to be passed..

regards,

Arvind R