Package org.jboss.ws.core.jaxrpc.handler

Examples of org.jboss.ws.core.jaxrpc.handler.MessageContextJAXRPC


   // provide logging
   private static Logger log = Logger.getLogger(SOAPBindingJAXRPC.class);
  
   public void setSOAPActionHeader(OperationMetaData opMetaData, SOAPMessage reqMessage)
   {
      MessageContextJAXRPC msgContext = (MessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
      MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
      String soapAction = opMetaData.getSOAPAction();

      // R2744 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
      // with a quoted value equal to the value of the soapAction attribute of
      // soapbind:operation, if present in the corresponding WSDL description.

      // R2745 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
      // with a quoted empty string value, if in the corresponding WSDL description,
      // the soapAction attribute of soapbind:operation is either not present, or
      // present with an empty string as its value.

      if (msgContext.getProperty(Call.SOAPACTION_USE_PROPERTY) != null)
         log.info("Ignore Call.SOAPACTION_USE_PROPERTY because of BP-1.0 R2745, R2745");

      String soapActionProperty = (String)msgContext.getProperty(Call.SOAPACTION_URI_PROPERTY);
      if (soapActionProperty != null)
         soapAction = soapActionProperty;

      mimeHeaders.addHeader("SOAPAction", soapAction != null ? soapAction : "");
   }
View Full Code Here


   // provide logging
   private static Logger log = Logger.getLogger(SOAPBindingJAXRPC.class);
  
   public void setSOAPActionHeader(OperationMetaData opMetaData, SOAPMessage reqMessage)
   {
      MessageContextJAXRPC msgContext = (MessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
      MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
      String soapAction = opMetaData.getSOAPAction();

      // R2744 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
      // with a quoted value equal to the value of the soapAction attribute of
      // soapbind:operation, if present in the corresponding WSDL description.

      // R2745 A HTTP request MESSAGE MUST contain a SOAPAction HTTP header field
      // with a quoted empty string value, if in the corresponding WSDL description,
      // the soapAction attribute of soapbind:operation is either not present, or
      // present with an empty string as its value.

      if (msgContext.getProperty(Call.SOAPACTION_USE_PROPERTY) != null)
         log.info("Ignore Call.SOAPACTION_USE_PROPERTY because of BP-1.0 R2745, R2745");

      String soapActionProperty = (String)msgContext.getProperty(Call.SOAPACTION_URI_PROPERTY);
      if (soapActionProperty != null)
         soapAction = soapActionProperty;

      mimeHeaders.addHeader("SOAPAction", soapAction != null ? soapAction : "");
   }
View Full Code Here

/*    */ {
/* 45 */   private static Logger log = Logger.getLogger(SOAPBindingJAXRPC.class);
/*    */
/*    */   public void setSOAPActionHeader(OperationMetaData opMetaData, SOAPMessage reqMessage)
/*    */   {
/* 49 */     MessageContextJAXRPC msgContext = (MessageContextJAXRPC)MessageContextAssociation.peekMessageContext();
/* 50 */     MimeHeaders mimeHeaders = reqMessage.getMimeHeaders();
/* 51 */     String soapAction = opMetaData.getSOAPAction();
/*    */
/* 62 */     if (msgContext.getProperty("javax.xml.rpc.soap.http.soapaction.use") != null) {
/* 63 */       log.info("Ignore Call.SOAPACTION_USE_PROPERTY because of BP-1.0 R2745, R2745");
/*    */     }
/* 65 */     String soapActionProperty = (String)msgContext.getProperty("javax.xml.rpc.soap.http.soapaction.uri");
/* 66 */     if (soapActionProperty != null) {
/* 67 */       soapAction = soapActionProperty;
/*    */     }
/* 69 */     mimeHeaders.addHeader("SOAPAction", soapAction != null ? soapAction : "");
/*    */   }
View Full Code Here

TOP

Related Classes of org.jboss.ws.core.jaxrpc.handler.MessageContextJAXRPC

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.