Hi, am getting this exception the response has to get in xml data.... 09-22 17:53:38.399: WARN/System.err(986): org.xmlpull.v1.XmlPullParserException: expected: START_TAG { http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG <{ http://schemas.xmlsoap.org/wsdl/}wsdl:definitionstargetNamespace='urn:sap-com:document:sap:soap:functions:mc-style'>@1:630 in java.io.InputStreamReader@44e98ac8)
public class Track extends Activity { private String METHOD_NAME = ""; // private String NAMESPACE = "urn:sap-com:document:sap:soap:functions:mc-style"; private String SOAP_ACTION = ""; private static final String URL = " http://76.10.226.133:8000/sap/bc/srt/wsdl/bndg_E0D85C5AAE9ADFF19D0400221969C2CB/wsdl11/allinone/ws_policy/document?sap-client=800"; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); TextView tv = (TextView) findViewById(R.id.tv); Authenticator.setDefault(new Authenticator(){ protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username,password.toCharArray()); }}); try { SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("Userid", "SRINIVASUS"); Log.i("three", "track"); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = false; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.call(SOAP_ACTION,envelope); Object result = envelope.getResponse(); SoapPrimitive result1 = (SoapPrimitive)envelope.bodyIn; System.out.println("Result : " + result1.toString()); ((TextView) findViewById (R.id.tv)).setText("Tracking : "+result1.toString()); } catch (Exception E) { E.printStackTrace(); ((TextView) findViewById (R.id.tv)).setText("ERROR:" + E.getClass().getName() + ":" + E.getMessage()); } } } Thanks in advance -- 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