JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
Client client = dcf.createClient(url);
Object[] objects =new Object[0];
//請(qǐng)求返回值
objects = client.invoke("請(qǐng)求地址", "請(qǐng)求參數(shù)");
//將獲取的XML數(shù)組轉(zhuǎn)換為String
String XMLString = objects[0].toString();
//將String字符串解析為XML格式
Document document = DocumentHelper.parseText(XMLString);
Element root = document.getRootElement();
//獲取需要解析的數(shù)據(jù)XML結(jié)點(diǎn)屬性
String PBCDate = root.elementText("XML標(biāo)簽結(jié)點(diǎn)名稱");