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

Alessio Soldano (JIRA) jira-events at lists.jboss.org
Thu Nov 5 05:04:06 EST 2009


     [ https://jira.jboss.org/jira/browse/JBWS-2770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alessio Soldano updated JBWS-2770:
----------------------------------

    Fix Version/s:  jbossws-metro-3.2.2
                    jbossws-cxf-3.2.2
                    jbossws-native-3.2.2
                       (was: jbossws-cxf-3.3)
                       (was: jbossws-metro-3.3)
                       (was: jbossws-native-3.3)


> 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-metro-3.2.2,  jbossws-cxf-3.2.2,  jbossws-native-3.2.2
>
>
> 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