I don't know which package you use to parse the
soap. I use Jakata AXIS web service which adopt Jakata SOAP. I wrote a test code
which it print the right information.
import javax.xml.soap.*; import java.util.Iterator; import org.apache.axis.message.SOAPEnvelope; import javax.xml.soap.SOAPHeader; import java.io.*; import org.xml.sax.*;
public class TestSoap { public TestSoap() { } public static void main (String arg[]) {
String soap= "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "<s:Header>" + "<TransactionID s:mustUnderstand=\"1\" xmlns:mm7=\"http://www.3gpp.org/MMS/Rel5/MM7\">vas00001-sub</TransactionID>" + "</s:Header>" + "<s:Body>" + "<SubmitReq xmlns=\"urn:T-MobileAM\" orderDate=\"2004-09-01\">" + "<MM7Version>5.3.0</MM7Version>" + "</SubmitReq>" + "</s:Body>" + "</s:Envelope>"; try { SOAPEnvelope env = new SOAPEnvelope (new StringBufferInputStream (soap));
SOAPHeader soaph = env.getHeader (); Iterator soape = soaph.getChildElements (); while(soape.hasNext()) { SOAPElement e = (SOAPElement) soape.next(); Name name = e.getElementName(); System.out.println(name.getLocalName() + ":" + e.getValue()); } } catch (SOAPException ex) { } catch (SAXException ex) { } } }
|
Title: Message
- First row under header return null "FIORAMORE, François"
- Re: First row under header return nul... Paul Hsu
- Re: First row under header return... Paul Hsu
- RE: First row under header return nul... "FIORAMORE, François"
- Re: First row under header return... Paul Hsu
- Re: First row under header return... Scott Nichol
- RE: First row under header return nul... "FIORAMORE, François"
- RE: First row under header return nul... "FIORAMORE, François"