473,795 Members | 2,924 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 1970
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
3618
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 same on my Mandrake system. But the system complains with "java.lang.NoClassDefFoundError: weblogic/Admin" exception. I put it in (say) /export/workarea/classes and added "/export/workarea/classes/weblogic.jar" explicitly in my class path.
3
8438
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 java.io.DataInputStream.readUTF() method. It's workingwell in java environment. When we tried to read the above unicode file in .net environment.We received junk content not the original content. Actually we tried a sample program in c# and...
2
1325
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 I can about C# and the tactical aspects of the language and can hack together a respectable attempt at a functional, working program but I feel that, in order to move to the next stage of professional development, I need more thoery.
8
2245
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 it... and it's not looking pretty. I have some Python code:
4
3477
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 TFTFTTTTTF FTFTFTTF 917057 FTF FTTTFFFTF FTFTFT 656565 FTF FTFTFTF TTFT TTT
1
2633
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 sheet) It shows the message " java.lang.OutOfMemoryError: Java heap space" so can any one help me in this time Thanks
5
14992
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 and why I have to do it. Hopefully someone has a suggestion... Alright, so I'm using a gps-simulation program that outputs gps data, like longitude, lattitude, altitude, etc. (hundreds of terms, these are just the well known ones). In the newer...
7
4568
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 java.util.Scanner; import javax.swing.JOptionPane; public class samplecode {
1
2936
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 instead of Pop3. Primary reason for that :- Is we want to better meet out SLA, so we have decided to go with the 2 instances of this application, and hence decided to use IMAP4 to concurrently accessing the mailboxes via IMAP4. My issues:- Now...
20
3760
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 do this. My tab delimited Input File looks like this:- 21 p 13e 0 62 1 580001 andrew -14.53 -13.95 0 0 21 p 13d 63 124 580002 1160001 andrew -13.95 -13.37 0 0 21 p 12g 311 364 2900000 3385714 john -11.63 -11.14 0 0 21 q 11.1a 1274 1321...
0
9519
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7541
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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 we have to send another system
2
3727
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.