好心人帮下忙:我的代码死活得不到数据
我的代码:
require 'soap/rpc/driver';
driver = SOAP::RPC::Driver.new("http://***.***.***.***/XHLisWebService/XHLisWebServiceDll.dll/soap/IXhlisWebservice", "urn:XHLisWebServiceIntf-IXHLisWebService");
driver.add_method('LISCommFun', 'Data');
data="<Request><FunName>GetBarcodeInfo</FunName><Params><Param Name='Barcode' Value ='123456789' /> </Params></Request>"
@ret=driver.LISCommFun(data);
webservice 调用说明如下:
Webservice 地址:
http://.../XHLisWebService/XHLisWebServiceDll.dll/soap/IXhlisWebservice
接口方法:LISCommFun(Data: String): String;