I am using Mule to take input using a html file and using the input to add the value to an xml i am able to extract the value i just need to add it in the xml further, How should i proceed further,any help will be appreciated
Here is my config
<flow name="webappFlow1" doc:name="webappFlow1">
<http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="submitData" doc:name="HTTP"/>
<http:body-to-parameter-map-transformer doc:name="Body to Parameter Map"/>
<logger message="#[payload['VendorId']]" level="INFO" doc:name="Logger"/>
<message-properties-transformer doc:name="Message Properties">
<add-message-property key="vendorId" value="#[payload['VendorId']]"/>
</message-properties-transformer>
<file:inbound-endpoint path="src/test/resources" responseTimeout="10000" mimeType="text/xml" doc:name="File"/>
</flow>
The next step would be to add the vendor id to the xml file
if the xml looks like
<import>
<field></field>
</import>
I want to add value in field
Thanks,
Rahul
If wrestling Studio in submission is an issue, you can always use an expression component to read a file.
I notice that you intend to read from
src/test/resources: Studio doesn’t put this path on the classpath, so assuming you’re OK with reading files fromsrc/main/appinstead, the following component would readsrc/main/app/text.xml: