Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Ruby client for a Java webservice

Reply
Thread Tools

Ruby client for a Java webservice

 
 
srikanth
Guest
Posts: n/a
 
      03-20-2007
Hi

I am accessing a webservice ( written in Java ) .
below is the code I have written, to access a login method that takes
a

String,String,ArrayofString as param.


require 'soap/wsdlDriver'

wsdl = 'http://abc.com:80/cwpidws/cwpidws?WSDL'
driver = SOAP::WSDLDriverFactory.new(wsdl).create_rpc_drive r
driver.wiredump_file_base = "soapresult"
param3 = Array.new(25,String)
driver.login( "abcd", "efgh", param3)


however the input message does not set the params the right way.

<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlnssd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<n1:login xmlns:n1="urn:com.sun.wpe.cwp.cwpidws/wsdl/cwpidws"
env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<String_1 xsi:nil="true"></String_1>
<String_2 xsi:nil="true"></String_2>
<arrayOfString_3 xsi:type="n2:Array"
n2:arrayType="xsd:string[25]"
xmlns:n2="http://schemas.xmlsoap.org/soap/encoding/">
<item href="#id52"></item>

The two strings ( String_1 and String_2) are not part of the message .
how do i set the parameters to the function.

--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Webservice Client Implementation in Ruby Akshay Jangid Ruby 0 07-20-2010 11:10 PM
Ruby SOAP client communication with Microsoft .NET webservice Kishore Ruby 5 12-21-2005 06:38 PM
WebService on Java server versus WebService on .NET Mr. x Java 2 10-09-2003 11:21 PM
Re: .NET webservice and Java client Tor Iver Wilhelmsen Java 0 08-22-2003 10:16 PM
Invoke a method in Java webservice thro' soap call from Asp.net client. Samuel ASP .Net 0 07-30-2003 05:48 AM



Advertisments