well that was for parsing xml that comes from the web service that I have classes with variables set up for, and then I take the xml response and populate the class with it. Thats why I was thinking that is how I should do this, just make a class and populate its variables with that response feed, but Im not sure it will work like I think it might...
Here is an example of the xml your talking about:
thats xml that I can either read or write already, because I have a measurementProject class that I morph the xml into
but I have no way to manipulate the response body I get from
At least not yet. I was hoping there would be an easy command I could use to just pull that ID out without having to come up with clsases to hold the variables and such. I need to look into that actually.
========================BELOW THIS IS A VERY DETAILED EXPLANATION SO DONT FEEL OBLIGATED TO READ IT IF YOU DONT WANT TO==================================================
edit - here is a bigger view of the problem - I have a
jsf page where a user adds a project and a device belonging to that project to the web service. I have the methods that write the project to the project collection, and I have the method to write the device to the device collection.
but the deviceID also needs to be added to the project metadata like this:
The problem is, the deviceID is automatically assigned by the client upon the device's creation. So upon hitting the submit button, I need to first add the device to the device collection, then pull the newly generated deviceID from that device (the ID the client automatically assigns) and then use that deviceID in the creation of the newproject, so it shows that the dvice belongs to the project.
So I would have a jsf page looking like this:
Project Name: _______________
Device Name:________________
SUBMIT
Then the user hits submit, and the first thing is that the device is added to the deviceCollection:
Then behind the scenes I need to take that data and get the deviceID (in this case device), and use that, along with the project name the user inputs to create a new project and add it to the project collection:
notice how this new project has a space for deviceId, and it is the ID of the device created at the same time as the project.
This all has to be done through one submit button lol.
Im very close already, I mean I can add a project and device at the same time, to their respective collections, but the project does not have the deviceId there in its metadata, rather the above project ends up looking like:
I thnk that pretty much covers everything lol