Calling java webservice from android using ksoap2 but i am getting http://services.com/hello doesn't match -


this wsdl file location

calling java webservice android using ksoap2 getting http://services.com/hello doesn't match. have uploaded webservice openshift redhat coud on jboss 6 server. when running webservice on local glassfish server runs perfectly. android activity calls webservice public class webserviceactivity extends activity {

private static final string namespace = "http://services.com/"; private static final string url ="http://shopperspoint-a2zjava.rhcloud.com/shopperspoint/demowebservice?wsdl";  private static final string soap_action = "/"; private static final string method_name = "hello"; private textview lblresult;   @override public void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.main);      lblresult = (textview) findviewbyid(r.id.tv);      soapobject request = new soapobject(namespace, method_name);      request.addproperty("name","mahendra");     soapserializationenvelope envelope = new soapserializationenvelope(soapenvelope.ver11);      envelope.setoutputsoapobject(request);     httptransportse androidhttptransport = new httptransportse(url);     try {         androidhttptransport.call(soap_action, envelope);          //soapprimitive  resultsrequestsoap = (soapprimitive) envelope.getresponse();         // soapprimitive  resultsrequestsoap = (soapprimitive) envelope.getresponse();         soapobject resultsrequestsoap = (soapobject) envelope.bodyin;           lblresult.settext(resultsrequestsoap.tostring());         system.out.println("response::"+resultsrequestsoap.tostring());       } catch (exception e) {         system.out.println("error"+e);     }  } 

}


Comments