use this:

Parameter("name", Element.class, root, Constants.NS_URI_LITERAL_XML))
Prasad

-----Original Message-----
From: Andreas Ullmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 12:26 PM
To: [EMAIL PROTECTED]
Subject: How to pass an Element as an parameter


Hi guys,

the same old question as asked thousend times before. Anyway I still ask
it again.

I want to pass an Element as an parameter to a method. Passing String is
simple done:
      params.addElement(new Parameter("request", String.class,request,
Constants.NS_URI_SOAP_ENC));

But I want to pass an Element.

I _dont_ want to use a base64 encoding and i _dont_ want to build a
String. Is there a way to pass an element in the form:
      params.addElement(new Parameter("request",   Element.class  ,
Constants.NS_URI_SOAP_ENC)); ???

If this doesnt work, is there a good implementation of a DOMSerializer,
which automatically casts a DOM tree to a String?

Thx for your efforts,

 Andreas Ullmann

--
[EMAIL PROTECTED]

MATHEMA AG
Nägelsbachstraße 25 b
91052 E r l a n g e n
Telefon 09131/8903-0
Telefax 09131/8903-55
http://www.mathema.de

Reply via email to