You can provide org.w3c.dom.Element[] like this:
DOMImplementationImpl DOM = new DOMImplementationImpl();
DocumentType docType = DOM.createDocumentType("test", "",
"test.dtd");
Document doc = new DocumentImpl(docType);
Element root = doc.createElement("detail-name");
Element node = (Element)doc.createElement("detail-element");
String keyName = (String)iter.next();
node.setAttribute("detail-attr", "attr-value");
node.setAttribute("detail-attr", "attr-value");
root.appendChild(node);
this.setFaultDetail(new Element[] {root});
I hope it helps....
Ransel L�pez, Web Services Developer
Time Industrial, Inc.
An Outsourced Contractor Time and Cost Tracking Service.
-----------------------------------------------------------------------------------------
tel: 780.413.1521 fax: 780.413.0474
http://www.TimeIndustrial.com
-----------------------------------------------------------------------------------------
This message and attached files, if any, is (are) intended only for the addressee(s)
and may
contain privileged or confidential information. Any unauthorized disclosure is
strictly prohibited.
If destined to our legal counsel, this transmission is privileged communication as
between an
attorney and its client.
If you have received this message in error, please notify us immediately so that we
may correct
our internal records. Please then delete the original message. Thank you.
-----Original Message-----
From: Rommel Sharma [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 10, 2004 9:20 PM
To: [EMAIL PROTECTED]
Subject: Throwing Axis Faults
Hi,
I would like to throw an AxisFault and set its various parameters in the
following constructor:
AxisFault(java.lang.String code, java.lang.String faultString,
java.lang.String actor, org.w3c.dom.Element[] details)
Could someone show me an example as to how to provide the
org.w3c.dom.Element[] details in it.
Thanks,
Rommel Sharma.
----- Original Message -----
From: "Tore Halset" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 06, 2004 7:59 PM
Subject: Re: How to get to the wsdl
> On Jan 6, 2004, at 14:45, [EMAIL PROTECTED] wrote:
>
> > Looks like the wsdl file was included and not generated by axis, look
> > at the
> > wsdd file of the web service (that registers the web service) to see
> > where it
> > is located.
>
> The wsdd-file does not mention any wsdl-file.
>
> - Tore.
>
>
*********************************************************
Disclaimer
This message (including any attachments) contains
confidential information intended for a specific
individual and purpose, and is protected by law.
If you are not the intended recipient, you should
delete this message and are hereby notified that
any disclosure, copying, or distribution of this
message, or the taking of any action based on it,
is strictly prohibited.
*********************************************************
Visit us at http://www.mahindrabt.com