axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Shiell (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1375) OperationContext envelope has only partial namespacing
Date Fri, 13 Oct 2006 13:58:14 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-1375?page=comments#action_12442017 ] 
            
James Shiell commented on AXIS2-1375:
-------------------------------------

To make this a bit more useful, the namespace seems to be stripped out during the parsing
in HTTPTransportUtils:~250

builder = new StAXSOAPModelBuilder(xmlreader, SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
envelope = (SOAPEnvelope) builder.getDocumentElement();

Envelope has the structure as shown above...

> OperationContext envelope has only partial namespacing
> ------------------------------------------------------
>
>                 Key: AXIS2-1375
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1375
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.1
>         Environment: 1.1RC1
>            Reporter: James Shiell
>
> When getting the message envelope via opContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope()
the returned elements (shown below) lack namespacing on some header attributes (wsa:Action,
MessageID, From, Address). This in turn breaks efforts to parse this information, such as
by Apache Muse.
> I would expect that the xmlns:wsa element appears on all WSA namespaced elements.
> <?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
>     <soap:Header>
>         <wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://172.17.20.129:7001/ossj/services/WsResource</wsa:To>
>         <wsa:Action>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
>         <wsa:MessageID>uuid:0cf952e1-116e-e04c-8fcf-41a17f5c15d6</wsa:MessageID>
>         <wsa:From>
>             <wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
>         </wsa:From>
>         <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing"
wsa:IsReferenceParameter="true">OSSJOmResource-1</muse-wsa:ResourceId>
>     </soap:Header>
>     <soap:Body>
>         <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:ConsumerReference>
>                 <wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://172.17.20.129:7001/jr-ossj-client/services/consumer</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId xmlns:muse-wsa="http://ws.apache.org/muse/addressing">OSSJOmResource-1</muse-wsa:ResourceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
>     </soap:Body>
> </soap:Envelope>

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message