C# Android正在使用WCF.NET服务返回“;未找到命名空间为';http://www.w3.org/2005/08/addressing'
我有一个WCF.NETWebService,它正被Android应用程序使用。我们正在使用KSoap2库,通过搜索和寻找答案,我们已经尽了最大的努力 这是我们的Android代码:C# Android正在使用WCF.NET服务返回“;未找到命名空间为';http://www.w3.org/2005/08/addressing',c#,android,web-services,wcf,android-ksoap2,C#,Android,Web Services,Wcf,Android Ksoap2,我有一个WCF.NETWebService,它正被Android应用程序使用。我们正在使用KSoap2库,通过搜索和寻找答案,我们已经尽了最大的努力 这是我们的Android代码: static final String NAMESPACE = "https://services.ostara.com/StellarService/"; static final String URL = "https://services.ostara.com/StellarService/StellarSer
static final String NAMESPACE = "https://services.ostara.com/StellarService/";
static final String URL = "https://services.ostara.com/StellarService/StellarService.svc";
static final String SOAP_ACTION = "https://services.ostara.com/StellarService/getNextBagNumber";
static final String METHOD_NAME = "getNextBagNumber";
SoapObject soapObject = new SoapObject(NAMESPACE, METHOD_NAME);
PropertyInfo info = new PropertyInfo();
info.setName("apiKey");
info.setValue("16bb9027-4a49-4d24-899a-xxxxx");
info.setType(String.class);
soapObject.addProperty(info);
SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER12);
envelope.dotNet = true;
envelope.setOutputSoapObject(soapObject);
HttpTransportSE httpTransportSE = new HttpTransportSE(URL);
httpTransportSE.call(SOAP_ACTION, envelope);
SoapPrimitive soapPrimitive = (SoapPrimitive)envelope.getResponse();
想知道这里可能存在什么问题,为什么会出现以下错误:
找不到给定邮件的命名空间为“”的操作标头。您好,我遇到了相同的问题,您解决了吗?您好,我遇到了相同的问题,您解决了吗?