on 01-04-2008 3:56 PM
Hello Friends;
Is there anyone use ksoap for mobile application.
I try to use ksoap for sap webservice but i cannot get one more than tables.
If anyone use please send an example.
Thanks in Advance
Best Regards
Hi,
Whether you are focused on Mobile devices you can go with the J2me support, or other systems u can go with the J2SE extension of KSOAP.
Here is the Link http://ksoap.objectweb.org/software/downloads/ , you can find specific J2me as well as J2SE extension support
Here is a Sample code how you call the Service.
-
SoapObject rpc = new SoapObject ("urn:xmethods-delayed-quotes", "getQuote");
rpc.addProperty ("symbol", symbol);
resultItem.setText (""+new HttpTransport("http://services.xmethods.net/soap", "urn:xmethods-delayed-quotes#getQuote").call (rpc));
-
in the above code resultItem is a textbox to display the quotes .
//Create a SoapObject by specifying the
//URN and the method name of the SOAP
//RPC web service.
SoapObject rpc = new SoapObject
(&urn:xmethods-delayed-quotes&, &getQuote&);
//The addProperty method allows you to specify
// parameters to for the method used.
rpc.addProperty (&symbol&, symbol);
//The HttpTransport class can be used to
// make the actual call. It's constructor
// accepts the Web service end point as
// well as the method to be called.
resultItem.setText (&&+new HttpTransport
(&http://services.xmethods.net/soap&,
&urn:xmethods-delayed-quotes#getQuote&).call (rpc));
and if required you can use KSOAP 2 http://ksoap2.sourceforge.net/
kSOAP 2 is a complete redesign, taking the lessons learned from kSOAP 1.x into account. Some important changes are:
Structure cleaned up
kSOAP2 has improved support for literal encoding
SOAP Serialization support is now optional and contained in a separate package
Several separate classes have been integrated into the class SoapSerializationEnvelope, providing SOAP serialization support. SoapSerializationEnvelope extends the base class SoapEnvelope.
A dotNet flag can be used to switch the SoapSerializationEnvelope from standard behaviour to the namespace handling that seems to be default in .NET
which suits your needs you can use accordingly.
Reward if usefull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mr. Chandar;
I have try many possibilities about ksoap for SAP WSDL's.
I have used to given code by you, and also from net.
But I KSOAP cannot retrive more than one tables comes from SAP.
I hope than someone try this and use this problem.
SAP Functions was edited for ksoap, they returns only one table.
Thanks for your message,
Best Regards.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.