[
https://issues.apache.org/jira/browse/CXF-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12586783#action_12586783
]
Thomas Diesler commented on CXF-1511:
-------------------------------------
@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);
}
}
> WrappedMessageContext does not implement SOAPMessageContext
> -----------------------------------------------------------
>
> Key: CXF-1511
> URL: https://issues.apache.org/jira/browse/CXF-1511
> Project: CXF
> Issue Type: Bug
> Affects Versions: 2.0.5
> Reporter: Thomas Diesler
>
> [EMAIL PROTECTED] trunk]$ ant -Dtest=jaxws/binding test
> tests-run-internal:
> [junit] Running org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase
> [junit] Retrieving document at 'http://localhost:8080/jaxws-binding?wsdl'.
> [junit] Tests run: 2, Failures: 1, Errors: 1, Time elapsed: 6.716 sec
> [junit] Test org.jboss.test.ws.jaxws.binding.SOAPBindingTestCase FAILED
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.