Andrew,

I'd like to write a webservice that receives a complete XML File in a SOAP
Body and writes it into a database.
What possibilities do I have to do this?
I thought about parsing the XML Document into a DOM-Object and give it to
the axis serializer in the client....on the web service side I would get a
DOM-Object from the axis deserializer, which I can use for databases'
writing operations.

My problem now is, that I only know how to use axis' serializer/deserializer
with String-objects, not with DOM-Objects (from class dom.Document).
I don't want to create mappings or any additional stuff, I'd just like to
use the standard object types from axis.

Do you think that the only possibility is to pass the xml document as a huge
String?

Thanks!!
Mark.

Ps sorry about my bad English....still learning :)



 -----Original Message-----
From:   Andrew Vardeman [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, May 14, 2002 11:45 AM
To:     [EMAIL PROTECTED]
Subject:        Re: object types for autom. serialization

Mark,

Do you have control of the client and the service?  It seems like the only
part of a dom.Document you might want to pass that you couldn't pass
literally is the <?xml version = "1.0"?> declaration, which would make the
SOAP message invalid.  If this isn't a concern, why not just write a
messaging client that sends the text representation of the whole DOM as the
SOAPBody and extract the whole thing on the other end with a messaging
service?

Andrew

At 11:19 AM 5/14/2002 -0700, you wrote:
>Hi!
>
>Where can I find a documentation of data-/obejct- types axis' serializer
can
>handle?
>
>Actually I am looking for a way to pass a complete parsed XML-Document from
>a client to a web service through axis. It does not matter to me whether I
>have to put it in an array first or whether I can pass it as DOM-Object
>(dom.Document) as long as I can use the standard axis serializer/des. .
>
>Any solutions?
>Thanks in advance!!!
>Mark.


Reply via email to