Quote:
Originally Posted by AbATaRCL
PEOPLE.
this is connection is a webservice
I have a doubt in the point [ soapObject.addProperty("arg0", symbolField); ]
what argument put in "arg0"
|
Hi abat..
I'm also a beginner in BB and using KSoap. But I figured out the very basics of making a webservice call using ksoap2. Still struggling with complex data types. If you dig this forum a little bit you can find some good postings regarding hot to setup ksoap2 and how to use/make simple webservice calls and stuff.
But as far as I learned, when it comes to 'complex data types' be it a parameter or return value, you won't find any help in these forums. Trust me I mean it. The only thing you find is that some beginner (like me!) throwing suggestions like "may be you could read documentations, may be you could do this...". Half backed bunch of ...
Anyways, to answer to your question the "arg0" in the 'addProperty' is that the parameter name of the argument you want to use.
This you can find in the .wsdl. For example say you have a webservice method which concatenates (merges) given 2 names (strings) like this:
- <element name="concatenateElement">
- <complexType>
- <sequence>
<element name="first" type="string" nillable="true" />
<element name="last" type="string" nillable="true" />
</sequence>
</complexType>
</element>
the 'addProperty' for this would be like:
addProperty("first", "James");
addProperty("last", "Bond");
I hope this clears some things for you.
Athma.