web services - Passing complex type to KSOAP Android Library -


newbie here in android , ksoap2. trying call soap based web service having difficulty passing complex object in calling it.

my webservice requires following complex input object. schema represents input , output messages.

<xsd:schema xmlns:xsd="http://www.w3.org/2001/xmlschema" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" targetnamespace="http://mycompany.com/viewcustdetails" elementformdefault="qualified">   <xsd:element name="viewcustdetails">     <xsd:complextype>       <xsd:sequence>         <xsd:element name="inputs" minoccurs="0">           <xsd:complextype>             <xsd:sequence>               <xsd:element name="option" type="xsd:string" minoccurs="0"/>               <xsd:element name="variant" minoccurs="0">                 <xsd:complextype>                   <xsd:sequence>                     <xsd:element name="name" type="xsd:string" minoccurs="0" default="acct_id"/>                     <xsd:element name="value" type="xsd:string" minoccurs="0"/>                   </xsd:sequence>                 </xsd:complextype>               </xsd:element>             </xsd:sequence>           </xsd:complextype>         </xsd:element>         <xsd:element name="results" minoccurs="0">           <xsd:complextype>             <xsd:sequence>               <xsd:element name="customerid" type="xsd:string" minoccurs="0"/>               <xsd:element name="customername" type="xsd:string" minoccurs="0"/>               <xsd:element name="custclass" type="xsd:string" minoccurs="0"/>             </xsd:sequence>           </xsd:complextype>         </xsd:element>         </xsd:element>       </xsd:sequence>     </xsd:complextype>   </xsd:element> </xsd:schema> 

when requesting or calling web service need populate "inputs" element only. "results" element can neglected during outgoing call.

when webservice returns, "results" element populated have assigned , elements populated value.

i having difficulty on how send complex object in ksoap 2 , retrieve corresponding returned data. of examples have found far contains simple objects , schema simple struggling on how solve this.

any thoughts?

check out: adding array of complex objects request


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -