on 06-19-2010 4:39 PM
Hi,
I am writing a simple service interface (consumer) proxy client (EJB) using NWDS 7.1
I am getting null service instance using the code:
@WebServiceRef (name="SalesOrderCreateOutService")
private SalesOrderCreateOutService service;
The consumer proxy is deployed successfully.
Can anybody let me know the correct syntax of the above code...
Thanks
Srinivas
Hi Srinivas,
if the proxy is in the same DC as your EJB you needn't specify the name in WebServiceRef annotaion.
Otherwise you might try using the Proxy JNDI Object Name as can be found in NWA -> JNDI browser for the name property.
If this should not work either, you can use the following code:
InitialContext ctx = new InitialContext();
SalesOrderCreateOutService service =
(SalesOrderCreateOutService)ctx.lookup("<string found in JNDI browser>");
//use your service
Thanks, regards
Vincenzo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.