android kxml2,android - SoapFault - faultcode: 's:Client' faultstring: 'Error code 2006' faultactor:...

I am getting this error again and again while trying to get the response from the WSDL Webservices.

I am using it like this:

//Create request

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);

//Property which holds input parameters

PropertyInfo celsiusPI = new PropertyInfo();

celsiusPI.setName("Driver.Token");

celsiusPI.setType(PropertyInfo.STRING_CLASS);

celsiusPI.setValue("c1f40074-4bf8-4159-ba15-e799e9efad9e");

PropertyInfo latitude = new PropertyInfo();

latitude.setName("Latitude");

latitude.setType(Double.class);

latitude.setValue(28.5192);

PropertyInfo longitude = new PropertyInfo();

longitude.setName("Longitude");

longitude.setType(Double.class);

longitude.setValue(77.2130);

//Add the property to request object

request.addProperty(celsiusPI);

request.addProperty(latitude);

request.addProperty(longitude);

//Create envelope

SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(

SoapEnvelope.VER11);

envelope.dotNet = true;

//Set output SOAP object

envelope.setOutputSoapObject(request);

//Create HTTP call object

HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);

try {

//Involve web service

androidHttpTransport.call(SOAP_ACTION, envelope);

//Get the response

//SoapPrimitive response = (SoapPrimitive) envelope.getResponse();

Object response = envelope.getResponse();

//Assign it to fahren static variable

fahren = response.toString();

Log.d("Response Message", fahren);

} catch (Exception e) {

e.getMessage();

Log.d("Response Message--------------------", e.getMessage());

}

}

Getting this Exception : SoapFault - faultcode: 's:Client' faultstring: 'Error code 2006' faultactor: 'null' detail: org.kxml2.kdom.Node

This is very much frustrating. Help me if anybody can!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值