try {
    String endpoint = "http://127.0.0.1:8080/services/WorkflowService";
    Service service = new org.apache.axis.client.Service();
    Call call = null;
    call = (Call) service.createCall();
    call.setOperationName(new javax.xml.namespace.QName(endpoint,"getDeptList"));
    call.setTargetEndpointAddress(new java.net.URL(endpoint));
    String totalXml=creatGetDeptXml("230991027910");
    xmlStr=(String)call.invoke(new Object[]{totalXml});
 //   System.out.print(xmlStr);
    ParseXMLOperation px=new ParseXMLOperation();
    xmlBody=px.parseXMLOne(xmlStr,"BODY");
    xmlBody=px.xmlBodyDecrypt(xmlBody);
    list=px.parseDeptXMLMore(xmlBody);

catch (Exception ex) 
{
    ex.printStackTrace();
}
直接在ide开发环境中运行可以,但是通过html包含applet就不能访问了

解决方案 »

  1.   

    to  interpb
    谢谢,修改策略文件是指服务器还是客户端的??
      

  2.   

    谢谢,这个问题解决了,但是又遇到一个问题,就是数据加密的问题java.security.NoSuchAlgorithmException: Cannot find any provider supporting DES/ECB/PKCS5Padding    public static DESTools getInstance(byte key[])
            throws NoSuchPaddingException, NoSuchAlgorithmException
        {
            DESTools des = new DESTools();
            if(des.key == null)
            {
                SecretKeySpec spec = new SecretKeySpec(key, "DES");
                des.key = spec;
            }
            des.cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
            return des;
        }
    不知道怎么解决,谢谢
      

  3.   

    DESTools 的包没有import 进来.