cancel
Showing results for 
Search instead for 
Did you mean: 

Acknowledgement in Java based appliacation

jagesh_lakdawala
Active Participant
0 Kudos

Hello experts,

I am doing SOAP-PI-Proxy Asynchronous scenario.

SAP PI exposes the Web service and it is being consumed by Java application.

Now client wants either system or application level positive acknowledgement in their application.

please suggest me steps or sample code for this?

Note:- I have searched for the relevent threads but not able to find the solution.

Thanks in advance

Regards

jagesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have you seen this[; thread related to SOAP>PI>ABAP Proxy Async Scenario - Acknowledgement

jagesh_lakdawala
Active Participant
0 Kudos

Hi,

My requirement is that Java based application wants confirmation that sent data are succesfully updated in SAP R/3 system through the ASYNCHRNOUS scenario.

In your given thread, blog specified by https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3531 [original link is broken] [original link is broken] [original link is broken] is looking useful for me.

i think i need to develop some modules in SOAP Sender Adapter and Some coding is required in Java side.

But still i am not getting exact way for this.

Please suggest me further.

Thanks & Regards

Jagesh

jagesh_lakdawala
Active Participant
0 Kudos

Helllo experts,

Please suggest on this.

Regards

jagesh

Former Member
0 Kudos

Hi,

Async scenario with webservice??

For system level ack make this scenario as Sync then it will be like:

SOAP->PI->Proxy and Proxy->PI->SOAP (ack).

Another approach for application level ack:

If your java application can generate acknowledgement (i.e. message received or status ok etc) then you can configure another scenario in reverese order ie, Proxy->PI->SOAP for precise application level ack.

Regards,

Gourav

jagesh_lakdawala
Active Participant
0 Kudos

Hi Gourav,

By making it Synchronous, we can have Respone message in Java application easily that i aware of.

But its a Asynchronous sceanrio and we cant change it. even i can't reverse the scenario.

I want to have SAP PI provided Acknowledgements in Java appli.

Thanks and Regards

Jagesh

Former Member
0 Kudos

Hi,

In this case "message status" reflect acknowledgment. Successful message means message successfuly passed to application which is "system level ack".

Another possibility is use "Alert" for this particular scenario once it is successful (I am not sure about this approach) and use this alert as ack.

PI system always receive system ack (internally) once message is delivered but I am not aware how to exploit it externally.

Regards,

Gourav

kkram
Contributor
0 Kudos

Even though your scenario is asynchronous, under the hood, the communication between your Java application and XI adapter engine is synchronous. So you have your technical acknowledgment right there. This is assuming your webservice client call from your java application is synchronous.

There are only two ways asynchronous communication in webservices is possible: Using WS-A to redirect response and using WS-RM which is possible if you are using PI 7.1 (ofcourse your client service should be capable of doing WS-RM)

When you say you want acknowledgment in the java application, what are its capabilities, That is, how do you intend to receive the response? If you can answer this question, we can explore available options.

Thanks

KK