String ActionReasonID=null; String SPID=null; String SPServiceID=null; String AccessMode=null; String FeatureStr=null; //---------------------- String Send_Address_DeviceType=null; String Send_Address_DeviceID=null; String Dest_Address_DeviceType=null; String Dest_Address_DeviceID=null; String FeeUser_ID_UserIDType=null; String FeeUser_ID_MSISDN=null; String FeeUser_ID_PseudoCode=null; String DestUser_ID_UserIDType=null; String DestUser_ID_MSISDN=null; String DestUser_ID_PseudoCode=null; //读取header信息; Element header=(Element)XPath.selectSingleNode(root,"/SOAP-ENV:Envelope/SOAP-ENV:Header"); List ns=header.getChildren(); for(Iterator i=ns.iterator();i.hasNext();){ Object n=i.next(); if(n instanceof Element){ Element e=(Element)n; if(e.getName().equals("TransactionID")){ TransactionID=e.getTextNormalize(); } } } //读取body信息; Element body=(Element)XPath.selectSingleNode(root,"/SOAP-ENV:Envelope/SOAP-ENV:Body"); ns=body.getChildren(); for(Iterator i=ns.iterator();i.hasNext();){ Object n=i.next(); if(n instanceof Element){ Element e=(Element)n; if(e.getName().equals("SyncOrderRelationReq")){ SyncOrderRelationReq=e; } } }
//取得数据包的所有孩子。 if(SyncOrderRelationReq!=null){ ns=SyncOrderRelationReq.getChildren(); for(Iterator i=ns.iterator();i.hasNext();){ Object n=i.next(); if(n instanceof Element){ Element e=(Element)n; //------------------------------------ if(e.getName().equals("Send_Address")){ Send_Address=e; } if(e.getName().equals("Dest_Address")){ Dest_Address=e; } if(e.getName().equals("FeeUser_ID")){ FeeUser_ID=e; } if(e.getName().equals("DestUser_ID")){ DestUser_ID=e; }
上一篇:SP 短信开发-PROVISION接口实现1
下一篇:SP 短信开发-PROVISION接口实现-反向取消实例代码
|