Take the 2-minute tour ×

I'd like some help in understanding how to send this XML within an android application. I have read that using the ksoap library is a way of doing this. I have tried tutorials but none of them seem to work for me; even the samples to download. Any help is appreciated.

POST /nrc/control_0 HTTP/1.1
User-Agent: Panasonic iOS VR-CP UPnP/2.0
SOAPACTION: "urn:panasonic-com:service:p00NetworkControl:1#X_SendKey"
Content-Length: 331

<u:X_SendKey xmlns:u="urn:panasonic-com:service:p00NetworkControl:1">
share|improve this question

1 Answer 1

Given below is the code used to make SOAP calls:

public String callService(String URL, String METHOD_NAME, String NAMESPACE,
        String SOAP_ACTION, String param) {
    String data = "";

    Log.v(webserviceadpater, " \n METHOD_NAME =  ---> " + METHOD_NAME
            + " <--- \n ");

    try {
        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
        request.addProperty("xml", param);
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(


        HttpTransportSE transportSE = new HttpTransportSE(URL);
        transportSE.debug = true;

        transportSE.call(SOAP_ACTION, envelope);

        SoapObject result = (SoapObject) envelope.bodyIn;

        for (int i = 0; i < result.getPropertyCount(); i++) {
            data = result.getProperty(i).toString();
            Log.v(webserviceadpater, "result = " + data);

    } catch (Exception e) {

    return data;
share|improve this answer

Your Answer


