Hi

[email protected] wrote:
> See Thread at: http://www.techienuggets.com/Detail?tx=106565 Posted
> on behalf of a User
> 
> HI Werner and thank you very much for your response,
> 
> Actually in my application(Client-Server),  we have a GUI interface
> where the user will enter a name of the method he wants to invoke on
> the server and the Host and port of the that server and attach to it
> an XML file which represent all parameters of the method he wants to
> invoke on that server, so the XML file contains a representation of
> objects and arguments of that method. Example: Let say user want to
> invoke method called getUserPreference(Person obj, String name) This
> method have to parameters one type object the second is a String.

> So
> the XML file will have a both parameters and in the Backend, I have
> to Unmarshall the XML file or serialize the XML file to get all
> objects so that will invoke the method with given parameters in tha
> XML file
> 
> The user will not enter any mapping file ...
That is correct, as the user only enters data which will be sent from
the client to the server by the means of an XML payload. That's fine.

>, so only thing I have is
> that XML file, 
Wrong. At the server process, when you receive the XML from the client,
you will be using Castor XML for unmarshalling. There's absolutely no
reason as to why you cannot use a mapping file in this context.

my question is there a solution to get Unmarshall the
> XML file without any mapping file ? (with mapping file things are
> much easier) I thought of using DOM and traverse the tree after to
> obtain Nodes but want to see what other will suggest specially those
> that have more experience with Castor. Any idea ?
> 
> Thanks again for your help and responses,
> 
> Best Regards, Ghania
> 
> 
> In Response To:
> 
> Hi Every one,
> 
> I'm new to Castor, and I'm working on Java project that will have an
> XML file as an entry, the XML file will represent all Objetcs that
> will be used as Parameter to call method. I did try to write a simple
> XML file that represent one Object and did Unmarshall it and got the
> Object. But when the XML file is representing multiples objetcs, it's
> not working. My question is how can get all objects from the XML file
> using Castor ? Please if you have some link or example where I can
> follow and thank you very much for your help and response,
> 
> Best Regards, Ghania
> 
> ---------------------------------------------------------------------
>  To unsubscribe from this list, please visit:
> 
> http://xircles.codehaus.org/manage_email
> 
> 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to