WCF复杂Web服务访问Android
我在Android中访问复杂的WCF web服务时遇到问题。我的问题详情如下: 对WCF Web服务的典型请求具有以下XML:WCF复杂Web服务访问Android,android,wcf,Android,Wcf,我在Android中访问复杂的WCF web服务时遇到问题。我的问题详情如下: 对WCF Web服务的典型请求具有以下XML: http://tempuri.org/manojService/MethodName 基础知识 无论什么 28.5 0 添加 我使用简单的SOAP概念,使用KSoap库登录,如下所示: try { StringBuilder sb = null; SoapObject request = new SoapObject("http://temp
http://tempuri.org/manojService/MethodName
基础知识
无论什么
28.5
0
添加
我使用简单的SOAP概念,使用KSoap库登录,如下所示:
try {
StringBuilder sb = null;
SoapObject request = new SoapObject("http://tempuri.org/",
"methodName");
request.addProperty("name", "aaaa");
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(request);
HttpTransportSE androidHttpTransport = new HttpTransportSE( "Service urls");
androidHttpTransport.call("http://tempuri.org/manojService/MethodName", envelope);
Object result = (Object) envelope.getResponse();
String resultData = result.toString();
System.out.println("result Data :-" + resultData);
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
System.out.println("error is occured :-" + e.getMessage());
}
如果您有任何在soap中发送数组类型数据的解决方案,请让我知道。您的实际问题可能在最后一句中,但还不完全清楚实际问题是什么,您是如何解决的,以及您在哪里遇到了困难?实际上,希望根据我上面的xml请求访问WCF Web服务。最近我遇到了以下错误:对象引用未设置为对象的实例。您最好更新问题,而不是进行注释。如果你的编辑是实质性的,这将冲击你的问题,引起人们的注意。请确保您的问题是具体的,并告诉我们如何解决问题。您可以发布您的WCF服务是什么样子的吗?为它配置了哪些绑定来帮助您