cancel
Showing results for 
Search instead for 
Did you mean: 

HttpServlet with @WebServiceRef in another DC

Former Member
0 Kudos

Hello wisemen!

I created web-service client (consumer proxy) at DC1 (EJB) and http servlet at DC2 (Web). DC1 and DC2 are under NWDI control at some SWC.

For DC1 also I create job definition to check proxy call from scheduler.

Everithig fine, proxy is calling by scheduler and XI gets messages.

DC1 has public part like vendor~dc1~proxy and DC2 is dependent from dc1/proxy.

What the way to call consumer proxy from DC2? As it is says http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4b/5067ab2b5c2827e10000000a42189c/content.htm

there is simple @WebServiceRef annotation and HelloService object instance, but I got compilation errors when trying to build using NWDI:

     [javac] ERROR: C:\sap\workspace.jdi\0\DCs\vendor\support\temp\_comp\source\HelloServlet.java:13: cannot find symbol

     [javac] ERROR: symbol  : class HelloOutService

     [javac] ERROR: location: class HelloServlet

     [javac] ERROR: HelloService service;

     [javac] ERROR: ^

     [javac] 1 error

If I made public part for DC1 like HelloService.class or HelloService.java, the SCA is built OK but deploy DC2 is failed, because no WSDL can be found, because WSDL located at DC1.

So the the question -- do I need make some another EJB to call consumer proxy in different DC or there is some configuration fix available?

Thank you in advance.

P.S. I can mix consumer proxy and http servlet in one DC, and it works fine, but cannot use scheduler proxy MDB in the same DC.

Accepted Solutions (1)

Accepted Solutions (1)

former_member193379
Active Contributor
0 Kudos

Hi Lliya,

Plesae have a look of the below link, which may help you.

6.2.  Create a client in a managed component in a EE container.

Thanks,

Hamendra

Former Member
0 Kudos

Hello Hamendra,

thank you for point. It is for JEE6, but my system is JEE5 (NetWeaver 7.4), so some attributes cannot be used (for example. @lookup).

I have made own EJB in DC1 and call it from DC2. That works.

former_member193379
Active Contributor
0 Kudos

Hi Lliya,

Could you please close thread by selecting the appropriate option.

Thanks,

Hamendra

Answers (0)