cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Diesler (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1511) WrappedMessageContext does not implement SOAPMessageContext
Date Tue, 08 Apr 2008 12:55:24 GMT

    [ 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
>
> [tdiesler@tddell 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.


Mime
View raw message