SOAPUI调用.NETSOAP服务成功,但在ksoap2 android中使用http 500失败
这就是服务方法 SOAPAction: 我在soap ui调用方面做得很好。对象us应该是LogInUser类的一个实例,它需要实现KVMSerizableSOAPUI调用.NETSOAP服务成功,但在ksoap2 android中使用http 500失败,android,soap,service,call,ksoap2,Android,Soap,Service,Call,Ksoap2,这就是服务方法 SOAPAction: 我在soap ui调用方面做得很好。对象us应该是LogInUser类的一个实例,它需要实现KVMSerizable 请查看以获得详细解释。很好地使用了最新版本的ksoap2 libThank,但official web与复杂类型无关,因此我在这里找到了它,在官方文档中,他们确实谈到了KVMSerializable。不管怎么说,你找到的教程做了几乎相同的事情。我很高兴你让它工作了。干杯 <?xml version="1.0" encoding="ut
请查看以获得详细解释。很好地使用了最新版本的ksoap2 libThank,但official web与复杂类型无关,因此我在这里找到了它,在官方文档中,他们确实谈到了KVMSerializable。不管怎么说,你找到的教程做了几乎相同的事情。我很高兴你让它工作了。干杯
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<LogInUser xmlns="http://tempuri.org/">
<us>
<UserName>string</UserName>
<Password>string</Password>
<CityName>string</CityName>
<DistrictOneName>string</DistrictOneName>
<DistrictTwoName>string</DistrictTwoName>
<DistrictThreeName>string</DistrictThreeName>
<BloodType>string</BloodType>
<Phone>string</Phone>
<Name>string</Name>
<Surname>string</Surname>
</us>
</LogInUser>
</soap:Body>
</soap:Envelope>
SoapObject request = new SoapObject(NAMESPACE, METHOD);
SoapObject user = new SoapObject(NAMESPACE, "us");
user.addProperty("UserName", us.UserName);
user.addProperty("Password", us.Password);
user.addProperty("CityName", "?");
user.addProperty("DistrictOneName","?");
user.addProperty("DistrictTwoName","?");
user.addProperty("DistrictThreeName", "?");
user.addProperty("BloodType", "?");
user.addProperty("Phone", "?");
user.addProperty("Name", "?");
user.addProperty("Surname", "?");
request.addSoapObject(user);
Log.d(TAG, request.toString());
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE transport = new HttpTransportSE(URL);
transport.call(SOAP_ACTION, envelope);