Estou tentando acessar um web service mas esta ocorrendo o seguinte erro:
org.xmlpull.v1.XmlPullParserException: expected: END_TAG {http://schemas.xmlsoap.org/soap/envelope/}Body (position:END_TAG </{http://schemas.xmlsoap.org/soap/envelope/}S:Fault>@1:323 in java.io.InputStreamReader@1cb37664)
Alguem poderia me ajudar ?
Acho que estou colocando o url e o namespace errado.
Agradeco desde ja.
//codigo que chama no web ervice
//usando ksopa2
url = "http://localhost:8080/CalculatorWSApplication/CalculatorWS?wsdl";
String namespace = "http://localhost:8080/CalculatorWSApplication/CalculatorWS";
SoapObject request = new SoapObject(namespace, "add");//namespace/operation
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
request.addProperty("i", new Integer(1));
request.addProperty("j", new Integer(5));
HttpTransport transportJ2me = new HttpTransport(url);
transportJ2me.call("", envelope);
String resposta =(String) envelope.getResponse();
// mostra o valor do resultado na tela.
textBox = new TextBox("Resposta Valor: ", resposta.toString() , 1024, 0);
display.setCurrent(textBox);
////////////////web service
<?xml version="1.0" encoding="UTF-8" ?>-
xsd:schema
<xsd:import namespace=“http://calculator.me.org/” schemaLocation=“http://localhost:8080/CalculatorWSApplication/CalculatorWS?xsd=1” />
</xsd:schema>