返回
#<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