ActionWebService - need response in XML

Hi i have used actionwebservice gem.
I have processed a SOAP request & in the service api i expect an api_key
& url.

class ServicesApi < ActionWebService::API::Base
api_method :verify_url, :expects =>
[{:api_key=>:string},{:url=>:string}], :returns => [{:response
=>:string}]
end

Processing the api_key & url, i have generated an XML. when i return
response, the XML is converted into string.

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<records type=\"array\">\n
<record>\n <opayu-shortern-url>nil</opayu-shortern-url>\n
<error-message>url is Invalid </error-message>\n
<error-code>102</error-code>\n <message>Failure</message>\n
</record>\n</records>\n"

The response which i expect is XML.

Is there any method to convert the string to XML?
Or is there any way to return the response as a XML?

Thanks,
Srikanth J

···

--
Posted via http://www.ruby-forum.com/.

I have used xml_in method from xmlsimple,
Its working now

Thanks,
Srikanth J

http://srikanthjeeva.blogspot.com

···

--
Posted via http://www.ruby-forum.com/.