Guest User

Untitled

a guest
Nov 15th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. `
  2. String username = null;
  3. String password = null;
  4.  
  5.  
  6. messageFactory = MessageFactory.newInstance();
  7. input = httpRequest.getInputStream();
  8. soapMessage = messageFactory.createMessage(null,input);
  9. SOAPPart part = soapMessage.getSOAPPart();
  10. envelope = part.getEnvelope();
  11. header = envelope.getHeader();
  12. body = envelope.getBody();
  13.  
  14. username= userIdNode.item(0).getChildNodes().item(0).getNodeValue();
  15. password= passwordNode.item(0).getChildNodes().item(0).getNodeValue();
  16.  
  17. Authentication responseAuthentication = processUsernamePasswordAuthentication(httpResponse, username, password);
  18. if(responseAuthentication.isAuthenticated()){
  19.  
  20. }`
  21.  
  22.  
  23.  
  24. After here I have to make a call to my soap action. The interface is as follows :
  25.  
  26.  
  27. ` @WebMethod(operationName = "xxx", action = "YYYYY")
  28. @WebResult(name = "Reply", targetNamespace = "")
  29. @RequestWrapper(localName = "localname", targetNamespace = "", className = "")
  30. @ResponseWrapper(localName = "Response", targetNamespace = "", className = "")
  31. @Action(input = "input", output = "Response", fault = {
  32. @FaultAction(className = Fault_Exception.class, value = "Fault/Fault")
  33. })
  34. public Reply getDetails(
  35. @WebParam(name = "Request", targetNamespace = "")
  36. Request getDetailsRequest)throws Fault_Exception;`
Add Comment
Please, Sign In to add comment