[Sorry for mixing internal and external aliases replaced tango-tech with
dev_at_wsit.dev.java.net]
If the following would work then maybe I do not need to extend the
W3cEndpointReference and MemberSubmissionEndpointReference
if ( version==W3c){
WSEndpointReference wsepr = new WSEndpointRefernce(w3cxmlinfoset,
version)
Source s = wsepr.asSource("AcksTo");
endpointReference = new W3cEndpointReference(s);
}else {
WSEndpointReference wsepr = new
WSEndpointRefernce(memberxmlinfoset, version)
Source s = wsepr.asSource("AcksTo");
endpointReference = new MemberSubmissionEndpointReference(s);
}
createSequencElement.setAcksTo(endpointReference);
where I memberxmlinfoset would be something like this
<AcksTo xmlns="
http://schemas.xmlsoap.org/ws/2005/02/rm">
<Address>
http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</Address>
</AcksTo>
would this be equivalent of marshalling
<CreateSequenceElement>
<AcksTo> ---Not <EndpointReference>
<Address>
</Address>
</AcksTo>
</CreateSequenceElement>
Bhakti Mehta wrote:
> Hi,
> I need to get input on the following.
> I am trying to implement the AcksTo which is a part of
> CreateSequenceElement and comes in the body of the message. The AcksTo
> could be either MemberSubmissionAcksToImpl/W3cAcksToImpl extending
> from MemberSubmissionEndpointReference/W3cEndpointReference . I have
> observed
> 1. W3cEndpointReference is final while
> MemberSubmissionEndpointReference is not .
> Is there a reason why W3cEndpointReference needs to be final?
> Please let me know
> Thanks,
> Bhakti
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>