cancel
Showing results for 
Search instead for 
Did you mean: 

Reusing deployable web service proxies

Former Member
0 Kudos

Hi ,

I am new to CE 7.1 and am wondering about reusing deployable web service proxies.

In this link , it is written that

"The Web service client and the Web service proxy must be in the same EAR and in the same module (EJB or Dynamic Web module)."

http://help.sap.com/saphelp_nwce10/helpdata/en/45/113a1221337249e10000000a155369/content.htm

So what if two applications need to use the same deployable web service proxy ? You shouldn't generate 2 proxies. How do both applications use the same deployable proxy ?

Thank you.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Thierry,

If I understand your question correctly, you have two applications (distributed across two or more DCs) and you want to use the same generated Web Service proxies in both the DCs.

If this is the case and assuming that there are two EJB DCs (one containing the proxies and the other containing the actual WS client implementation) and one deployable App DC (containing reference to the two EJB DCs), then define Public Parts for the proxies and use the same in the required EJB DC. You may refer to my [article |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/d00fc143-5878-2c10-6f87-f868c1ae44e6] that explains this concept in a detailed manner.

Br,

Bala

Former Member
0 Kudos

The case you illustrate is if the two EJB DC's are in the same ear. How can you do it if you need to use 2 ears ?

What I understand is that in order to use deployable proxies from different applications, you should use an EJB project as a facade to the service ? But then again, in your document, you say that the trick is that they must be deployed in the same ear.

Edited by: Thierry Dagnino on Nov 30, 2009 3:51 PM