THANKS for the REPLAY ..i done that also..but am getting
10-25 17:36:14.373: WARN/System.err(874):
org.xmlpull.v1.XmlPullParserException: expected: START_TAG {
http://schemas.xmlsoap.org/soap/envelope/}Envelope (position:START_TAG
<html>@1:6 in java.io.InputStreamReader@43e57768)
am postinng my code...
*
public* *class* Track *extends* Activity {
TextView tv;
*private* String METHOD_NAME = "ZemptrackEarnOview";
*private* *static* *final* String *URL* =
http://76.10.226.133:8000/sap/bc/srt/wsdl/bndg_E0EE4EE62A0739F19D0400221969C2CB/wsdl11/allinone/ws_policy/document?sap-client=800
;
**
// private static final String URL = "
http://76.10.226.133:8000/sap/bc/srt/rfc/sap/zemptrack_earn_oview02/800/zemptrack_earn_oview02/zemptrack_earn_oview02
";
*private* String NAMESPACE =
"urn:sap-com:document:sap:soap:functions:mc-style";
*private* String soapAction = "";
*
//private String soapAction =
"urn:sap-com:document:sap:soap:functions:mc-style/ZemptrackEarnOview";
**//private* AbstractHttpClient httpclient;
/** Called when the activity is first created. */
@Override
*public* *void* onCreate(Bundle savedInstanceState) {
*super*.onCreate(savedInstanceState);
setContentView(R.layout.*main*);
tv = (TextView) findViewById(R.id.*tv*);
*try* {
UsernamePasswordCredentials creds = *new* UsernamePasswordCredentials("arun",
"12345");
((AbstractHttpClient) httpclient).getCredentialsProvider().setCredentials(*
new* AuthScope(76.10.226.133,8000 ),creds);
} *catch* (Exception e) {
}
*try
*
{
SoapObject request = *new* SoapObject(NAMESPACE, METHOD_NAME);
request.addProperty("Userid", "SRINIVASUS");
envelope.setOutputSoapObject(request);
envelope.bodyOut=request;
HttpTransportSE androidHttpTransport = *new* HttpTransportSE(*URL*);
androidHttpTransport.debug =*true*;
Log.*i*("five", "track");
androidHttpTransport.call(soapAction,envelope);SoapPrimitive result =
(SoapPrimitive)envelope.getResponse();
Log.*e*("httpResponse","Referral_Request" +result);
System.*out*.println("Result : " + result.toString());
((TextView) findViewById (R.id.*tv*)).setText("Tracking : "
+result.toString());
} *catch* (Exception E) {
E.printStackTrace();
((TextView) findViewById (R.id.*tv*)).setText("ERROR:" +
E.getClass().getName() + ":" + E.getMessage());
}
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en