Ksoap and SOAPStruct
khkmh kjhkjh <[email protected]> Tue, 5 Nov 2002 12:21:36 +0100 (CET)
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
Hi I am a newby in java j2me and KSOAP and I must programm a client in j2me who must communicate with SOAP:Lite. I would like to realize this structure with KSOAP. and I would like to create this SOAP request with a array of SOAPStruct I didn't find example on this web site and the web, but I know that is possible :(http://ksoap.enhydra.org/software/documentation/round-2-base/index.html) I would like to discover the code (maybe this request is built with a vector): <SOAP-ENV:Envelope xmlns:n2="http://soapinterop.org/" xmlns:n1="http://soapinterop.org/xsd" xmlns:n0="http://xml.apache.org/xml-soap" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <n2:echoStructArray id="o0" SOAP-ENC:root="1"> <inputStructArray xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="n1:SOAPStruct[2]"> <item xsi:type="n1:SOAPStruct"> <varString xsi:type="xsd:string">Hello World</varString> <varInt xsi:type="xsd:int">42</varInt> <varFloat xsi:type="xsd:float">123.45</varFloat> </item> <item xsi:type="n1:SOAPStruct"> <varString xsi:type="xsd:string">Hello World</varString> <varInt xsi:type="xsd:int">42</varInt> <varFloat xsi:type="xsd:float">123.45</varFloat> </item> </inputStructArray> </n2:echoStructArray> </SOAP-ENV:Body> </SOAP-ENV:Envelope> has someone got an example thank an advance Maria ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com