| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 927 人关注过本帖
标题:着急快帮帮忙这个问题我一直不能解决
只看楼主 加入收藏
lptnyy
Rank: 2
等 级:论坛游民
帖 子:35
专家分:42
注 册:2011-6-6
结帖率:0
收藏
 问题点数:0 回复次数:0 
着急快帮帮忙这个问题我一直不能解决
12-25 02:03:46.419: W/System.err(761): org.xmlpull.v1.XmlPullParserException: expected: END_TAG {http://schemas.}Body (position:END_TAG </{http://schemas.}soap:Fault>@1:331 in )

package service;

import

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;
import org.xmlpull.v1.XmlPullParserException;

public class WebServiceDao {

    // 名空间
    private static final String NAMESPACE = "http://service.

    // 网址
    private static String URL = "http://192.168.5.119:8080/ihuws/cellocationWs";

    // 方法名
    private static final String METHOD_NAME = "getCelCommand";

    // SOAPACTION
    private static String SOAP_ACTION = "http://service.

    public String getServiceString(String cs1, String cs2, String cs3) throws IOException, XmlPullParserException {
        SoapObject rpc = new SoapObject(NAMESPACE, METHOD_NAME);
        rpc.addProperty("opcode","123");
        rpc.addProperty("pswd","123");
        rpc.addProperty("imsi","123");
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.bodyOut = rpc;
        envelope.dotNet = true;
        envelope.setOutputSoapObject(rpc);
        HttpTransportSE ht = new HttpTransportSE(URL);
        ht.debug = true;
        ht.call(SOAP_ACTION, envelope);
        SoapObject detail =(SoapObject) envelope.getResponse();
        return detail.toString();
    }

}


传参数就报错 不传 就能调用
搜索更多相关主题的帖子: position expected service package import 
2012-12-25 10:09
快速回复:着急快帮帮忙这个问题我一直不能解决
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.039934 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved