Skip to Content
avatar image
Former Member

Response of async web service

Hi there,

I've created a function module which calls a synchronous BAPI. I released this function module as a webservice.

When I call the web service it always gives a response although I don't need it in case of an async call.

Is it normal that even an async web service gives back a response?

Could it be that I have to change something in the definition of the function module to make it asynchronious? As far as I know, only a CALL of that function module can be sync/async, not a FM itself.

How can I achieve that the web service gives a response, or is it normal behaviour for sync and async calls?

THANKS in advance...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Feb 15, 2008 at 09:07 AM

    Hi,

    Asyc WebService does not have response. It dependes on your WSDL for the Webservice. If you have input and output message defined in the WSDL operation you will always a response, because this kind of operation is request/response from WSDL primitive.

    Nevertheless I does not known enough about FM to give you further adverise. I think in case you wrappe one sync BAPI FM into webservice, the generated description always has request/reponse in the WSDL operation.

    regards,

    Hai

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 09:14 AM

    Eddie,

    every web service is synchronous and even when it returns no data, it returns at least empty SOAP message. But it's no problem. You can call web service asynchronously from XI by creating an asynchronous interface. This should solve your problem.

    Peter

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 09:18 AM

    Hi,

    It will give the response even if for Asynchronous call, as basically its by nature synchronous. Thus in Interface Mappping if you see even if the response is not available the Respose tab get activated.

    You could either supress or redirect the resopnse if you will not require it.

    The Function module to be called in background for Asynchronous call.

    refer,

    Send RFC to SAP XI – Asynchronous

    /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous

    Thanks

    Swarup

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 15, 2008 at 10:37 AM

    We have created an asynchronous interface in XI...

    But nevertheless it gives aresponse message back.

    @Swarup: How can we supress or redirect the response?

    Should the BAPI be called in a background task?

    Thanks.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Prateek Raj Srivastava

      I think the blog doesn't help me at all.

      I published the function module as a WS which is called from XI via SOAP and not RFC.