不一样的思想~~ http://shop34712791.taobao.com MSN:wins0910@hotmail.com

利用http协议走soap请求ws服务(二)~

上一篇 / 下一篇  2007-08-02 09:05:37 / 个人分类:白盒测试

package autotest;

import com.gsta.neva2.config.*;
import java.lang.*;
import java.util.Properties;

public class ReadXml {

 public Configure myConfigure = new Configure();
 String filepath=null;

 public ReadXml(String path){
  this.filepath =path;
        System.out.println("filepath:"+filepath);
  
        try{
   myConfigure.parse(filepath);
  }catch(ConfigException ex){
   System.out.println(ex.getMessage());
  }
  
 }
 
 public String getItem(String tPath,String tNodeName){
  
  
  String tReturn="";
  
  try{
   tReturn = myConfigure.getItemValue(tPath, tNodeName);
  }catch(ConfigException ex){
   System.out.println(ex.getMessage());
  }
  return tReturn;
 }
 public String getItemprop(String tfieldNode,String tfieldValue){
  
  
  String tReturn="";
  
  try{
   tReturn = myConfigure.getItemProp(tfieldNode,tfieldValue);
  }catch(ConfigException ex){
   System.out.println(ex.getMessage());
  }
  return tReturn;
 }

}


TAG: 白盒测试

 

评分:0

我来说两句

Open Toolbar