I am getting the following error when calling a web service:
javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.soap.http.SoapInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.soap.http.SoapInitialContextFactory]
The code is as follows:
Properties h = new Properties();
h.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.soap.http.SoapInitialContextFactory");
h.put("weblogic.soap.wsdl.interface",
EcasServices.class.getName() );
h.put("weblogic.soap.verbose", "false" );
Context context = new InitialContext(h);
We recently upgraded from Web Logic 6.x to Web Logic 8.1. The above code worked perfectly fine under 6x but generating error in WL8.1. I did not encounter any errors during building of the webservice.
Could anyone please let me know the solution to this issue? I have looked all over the web and bea
doc but couldn't find anything helpful.
Thanks a lot in advance.