|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
POJOCommand usageHi,
I am trying to use a POJOCammand to replace some values in a message. Unfortunatly I get some XML related errors. I use synapse 1.2 and the following configuration. Sample message: <?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns1:someElement xmlns:ns1="http://www.abc.com> <ns1:anotherElement> <ns1:reference>123456</ns1:reference> </ns1:anotherElement> </ns1:someElement> </SOAP-ENV:Body> </SOAP-ENV:Envelope> POJO mediator: <pojoCommand name="AdapterCommand"> <property name="referentieNummer" expression="//ns1:anotherElement/ns1:reference/." action="UpdateMessage" /> </pojoCommand> When I send a message I get the following synapse error> ERROR POJOCommandMediator Unable to set the command property reference back to the message org.jaxen.UnresolvableException: Cannot resolve namespace prefix 'ns1' Do I make mistakes in mij configuration? I hope someone can help me. Regards, Niek Palm ÿþD i t b e r i c h t i s v e r t r o u w e l i j k e n k a n g e h e i m e i n f o r m a t i e b e v a t t e n e n k e l |