webserive专题

HttpClient对webserive测试

原文转自:https://blog.csdn.net/luozhuwang/article/details/21242487 继上一篇SoapUI对webservice进行功能测试,补充用httpclient对webservice进行测试,将返回的数据写到xml中便于查看 [java]  view plain copy @Test      public void test1(

解析webserive的返回

String[] value = message.split("entry=");String[] value2=value[1].toString().split("\\;\\}");String[] status = value2[0].split(";");String[] status1=status[1].split("value=");String xmlStr=status1[1]