public static String endPoint = "http://221.0.90.52:1080/shangde/CardInfo/WebService_CardInfo.asmx?WSDL";
String nameSpace = "http://tempuri.org/";
String methodName = "SaveBoolth";
// SOAP Action
String soapAction = "http://tempuri.org/SaveBoolth";
//1
SoapObject request = new SoapObject(nameSpace, methodName);
//2.
CryptoTools tools = new CryptoTools();
request.addProperty("phone", tools.getEncString(phone));
request.addProperty("timer", tools.getEncString(timer));
request.addProperty("xm", tools.getEncString(xm));
request.addProperty("xb", tools.getEncString(xb));
request.addProperty("mz", tools.getEncString(mz));
request.addProperty("cs", tools.getEncString(cs));
request.addProperty("sfzhm", tools.getEncString(sfzhm));
request.addProperty("qfjg", tools.getEncString(qfjg));
request.addProperty("yxqq", tools.getEncString(yxqq));
request.addProperty("yxqz", tools.getEncString(yxqz));
request.addProperty("xp", xp==null?null:xp);
request.addProperty("dz", tools.getEncString(dz));
request.addProperty("jjid", tools.getEncString(jjNum));
//3.
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.bodyOut = request;
envelope.dotNet=true;
//4
(new MarshalBase64()).register(envelope);
HttpTransportSE transport = new HttpTransportSE (endPoint);
transport.debug = true;
transport.call(soapAction, envelope);
SoapObject result = (SoapObject) envelope.bodyIn;
如上代码,运行到最后一行报错,用(SoapFault)envelope.bodyIn查看错误为:SoapFault-请求。--->无法将类型为"System.Net.FileWebRequest"的对象强制转换为类型"System.Net.FtpWebRequest"。faultacto:‘null’ detail:org.kxml2.kdom.Node@42042dc8
求解,急急急!!!