E
emmna.90
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">
<ns1arameterList>
<ns1:StringParameter name="n1">v1</ns1:StringParameter>
<ns1ateTimeParametername="d1">value</ns1ateTimeParameter>
</ns1arameterList>
</ns1:Operation>
</ns1:Operation>
<ns1:Operation name="operationname2" modifier="modify2">
<ns1arameterList>
<ns1:StringParameter name="c1">v2</ns1:StringParameter>
</ns1arameterList>
</ns1:Operation>
</ns1:OperationResult>
</ns1:TransactionResult>
</ns1:CommandResult>
</ns1:CommandResponseData>
</soapenv:Body>
</soapenv:Envelope>
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">
<ns1arameterList>
<ns1:StringParameter name="n1">v1</ns1:StringParameter>
<ns1ateTimeParametername="d1">value</ns1ateTimeParameter>
</ns1arameterList>
</ns1:Operation>
</ns1:Operation>
<ns1:Operation name="operationname2" modifier="modify2">
<ns1arameterList>
<ns1:StringParameter name="c1">v2</ns1:StringParameter>
</ns1arameterList>
</ns1:Operation>
</ns1:OperationResult>
</ns1:TransactionResult>
</ns1:CommandResult>
</ns1:CommandResponseData>
</soapenv:Body>
</soapenv:Envelope>