通过激励
http://www.coderanch.com/t/640002/Web-Services/java/Error-parsing-SOAP-response-message编写方法
private static MmsResponse getMmsResponse(SOAPMessage response) throws SOAPException {
MmsResponse mmsResponse = new MmsResponse();
Iterator itr=response.getSOAPBody().getChildElements();
while (itr.hasNext()) {
Node node=(Node)itr.next();
if (node.getNodeType()==Node.ELEMENT_NODE) {
Element ele=(Element)node;
switch (ele.getNodeName()) {
case "MM7Version":
mmsResponse.setMm7Version(ele.getTextContent());
break;
case "MessageID":
mmsResponse.setMessageID(ele.getTextContent());
break;
case "Status":
NodeList statusNodeList = ele.getChildNodes();
Status status = new Status();
for(int i=0;i
E