473,511 Members | 16,756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reading XML from Java

57 New Member
Hi I have an XML SOAP response which starts with the following XML:

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3. <soap:Body>
  4. <GetAppXmlResponse xmlns="http://***.***.gov.uk/***">
  5. <GetAppXmlResult>
  6. <Connector timestamp="9/26/2008 10:46:26 AM" xmlns="">
  7. <code>0</code>
  8. <message>Success</message>
  9. <getappxml>
  10. <![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  11. <Proposal>
  12. <SchemaVersion>1.1</SchemaVersion>
  13. <ApplicationHeader>Sample Header</ApplicationHeader>
  14.  
  15. //further nodes and elements
  16.  
  17. </Proposal>
  18. ]]>
  19. </getappxml>
  20. </Connector>
  21. </GetAppXmlResult>
  22. </GetAppXmlResponse>
  23. </soap:Body>
  24. </soap:Envelope>
Could somebody please explain to me how I access the Proposal node in java, so that I can create a new SOAP message out of it
Sep 26 '08 #1
2 1956
Dököll
2,364 Recognized Expert Top Contributor
Any errors with this one!

Tell us what happens when you run this bit of code.

In a bit!
Nov 18 '08 #2
jkmyoung
2,057 Recognized Expert Top Contributor
Which classes are you using on your webservice to receive the soap message?
Nov 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
3594
by: Sambit Basu | last post by:
I have a third-party jar file weblogic.jar. On my redhat system, I put it in my $JAVA_HOME/jre/lib/ext and call a class from anywhere by "java weblogic.Admin". It works just fine. I do the...
3
8406
by: Sivaraj G via .NET 247 | last post by:
We created a unicode file using java application. It usesmethods like writeUTF(), writeInt() of java.io.DataOutputStreamclass to write the content of the file. We are able to read datausing...
2
1305
by: See_Rock_City | last post by:
Hello All, I need some material for the reading room. Specifically, I'm interested in gaining a well-rounded education in regards to OOP and all its associations. I've gobbled up as much as...
8
2231
by: AndrewTK | last post by:
Hello, I'm trying to read data from a socket and I'm not seeing what I'm expecting.... it seems to skip the first line of data. I am new to Python and just trying to test what I can do with...
4
3460
by: Fazana | last post by:
I need help for reading a text file into in my java program. The file contains this information: ID# Student’s Answers --------------------------- 236499 TFTFTFTFFFFTFTFFFTF 643828...
1
2609
by: sunilkumar.r80 | last post by:
Hi I have a problem in reading a .xls file using java. I am using jakarta POI ApI for that it work fine for a 9000 rows contians 25 colums. But i need to read more than 25000 rows (in a single...
5
14968
blazedaces
by: blazedaces | last post by:
Ok, so you know my problem, java is running out of memory reading with SAX, the event-based xml parser intended more-so than DOM for extremely large files. I'll try to explain what I've been doing...
7
4533
by: tackleberi | last post by:
hi, im having some trouble reading a file into java and then storing it in an array here the code i have so far: import java.io.FileNotFoundException; import java.io.FileReader; import...
1
2887
by: CodeSeeker | last post by:
I have an application, which uses pop3 to read the messages from the mailbox, and it has been working fine for so many year. We recently have started changing this application to use java mail IMAP 4...
20
3707
by: cowboyrocks2009 | last post by:
Hi, I need help to automate my code to take data from input file. Also I need to create it as a function so that I can pass it to some other program. I am new to Java so having a bit limitation to...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4737
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.