Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27949

Parsing Soap Response in java

Newsgroups comp.lang.java.programmer
Date 2014-04-04 03:07 -0700
Message-ID <bd5fa8aa-5b67-4999-adb3-e45be51f3e11@googlegroups.com> (permalink)
Subject Parsing Soap Response in java
From emmna.90@gmail.com

Show all headers | View raw


Hi,i need to parse a soap response from an xml fileb in java  to get some specific values of it .For example ,i need to have the value v1 of string parameter in operationname1 and v2 of string parameter of operationname2.i tried with some tuto in the net but it doesn't work for me  .I will be very thankful if you can help me .
Here is the soap response.xml.


<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="...">
<soapenv:Body>
<ns1:CommandResponseData xmlns:ns1="...">
         <ns1:CommandResult>
            <ns1:TransactionResult>
              <ns1:OperationResult>
              <ns1:Operation name="operationname1" modifier="modify1">
                     <ns1:ParameterList>
                      <ns1:StringParameter name="n1">v1</ns1:StringParameter>
                      <ns1:DateTimeParametername="d1">value</ns1:DateTimeParameter>                   
                </ns1:ParameterList>
		</ns1:Operation>

                  </ns1:Operation>
            <ns1:Operation name="operationname2" modifier="modify2">
                     <ns1:ParameterList>
     <ns1:StringParameter name="c1">v2</ns1:StringParameter>                      
                     </ns1:ParameterList>
		</ns1:Operation>
            </ns1:OperationResult>
        </ns1:TransactionResult>
    </ns1:CommandResult>
 </ns1:CommandResponseData>
   </soapenv:Body>
</soapenv:Envelope>

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Parsing Soap Response in java emmna.90@gmail.com - 2014-04-04 03:07 -0700
  Re: Parsing Soap Response in java Jeff Higgins <jeff@invalid.invalid> - 2014-04-04 15:20 -0400
  Re: Parsing Soap Response in java Roedy Green <see_website@mindprod.com.invalid> - 2014-04-04 15:28 -0700
  Re: Parsing Soap Response in java Arne Vajhøj <arne@vajhoej.dk> - 2014-04-04 22:50 -0400
    Re: Parsing Soap Response in java Emna Sabri <emmna.90@gmail.com> - 2014-04-11 04:32 -0700
      Re: Parsing Soap Response in java Arne Vajhøj <arne@vajhoej.dk> - 2014-04-11 21:03 -0400
  Re: Parsing Soap Response in java Silvio <silvio@internet.com> - 2014-04-11 13:49 +0200
    Re: Parsing Soap Response in java Emna Sabri <emmna.90@gmail.com> - 2014-04-11 05:31 -0700
      Re: Parsing Soap Response in java Silvio <silvio@internet.com> - 2014-04-11 18:05 +0200
      Re: Parsing Soap Response in java Arne Vajhøj <arne@vajhoej.dk> - 2014-04-11 21:05 -0400
        Re: Parsing Soap Response in java Emna Sabri <emmna.90@gmail.com> - 2014-04-17 13:42 -0700
  Re: Parsing Soap Response in java lipska the kat <lipskathekat@example.com> - 2014-04-12 09:56 +0100

csiph-web