Am 07.09.2011 10:13, schrieb arun kumar:
>
>
> ---------- Forwarded message ----------
> From: *arun kumar* <arun.kata...@gmail.com <mailto:arun.kata...@gmail.com>>
> Date: Wed, Sep 7, 2011 at 12:27 PM
> Subject: consuming webservice using soap (wsdl file genrated in sap server)
> To: android-developers@googlegroups.com
> <mailto:android-developers@googlegroups.com>
>
>
> Hi
> how to consume webservice from sapserver...am having wsdl file created
> in sapserver...if i give the user id then the monthly salary will be
> display.....
>
>
> public class Webservice extends Activity {
>
> private static final String NAMESPACE =
> "urn:sap-com:document:sap:soap:functions:mc-style";
> private static String URL = "myurl";
> private static final String METHOD_NAME = "ZemptrackEarnOview";
> private static final String SOAP_ACTION = "zemptrack_overview";
> private Edittext lblResult;
>
> /** Called when the activity is first created. */
> @Override
> public void onCreate(Bundle savedInstanceState) {
> super.onCreate(savedInstanceState);
> setContentView(R.layout.main);
> lblResult = (EditText) findViewById(R.id.editText1);
> SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
> Empnfo ei=new EmpInfo();
> ei.setValue(" 34343") ;

i think you forgot to add the Empnfo ei to the request.
i don't know what Empnfo is, but generally string properties are added 
to requests like this:

request.addProperty("name", value);

for non-string types it is done like this:

info = new PropertyInfo();
info.setName("name of property like in XML");
info.setValue(Object);
info.setType(Object.getClass());
Request.addProperty(info)


-- 
Rainer Klier
Research & Development
xyzmo SIGNificant Group  | Austria | USA  | Germany
A-4052 Ansfelden, Haiderstraße 23
Tel.: +43 7229 88060-0, E-Mail: rainer.kl...@xyzmo.com

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to