私のSOAPリクエストフォーマットは次のとおりです。
<authentication>
<LoginID>string</LoginID>
<Password>string</Password>
</authentication>
<Id>int</Id>
<Str>string</Str>
Loginid、pass、id、strを入力として渡す必要があります。したがって、次のようにaddpropertyを介してこれを設定しています。
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
PropertyInfo usrid =new PropertyInfo();
usrid.setName("LoginID");
usrid.setValue(userid);
usrid.setType(String.class);
request.addProperty(usrid);
//
PropertyInfo pass =new PropertyInfo();
pass.setName("Password");
pass.setValue(password);
pass.setType(String.class);
request.addProperty(pass);
PropertyInfo rote =new PropertyInfo();
rote.setName("Id");
rote.setValue(4114616);
rote.setType(int.class);
request.addProperty(rote);
//
PropertyInfo dte =new PropertyInfo();
dte.setName("Str");
dte.setValue(date);
dte.setType(String.class);
request.addProperty(dte);
これは私が設定している正しい方法ですか?エラーが発生したため:
SoapFault - faultcode: 'soap:Server'
faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to
process request. ---> System.ArgumentNullException: String reference not set to an
instance of a String.
誰でも助けてください。