Nesting properties inside a tag in Ksoap2

前端 未结 3 846
不知归路
不知归路 2020-12-22 05:26

Hi i want to make a request for soap using above soap xml



        
3条回答
  •  生来不讨喜
    2020-12-22 06:07

    try doing something like this,

    SoapObject request = new SoapObject(NAMESPACE,
                                METHOD_NAME);
    
                        request.addProperty("username", username);
                        request.addProperty("username", password);
    
                        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                                SoapEnvelope.VER11);
                        envelope.dotNet = true;
                        envelope.setOutputSoapObject(request);
                        HttpTransportSE androidHttpTransport = new HttpTransportSE(
                                URL);
                    try {
                            androidHttpTransport.call(SOAP_ACTION, envelope);
                        } catch (IOException ioex) {
                                ioex.printStackTrace();
                        }
    

提交回复
热议问题