我用ruby写了个客户端访问xfire的webservice不正常!!!

返回
#<SOAP::Mapping::Object:0x164ff0e {http://allen.org/HelloWorldService}out="You I
nput Is[zhy hello]">
实际上应该只返回
You Input Is[zhy hello]

不知道为什么,请指教!!!!

 


问题补充:
require 'soap/wsdlDriver'
require 'rexml/document'

class TheConcatRequest
    attr_reader :str
    def initialize(str)
        @str = str       
    end
end

wsdl="http://10.15.0.223:8080/xfire/services/MsgWebServices?wsdl"
serv=SOAP::WSDLDriverFactory.new(wsdl).create_rpc_driver
#调用服务方法
result=serv.test(TheConcatRequest.new('zhy hello'))
#p result.split("=")
p result

http://httplei.iteye.com/blog/419313

我晚上做了个测试,能访问~,你看下吧

你怎么写的啊?