Skip to Content
0
Former Member
Mar 12, 2009 at 11:31 PM

Server Component JNDI name

32 Views

Hi all,

I'm trying to consume a web service that i did with a ABAP function module. This means that my Web Service is in R/3 not in the Web AS.

I created a Deployable Client Proxy with the WSDL in the NWDS.

Now the EAR is deployed in the WebAS.

In my web-j2ee-engine.xml i have:

Application Local JNDI name: sc

Server component type: interface

Server component JNDI name: /wsclients/proxies/sap.com/sc/sap.com.sc

My question is where is the Server component JNDI name of my Web Service in the Web AS?

How can i find the JNDI names of all my apps in the Web AS?

In the help is says:

/wsclients/proxies/<ProviderName>/<ApplicationName>/<ProxyName>

But every time that i do

DefaultService obj = (DefaultService) ctx.lookup("java:comp/env/sc");

The error is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception during lookup operation of object with name webContainer/applications/sap.com/testear/test/java:comp/env/sc, cannot resolve object reference. [Root exception is com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at sc, the whole lookup name is wsclients/proxies/sap.com/sc/sap.com.sc.

Please help,

Regards,

César Felce