ws-muse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogdan Solomon <bsolo...@ncct.uottawa.ca>
Subject RE: [jira] Updated: (MUSE-250) Serialization of EndpointReferences (or of Element represeting an EndpointReference) strips the <wsa:EndpointReference> root
Date Mon, 16 Jul 2007 13:33:32 GMT

True, didn't consider that. For it to work like this, the code should check
via the wsdl that the type of it is EndpointReferenceType. That would
probably slow down the code a fair bit though, if it's done for any element
to be serialized.

At the same time, that would definitely break already working code as the
subscription messages are being serialized correctly. 

I'll have to go and check the sources again, but generally I'd rather not
add a new serializer for something that the platform should know to do
itself.


Vinh Nguyen (vinguye2) wrote:
> 
> My code works in both 2.1 and 2.2.  The spec you pointed out is correct.
> But, it should also be valid to have different element names with the
> same namespace.
> 
> For the Subscribe operation, Muse already sends these messages:
> 
>         <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">...</wsa:Address>
>                 <wsa:ReferenceParameters
> xmlns:wsa="http://www.w3.org/2005/08/addressing">
>                     <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing">...</muse-wsa:Reso
> urceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:ConsumerReference>
>         </wsnt:Subscribe>
> 
>         <wsnt:SubscribeResponse
>             xmlns:tns="http://axis2.platform.core.muse.apache.org"
> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2">
>             <wsnt:SubscriptionReference>
>                 <wsa:Address>...</wsa:Address>
>                 <wsa:ReferenceParameters>
>                     <muse-wsa:ResourceId
> xmlns:muse-wsa="http://ws.apache.org/muse/addressing">...</muse-wsa:Reso
> urceId>
>                 </wsa:ReferenceParameters>
>             </wsnt:SubscriptionReference>
>  
> <wsnt:CurrentTime>2007-07-13T11:25:09-07:00</wsnt:CurrentTime>
>         </wsnt:SubscribeResponse>
> 
> So your new code may work sometimes, but not all the time, like with the
> above.
> 
> 

-- 
View this message in context: http://www.nabble.com/-jira--Created%3A-%28MUSE-250%29-Serialization-of-EndpointReferences-%28or-of-Element-represeting-an-EndpointReference%29-strips-the-%3Cwsa%3AEndpointReference%3E-root-tf4075785.html#a11615393
Sent from the Muse - Dev mailing list archive at Nabble.com.


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


Mime
View raw message