[ http://issues.apache.org/jira/browse/APOLLO-26?page=all ]
Ian Springer updated APOLLO-26:
-------------------------------
Assign To: Ian Springer
Description:
For example, if a request comes in w/ 2003/03 WSA headers, the response that is
built by the Addressing handler should also have 2003/03 headers.
was:For example, if a request comes in w/ 2003/03 WSA headers, the response
that is built by the Addresing handler should also have 2003/03 headers.
Responses are now built using the same version of WSA that was used in the
request. However, there is still another issue that needs to be resolved...
The Addressing class EndpointReferenceType currently is mapped to the Axis
BeanSerializer and uses an embedded Axis TypeDesc to describe the names of the
XML elements to which its various fields should be serialized. This TypeDesc is
static and all of the names use the 2004/08 WSA namespace; hence, there is no
support for serializing the EPR to other versions of WSA.
Here is a proposed solution:
1) add an addressingVersion field of type URI, w/ an associated getter and
setter, to EndpointReferenceType; in the constructor, set a default value for
this field based on a MessageContext prop w/ a fallback to a sysprop w/ a last
resort of a hard-coded default
2) create a custom Axis Serializer (e.g. EndpointReferenceTypeSerializer) that
extends BeanSerializer; in it, override serialize() to reset the typedesc field
of the superclass to use the WSA namespace URI that is set on the EPR being
serialized
3) modify EndpointReferenceType#getSerializer() to return an
EndpointReferenceTypeSerializer instead of a BeanSerializer
4) if necessary, do something similar for EndpointReferenceType's deserializer
> Apache Addressing should transparently support both the 2003/03 and 2004/08
> versions of WSA
> -------------------------------------------------------------------------------------------
>
> Key: APOLLO-26
> URL: http://issues.apache.org/jira/browse/APOLLO-26
> Project: Apollo
> Type: Task
> Components: Other
> Environment: n/a
> Reporter: Ian Springer
> Assignee: Ian Springer
>
> For example, if a request comes in w/ 2003/03 WSA headers, the response that
> is built by the Addressing handler should also have 2003/03 headers.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]