[jbossws-issues] [JBoss JIRA] Created: (JBWS-2770) Rewrite org.jboss.test.ws.jaxws.binding testcase to get SOAPMessageContext from handlers

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Tue Sep 22 10:20:02 EDT 2009


Rewrite org.jboss.test.ws.jaxws.binding testcase to get SOAPMessageContext from handlers
----------------------------------------------------------------------------------------

                 Key: JBWS-2770
                 URL: https://jira.jboss.org/jira/browse/JBWS-2770
             Project: JBoss Web Services
          Issue Type: Task
      Security Level: Public (Everyone can see)
          Components: jbossws-cxf, jbossws-metro, jbossws-native
            Reporter: Alessio Soldano
             Fix For: jbossws-cxf-3.3, jbossws-metro-3.3, jbossws-native-3.3


We have 

@Resource
   public WebServiceContext context;


   public String namespace()
   {
      try
      {
         SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
         SOAPMessage soapMessage = msgContext.getMessage();
         SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
         String nsURI = soapEnvelope.getNamespaceURI();

         log.info(nsURI);

         return nsURI;
      }
      catch (SOAPException ex)
      {
         throw new WebServiceException(ex);
      }
   }

in an endpoint. The SOAPMessageContext can be obtained from handlers only, so the SOAPMessageContext retrieval should be done in a server side handler.

This is related to CXF-1511

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossws-issues mailing list