Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing this soap message

Status
Not open for further replies.

Jefhandle

Technical User
Mar 9, 2005
69
DE
Hi,
In a client code I become a soap message from a server. There are Informations which should be retrieved like ID, IsTemplate, description etc.
Is there a way to do that in Java and not work with string Tokenizer etc?
Here is a sample of the soap body message:
<SOAP-ENV:Body>
...............


<ts:response>
<ts:factory>


<ts:products>

<ts:status>
<ts:code>0x00000000</ts:code>
<ets:description>Success</ts:description>
</ts:status>
<ts:product1>
<ts:Description>This xyxyx </ts:Description>

<ts:ID>{6E8EDC33-C8DA-49DE-A865-5F49BF96E029}</ts:ID>
<ts:IsTemplate>true</ts:IsTemplate>

</ts:productxyx>



<ts:product2>
<ts:Description>This xyxyx </ts:Description>

<ts:ID>{6E8EDC33-C8DA-49DE-A865-5F49BF96E029}</ts:ID>
<ts:IsTemplate>true</ts:IsTemplate>

</ts:product1>




</ts:response>


</ts:products>
</ts:factory>


</SOAP-ENV:Body>













Thanks for any help
 
(There are some mistakes in the first posting.Once again without mistakes)

Hi,
In a client code I become a soap message from a server. There are Informations which should be retrieved like ID, IsTemplate, description etc.
Is there a way to do that in Java and not work with string Tokenizer etc?
Here is a sample of the soap body message:
<SOAP-ENV:Body>
...............


<ts:response>
<ts:factory>


<ts:products>

<ts:status>
<ts:code>0x00000000</ts:code>
<ets:description>Success</ts:description>
</ts:status>
<ts:product1>
<ts:Description>This xyxyx </ts:Description>

<ts:ID>{6E8EDC33-C8DA-49DE-A865-5F49BF96E029}</ts:ID>
<ts:IsTemplate>true</ts:IsTemplate>

</ts:product1>



<ts:product2>
<ts:Description>This xyxyx </ts:Description>

<ts:ID>{6E8EDC33-C8DA-49DE-A865-5F49BF96E029}</ts:ID>
<ts:IsTemplate>true</ts:IsTemplate>

</ts:product2>




</ts:response>


</ts:products>
</ts:factory>


</SOAP-ENV:Body>



Thanks for any help
 
You should post this in the Java forum, this one is intended for J2EE questions.

Anyway, you can take a look at Axis

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top