Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > wsdl ,not able to pass a complex type to a method

Reply
Thread Tools

wsdl ,not able to pass a complex type to a method

 
 
Rahul Sharma
Guest
Posts: n/a
 
      10-01-2009
I'm trying to use a web service .
I am using 'soap/rpc/driver' after creating an object of the driver
class , i am able to authenticate by calling a method on it .

- <element name="authenticate">
- <complexType>
- <sequence>
<element name="username" type="xsd:string" />
<element name="password" type="xsd:string" />
</sequence>
</complexType>
</element>

i am able to authenticate using the code below
driver = SOAP::RPC:river.new(URL, NAMESPACE)
driver.add_method('authenticate','username','passw ord')
driver.add_method('authenticateResponse','authenti cateReturn')
sid= driver.authenticate('uname','pwd')

I want to use the hostCreate method , it takes the instance of
HostTransport as argument, I cannot figure out ,how can I pass this as
argument. Pls help .
I have pasted the related wsdl below


- <complexType name="TransportObject">
<sequence />
</complexType>
- <complexType name="ConfigurationTransport">
- <complexContent>
- <extension base="impl:TransportObject">
- <sequence>
<element name="ID" nillable="true" type="xsd:int" />
<element name="description" nillable="true" type="xsd:string" />
<element name="name" nillable="true" type="xsd:string" />
</sequence>
</extension>
</complexContent>
</complexType>
- <complexType name="HostTransport">
- <complexContent>
- <extension base="impl:ConfigurationTransport">
- <sequence>
<element name="agentVersion" nillable="true" type="xsd:string" />
<element name="displayName" nillable="true" type="xsd:string" />
<element name="external" type="xsd:boolean" />
<element name="externalID" nillable="true" type="xsd:string" />
<element name="hostGroupID" nillable="true" type="xsd:int" />
<element name="platform" nillable="true" type="xsd:string" />
<element name="securityProfileID" nillable="true" type="xsd:int" />
</sequence>
</extension>
</complexContent>
</complexType>




- <element name="hostCreate">
- <complexType>
- <sequence>
<element name="host" type="impl:HostTransport" />
<element name="sID" type="xsd:string" />
</sequence>
</complexType>
</element>
--
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
Not able to display color in excel not able to display color in excel using xml sed_y XML 0 02-15-2012 09:46 PM
webservices, wsdl & xsd (schema-2-wsdl) Dark Java 1 11-14-2008 07:58 PM
wsdl2java: method parameter a complex type that extends another complex type Robert Mark Bram Java 0 02-04-2007 10:06 AM
[XML Schema] Content type of complex type definition with complex content Stanimir Stamenkov XML 2 10-25-2005 10:16 AM
is the w3c's schema for wsdl and wsdl/soap binding possibly buggy ? _clb_ Chris Bedford XML 0 08-20-2003 11:52 PM



Advertisments