Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @WebService
- @HandlerChain(file = "WebService_handler.xml")
- public class WSservice {
- @Resource
- private javax.xml.ws.WebServiceContext wsContext;
- @WebMethod(operationName = "Calculate")
- public ResultList сalculate(@WebParam(name = "parameter") InputParameters iparameters) throws DatatypeConfigurationException, Exception {
- javax.xml.ws.handler.MessageContext messageCntx = wsContext.getMessageContext(); --NULLPOINTER
- ......
- }
- @Override
- public boolean handleMessage(SOAPMessageContext messageContext) {
- Hashtable hashTable = new Hashtable(); hashTable.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
- hashTable.put(Context.PROVIDER_URL, url);
- appContext = new InitialContext(hashTable);
- Object obj = appContext.lookup("TestingBean");
- TestingBeanHome = (CarModelsHome)PortableRemoteObject.narrow(obj, TestingBeanHome.class);
- ....
- }
Add Comment
Please, Sign In to add comment