on 09-17-2007 8:56 AM
Hi,
I am trying to Consume a XI web Service in a EJB.
1.I have created a deployable proxy "FBProxy" in the package com.samir.
2.This proxy is in the DC Component NWD_demo_Dews~xyz.com.
3.In the create( ) method of the EJB, I have given the jndi lookup for the FBProxy as "java:comp/env/FBProxy".
4.In the ejb-j2ee-engine.xml file I have given JNDI -mapping as
Application local JNDI -name=>FBProxy
Swerver Component Type=> Service
Server Component JNDI name=> /wsclients/proxies/com.samir.FBProxy
but I when I try to access FBProxy from ejbCreate method I am getting Naming Exception. I don't know why. what should be the JNDI-mapping?
can anyone guide me regarding this?
Regards,
Samir
Hi Samir,
I think your <b>Server Component JNDI name</b> has been assigned wrongly.
try out this as the name :
/wsclients/proxies/<Your Proxy project name>/com.samir.FBProxy
Regards,
Talimeren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried but its not working still I am getting the Naming Exception.
In ur suggestion the provider name was missing.
c. Server Component JNDI name Enter the name with which this component is bound to the J2EE Engine Naming System. The following convention is used:
/wsclients/proxies/<ProviderName>/<ApplicationName>/<ProxyName>
<ApplicationName>
I have observed one thing while creating deployable proxy that when I give the source of the WSDL as Local Server then the FBProxyClientAPI.jar is generated and if I give the source as Local file System or URL the FBProxyClientAPI.jar is not generated.Is this jar is required for the lookup and why it is not getting generated when i give the WSDL source as the Local file System or URL ?
you can refer the link http://help.sap.com/saphelp_nw04/helpdata/en/d6/f9bc3d52f39d33e10000000a11405a/frameset.htm
Hi Samir
Yes I missed out that providerName
and about that jar thing, yes it is required!
Actually I was having the same error .(am still having the error)
But somehow I was able to create JAR file
what I did was ...I created the client definition proxy twice
and the second time I was able to create the ClientAPI.jar file.
Regards,
Talimeren
Hi,
To my knowledge this should a JNDI lookup issue, can you please paste your stack trace here.
regards
Vivek Nidhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.