Skip to content

DomPoxMessage not clearing DOM on setting the result [SWS-248] #403

Closed
@gregturn

Description

@gregturn

Atif Khan opened SWS-248 and commented

I am using the POX method to implement a simple XML service. The problem I am having has to do with the XML transformations. The way the PayloadTransformingInterceptor is implemented, it sets the transformation result on the same Document object in DomPoxMessage as the source dom. This is ending up just appending the transformed XML to the original XML.
I wrote my own interceptor and it ended up being the same result. I also tried to add a new method setDocument(Document) to the DomPoxMessage class. I then stored the result of transformation in a new DomResult and then set the resulting dom on the DomPoxMessage. It works fine upto this point, but then somewhere during the internals of Spring-WS it ends up causing a problem and starts throwing null pointer exceptions.

This has been really frustrating and considering that there is barely any documentation on the POX in general, this is really turning out to be a loosing cause.
Reply With Quote
atifmk

#2
Old 12-03-2007, 04:56 PM
Arjen Poutsma Arjen Poutsma is offline
Senior Member
Spring Team

Join Date: Jul 2005
Location: Rotterdam, the Netherlands
Posts: 1,166
Default
I think this is something I can fix by simply emptying the document if setPayloadResult() is called (similar to SOAP). If you create a JIRA issue, I will look at it.

I will also try and add some POX documentation in 1.5, or maybe a sample.


Arjen Poutsma
Spring Web Services Dev Lead
Please read the FAQ


Affects: 1.0.2

Issue Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions