Bonjour à tous,
Cela fait deux heures que je cherche à régler mon problème, et je ne trouve toujours pas la solution.
J'ai un webservice en dotnet, et je voudrai donc y avoir accès avec mon application android.
Voici mon code :
1 2 3 4 5 6 7 8 9 10 11 12 13
| String Name_Space="http://localhost";
String Method_Name="HelloWorld";
String Soap_Action="http://localhost/HelloWorld";
String URL="http://localhost/WebServiceTest/Service1.asmx";
SoapObject request = new SoapObject(Name_Space, Method_Name);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(Soap_Action, envelope);
// Get response from envelope
String result = envelope.getResponse().toString(); |
Le soucis que j'ai, c'est qu'eclipse me surligne la ligne :
androidHttpTransport.call(Soap_Action, envelope);
En me disant " Unhandled exception type XmlPullParserException", je ne comprends pas d'où peut venir le problème.
SI quelqu'un pouvait me débloquer, je lui en serais très reconnaissant.
Merci d'avance
Partager