i also have this problem - has anybody successfully implemented this?
The web service does get called but the parameters are received as 'void'.
My web service is programmed in .net(c#) with the KSOAP calling it.
Any help, much appreciated and i apologise for hijacking racsus's thread
Thanks,
Alex
KSOAP code
Code:
HttpTransport transport=null;
System.err.println("2"+ url);
//error =error +"****" +"2";
try{
//create soap object
SoapObject SO = new SoapObject("http://www.rim.net/",this.method);
//add properties
SO.addProperty("Lat",this.lat);
SO.addProperty("Lon",this.lon);
SO.addProperty("Radius",this.prop1);
SO.addProperty("Pin",this.prop2);
System.out.println(SO.toString());
//create soap envelope
SoapSerializationEnvelope en = new SoapSerializationEnvelope(SoapEnvelope.VER11);
//add soapobject to envelope
System.err.println("3");
// error =error +"****" +"3";
en.setOutputSoapObject(SO);
en.dotNet = true;
en.encodingStyle = SoapSerializationEnvelope.ENC;
System.err.println("4" + en.toString());
//error =error + "****" +en.getResponse();
//create transport to server
//transport = new HttpTransport(_resources.getString(SERVER_URL));
transport = new HttpTransport(url);
transport.debug = true;
System.err.println("5");
// error =error +"****" +"5";
// error =error +"****" + transport.requestDump;
//use the transport to call a web service method and pass in the enveople
transport.call("http://rim.net/"+this.method, en); //format to call web service - uurn:PriceService#getPrice
System.err.println("6"+en.getResponse());
// error =error + "****" +transport.responseDump;
responseContent = transport.responseDump.toString();
web service sample soap request
Code:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetClientData xmlns="http://rim.net/">
<Lat>string</Lat>
<Lon>string</Lon>
<Radius>string</Radius>
<Pin>string</Pin>
</GetClientData>
</soap:Body>
</soap:Envelope>