Assuming a message like this example:
req_payload_string = <<XML
<ns1:echoString xmlns:ns1="http://ruby.wsf.wso2.net/samples">
<text>Hello World!</text>
</ns1:echoString>
XML
What would you recommend using on the provider side to get to the <text> element?Using REXML like the following?
doc = REXML::Document.new req_payload_string
doc.elements.each("*/text") { |element| puts element.text }Or is there a better way to access the field?
Thanks,
Thierry