public void doSOAP()
{
try
{
SoapObject rpc = new SoapObject ("http://10.1.2.39/Service1/Service1.asmx", "Login");
rpc.addProperty("sLogin","Ciro");
rpc.addProperty("sPassword","Ciro");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = rpc;
envelope.dotNet = true;
envelope.encodingStyle = SoapSerializationEnvelope.ENC;
HttpTransport ht = new HttpTransport ("http://10.1.2.39/Service1/Service1.asmx");
ht.call("http://tempuri.org/Login",envelope); // block here...
System.out.println("Res: " + envelope.toString());
System.out.println("Res: " + envelope.getResult());
}
catch (Exception e)
{
System.out.println("i am here in catch");
e.printStackTrace ();
}
}
This is a part of wsdl:
SOAP 1.1
POST /Service1/Service1.asmx HTTP/1.1
Host: 10.1.2.39
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Login"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns
si="http://www.w3.org/2001/XMLSchema-instance" xmlns
sd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Login xmlns="http://tempuri.org/">
<sLogin>string</sLogin>
<sPassword>string</sPassword>
</Login>
</soap:Body>
</soap:Envelope>
Simulator block on ht.call("http://tempuri.org/Login",envelope);
why??Please Help ME!!!!!!!!!!!!!