My code :
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’)
I got result like this,
D:\karthick.b\webservice>ruby testweb.rb
Wire dump:
= Request
! CONNECT TO online.mccolls.com.au:8080
! CONNECTION ESTABLISHED
POST /wsa/wsa1/wsdl?targetURI=urn:OHWebServiceFMGT HTTP/1.1
SOAPAction: “”
Content-Type: text/xml; charset=utf-8
User-Agent: SOAP4R/1.5.5 (/187, ruby 1.8.7 (2010-01-10) [i386-mingw32])
Date: Mon, 16 Apr 2012 05:25:35 GMT
Content-Length: 492
Host: online.mccolls.com.au:8080
<env:Envelope c
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xmlns:env=“http://schemas.xmlsoap.org/soap/envelope/”>
env:Body
<n1:getEmployeeFmgtDetails xmlns:n1=“urn:OHWebServiceFMGT”
env:encodingStyle=“http://schemas.xmlsoap.org/soap/encoding/”>
02385
</n1:getEmployeeFmgtDetails>
</env:Body>
</env:Envelope>
= Response
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html
Transfer-Encoding: chunked
Date: Mon, 16 Apr 2012 05:25:06 GMT
822
Progress WSA HTTP Error Page < !-- This style element controls the visual appearance of the WSDL Listing page. --> <![CDATA[ body {background: #FFF8DC; color: #191970;}
.heading {font-size: 24px; font-family: arial,
sans-seri
f; text-align: center;}
<!-- The table-caption style sets the appearance
of the
caption on the table. You can change its size, position, and whether it
is displ
ayed or not. →
.status {font-size: 16px; font-weight: bold;
font-family
: arial, sans-serif;}
<!-- The table-caption style sets the appearance
of the
caption on the table. You can change its size, position, and whether it
is displ
ayed or not. →
.status-code {font-size: 16px; font-weight:
bold; font-f
amily: arial, sans-serif; color: red}
<!-- The table-header style sets the font and
color of t
he table headings →
.description {font-size: 12px; font-weight:
bold; font-f
amily: arial, sans-serif; color: #000000;}
]]></style> </head> <body> <h1 class="heading"
id=“pagehe
ading”>Progress Web Services Adapter Error
Status: 404
No
resource
s found at the requested path: /wsa/wsa1/wsdl
C:/RhoStudio/ruby/lib/ruby/1.8/soap/streamHandler.rb:200:in send_post': 404: No t Found (SOAP::HTTPStreamError) from C:/RhoStudio/ruby/lib/ruby/1.8/soap/streamHandler.rb:109:in
send’
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:170:in
route' from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/proxy.rb:141:in
call’
from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/driver.rb:178:in
call' from C:/RhoStudio/ruby/lib/ruby/1.8/soap/rpc/driver.rb:232:in
getEmploy
eeFmgtDetails’
from testweb.rb:21
D:\karthick.b\webservice>
Please any one help me!