Martin Mulder
2008-08-12 07:16:17 UTC
Maybe a stupid question, but I'm new to Mule.
I need an service, which gets a file as input, split the content, and
forward every part to the same service.
After that, it need to assamble all the results together, and send the
response back.
I tried to split the incomming message with an messageSplitter but
can't get ik work.
<xm:message-splitter splitExpression="/objecten/object"
validateSchema="false">
<file:outbound-endpoint path="outbox"/>
</xm:message-splitter>
this results in:
org.mule.module.xml.routing.FilteringXmlMessageSplitter:
splitExpression is /objecten/object
org.mule.module.xml.routing.FilteringXmlMessageSplitter: Non-XML
message payload: class org.mule.transport.file.ReceiverFileInputStream
org.mule.module.xml.routing.FilteringXmlMessageSplitter: Error: nodes
are null
What am I doing wrong?
Needed message flow:
1) message comes in
<Objects>
<object>
<id>1</id>
<name>foo</name>
<object>
<object>
<id>2</id>
<name>bar</name>
</object>
</objects>
2) send a request per object to services 2.
2-1)
in:
<object>
<id>1</id>
<name>foo</name>
</object>
out:
<object>
<id>1</id>
<name>foo</name>
<data>foo data</data>
</object>
2-2)
in:
<object>
<id>2</id>
<name>bar</name>
</object>
out:
<object>
<id>2</id>
<name>bar</name>
<data>bar data</data>
</object>
3) Response
out:
<objects>
<object>
<id>1</id>
<name>foo</name>
<data>foo data</data>
</object>
<object>
<id>2</id>
<name>bar</name>
<data>bar data</data>
</object>
</object>
Met vriendelijke groet,
Martin Mulder
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I need an service, which gets a file as input, split the content, and
forward every part to the same service.
After that, it need to assamble all the results together, and send the
response back.
I tried to split the incomming message with an messageSplitter but
can't get ik work.
<xm:message-splitter splitExpression="/objecten/object"
validateSchema="false">
<file:outbound-endpoint path="outbox"/>
</xm:message-splitter>
this results in:
org.mule.module.xml.routing.FilteringXmlMessageSplitter:
splitExpression is /objecten/object
org.mule.module.xml.routing.FilteringXmlMessageSplitter: Non-XML
message payload: class org.mule.transport.file.ReceiverFileInputStream
org.mule.module.xml.routing.FilteringXmlMessageSplitter: Error: nodes
are null
What am I doing wrong?
Needed message flow:
1) message comes in
<Objects>
<object>
<id>1</id>
<name>foo</name>
<object>
<object>
<id>2</id>
<name>bar</name>
</object>
</objects>
2) send a request per object to services 2.
2-1)
in:
<object>
<id>1</id>
<name>foo</name>
</object>
out:
<object>
<id>1</id>
<name>foo</name>
<data>foo data</data>
</object>
2-2)
in:
<object>
<id>2</id>
<name>bar</name>
</object>
out:
<object>
<id>2</id>
<name>bar</name>
<data>bar data</data>
</object>
3) Response
out:
<objects>
<object>
<id>1</id>
<name>foo</name>
<data>foo data</data>
</object>
<object>
<id>2</id>
<name>bar</name>
<data>bar data</data>
</object>
</object>
Met vriendelijke groet,
Martin Mulder
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email