请帮帮我,我需要代码为我的WSDL文件下面的wsdl文件url使用RUBY语言参数可以作为pcEmployeecode传递...
参数可以作为STRING传递,即。,pcEmployeeCode =“02385”
url =“http://online.mccolls.com.au:8080/wsa/wsa1/wsdl?targetURI=urn:OHWebServiceFMGT”
请参阅此WSDL文件,如果您已成功获得响应结果,请发布给我...
任何想法......
我这样使用,仍然错误击中。
require 'rubygems'
#require 'soap4r'
require 'http-access2'
require 'soap/rpc/driver'
require 'soap/rpc/driver'
require 'net/http'
Net::HTTP.version_1_2
url =
"http://online.mccolls.com.au:8080/wsa/wsa1/wsdl?targetURI=urn:OHWebServiceFMGT"
soap = SOAP::RPC::Driver.new(url,"urn:OHWebServiceFMGT")
soap.wiredump_dev = STDERR
soap.options["protocol.http.ssl_config.verify_mode"] =
OpenSSL::SSL::VERIFY_NONE
soap.add_method('getEmployeeFmgtDetails','pcEmployeeCode')
puts soap.getEmployeeFmgtDetails('02385')