Hi,
Here is a bit of code I'm using to upload pictures to asmx web service,
Client side:
SoapObject request = new SoapObject("http://tempuri.org/", "setPicture");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);
envelope.dotNet = true;
PropertyInfo prop = new PropertyInfo();
prop.setName("base64");
prop.setValue(base64);
prop.setType(String.class);
request.addProperty(prop);
prop = new PropertyInfo();
prop.setName("fileName");
prop.setValue(fileName);
prop.setType(String.class);
request.addProperty(prop);
HttpTransportSE androidHttpTransport = new HttpTransportSE("http://192.168.30.211:8080/WS/Service1.asmx", WebServiceHelper.WS_REQUEST_TIMEOUT);
try {
androidHttpTransport.call("http://tempuri.org/setPicture", envelope);
envelope.getResponse();
} catch (final Exception e) {
error = true;
}
Server side:
<WebMethod()> _
Public Sub setPicture(base64 As XmlNode, fileName As XmlNode)
End Sub
Hope it'll help you,