using KSOAP2 in accessing .net webservice
I am having trouble accessing a .net web service using soap service with package ksoap2.
The service url is
http://dsm.decisionality.com/MedicalDemo/MIB001FeelingUnwellservice.asmx
the location of wsdl file is
http://dsm.decisionality.com/MedicalDemo/MIB001FeelingUnwellservice.wsdl
i am trying to call the service GetVersion........i am using netbeans 5.5.1, sun java WTK 2.5 beta 2 in windows XP professional. I am trying to access by the following code ...
StringBuffer stringBuffer =new StringBuffer();
String method ="GetVersion ";
String url ="http://dsm.decisionality.com/MedicalDemo/MIB001FeelingUnwellservice.asmx";
// Create the SoapCall
SoapObject client =new SoapObject("urn:decisionality.com:webservices", method);
HttpTransport transport =new HttpTransport(url);
transport.setXmlVersionTag("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
transport.debug =true;
// Creating the Soap Envelope
SoapSerializationEnvelope envelope =new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet =true;
envelope.bodyOut = client;
// Call the WebService
try
{
// namespace / method
transport.call("urn:decisionality.com:webservices/GetVersion", envelope);
}
catch (Exception io)
{
System.err.println(transport.requestDump);
System.err.println(transport.responseDump);
System.err.println(io);
return ;
}
// Format the Result
try{
String result = envelope.getResponse().toString();
stringBuffer.append("Result: " + result);
System.out.println(stringBuffer.toString());
}catch(Exception eee){
System.out.println(eee.toString());
}
please help me in this ........... my project is stuck for this thing... please some one help ...........
Riyad

