Debian Codegraph @

docs/apiDocs/javax/xml/soap/SOAPBody.html

raw
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_08) on Sat Apr 22 18:57:16 PDT 2006 -->
6 <TITLE>
7 SOAPBody (Axis API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="javax.xml.soap.SOAPBody interface">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="SOAPBody (Axis API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SOAPBody.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="SOAPBody.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 javax.xml.soap</FONT>
86 <BR>
87 Interface SOAPBody</H2>
88 <DL>
89 <DT><B>All Superinterfaces:</B> <DD>org.w3c.dom.Element, <A HREF="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap">Node</A>, org.w3c.dom.Node, <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A></DD>
90 </DL>
91 <DL>
92 <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/apache/axis/message/SOAPBody.html" title="class in org.apache.axis.message">SOAPBody</A></DD>
93 </DL>
94 <HR>
95 <DL>
96 <DT>public interface <B>SOAPBody</B><DT>extends <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A></DL>
97
98 <P>
99 An object that represents the contents of the SOAP body
100 element in a SOAP message. A SOAP body element consists of XML data
101 that affects the way the application-specific content is processed.
102 <P>
103 A <code>SOAPBody</code> object contains <code>SOAPBodyElement</code>
104 objects, which have the content for the SOAP body.
105 A <code>SOAPFault</code> object, which carries status and/or
106 error information, is an example of a <code>SOAPBodyElement</code> object.
107 <P>
108
109 <P>
110 <DL>
111 <DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap"><CODE>SOAPFault</CODE></A></DL>
112 <HR>
113
114 <P>
115 <!-- ======== NESTED CLASS SUMMARY ======== -->
116
117
118 <!-- =========== FIELD SUMMARY =========== -->
119
120 <A NAME="field_summary"><!-- --></A>
121 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
122 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
123 <TD COLSPAN=2><FONT SIZE="+2">
124 <B>Field Summary</B></FONT></TD>
125 </TR>
126 </TABLE>
127 &nbsp;<A NAME="fields_inherited_from_class_org.w3c.dom.Node"><!-- --></A>
128 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
129 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
130 <TD><B>Fields inherited from interface org.w3c.dom.Node</B></TD>
131 </TR>
132 <TR BGCOLOR="white" CLASS="TableRowColor">
133 <TD><CODE>ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE</CODE></TD>
134 </TR>
135 </TABLE>
136 &nbsp;
137 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
138
139
140 <!-- ========== METHOD SUMMARY =========== -->
141
142 <A NAME="method_summary"><!-- --></A>
143 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
144 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
145 <TD COLSPAN=2><FONT SIZE="+2">
146 <B>Method Summary</B></FONT></TD>
147 </TR>
148 <TR BGCOLOR="white" CLASS="TableRowColor">
149 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
150 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap">SOAPBodyElement</A></CODE></FONT></TD>
151 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#addBodyElement(javax.xml.soap.Name)">addBodyElement</A></B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;name)</CODE>
152
153 <BR>
154 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>SOAPBodyElement</code> object with the
155 specified name and adds it to this <code>SOAPBody</code> object.</TD>
156 </TR>
157 <TR BGCOLOR="white" CLASS="TableRowColor">
158 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
159 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap">SOAPBodyElement</A></CODE></FONT></TD>
160 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#addDocument(org.w3c.dom.Document)">addDocument</A></B>(org.w3c.dom.Document&nbsp;document)</CODE>
161
162 <BR>
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds the root node of the DOM <code>Document</code> to this
164 <code>SOAPBody</code> object.</TD>
165 </TR>
166 <TR BGCOLOR="white" CLASS="TableRowColor">
167 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
168 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A></CODE></FONT></TD>
169 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#addFault()">addFault</A></B>()</CODE>
170
171 <BR>
172 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>SOAPFault</code> object and adds it to
173 this <code>SOAPBody</code> object.</TD>
174 </TR>
175 <TR BGCOLOR="white" CLASS="TableRowColor">
176 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A></CODE></FONT></TD>
178 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#addFault(javax.xml.soap.Name, java.lang.String)">addFault</A></B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;faultCode,
179 java.lang.String&nbsp;faultString)</CODE>
180
181 <BR>
182 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>SOAPFault</code> object and adds it to this
183 <code>SOAPBody</code> object.</TD>
184 </TR>
185 <TR BGCOLOR="white" CLASS="TableRowColor">
186 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
187 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A></CODE></FONT></TD>
188 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#addFault(javax.xml.soap.Name, java.lang.String, java.util.Locale)">addFault</A></B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;faultCode,
189 java.lang.String&nbsp;faultString,
190 java.util.Locale&nbsp;locale)</CODE>
191
192 <BR>
193 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>SOAPFault</code> object and adds it to this
194 <code>SOAPBody</code> object.</TD>
195 </TR>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A></CODE></FONT></TD>
199 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#getFault()">getFault</A></B>()</CODE>
200
201 <BR>
202 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code>
203 object.</TD>
204 </TR>
205 <TR BGCOLOR="white" CLASS="TableRowColor">
206 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
207 <CODE>&nbsp;boolean</CODE></FONT></TD>
208 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPBody.html#hasFault()">hasFault</A></B>()</CODE>
209
210 <BR>
211 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates whether a <code>SOAPFault</code> object exists in
212 this <code>SOAPBody</code> object.</TD>
213 </TR>
214 </TABLE>
215 &nbsp;<A NAME="methods_inherited_from_class_javax.xml.soap.SOAPElement"><!-- --></A>
216 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
217 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
218 <TD><B>Methods inherited from interface javax.xml.soap.<A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A></B></TD>
219 </TR>
220 <TR BGCOLOR="white" CLASS="TableRowColor">
221 <TD><CODE><A HREF="../../../javax/xml/soap/SOAPElement.html#addAttribute(javax.xml.soap.Name, java.lang.String)">addAttribute</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addChildElement(javax.xml.soap.Name)">addChildElement</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addChildElement(javax.xml.soap.SOAPElement)">addChildElement</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addChildElement(java.lang.String)">addChildElement</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addChildElement(java.lang.String, java.lang.String)">addChildElement</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addChildElement(java.lang.String, java.lang.String, java.lang.String)">addChildElement</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addNamespaceDeclaration(java.lang.String, java.lang.String)">addNamespaceDeclaration</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#addTextNode(java.lang.String)">addTextNode</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getAllAttributes()">getAllAttributes</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getAttributeValue(javax.xml.soap.Name)">getAttributeValue</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getChildElements()">getChildElements</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getChildElements(javax.xml.soap.Name)">getChildElements</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getElementName()">getElementName</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getEncodingStyle()">getEncodingStyle</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getNamespacePrefixes()">getNamespacePrefixes</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getNamespaceURI(java.lang.String)">getNamespaceURI</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#getVisibleNamespacePrefixes()">getVisibleNamespacePrefixes</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#removeAttribute(javax.xml.soap.Name)">removeAttribute</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#removeContents()">removeContents</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#removeNamespaceDeclaration(java.lang.String)">removeNamespaceDeclaration</A>, <A HREF="../../../javax/xml/soap/SOAPElement.html#setEncodingStyle(java.lang.String)">setEncodingStyle</A></CODE></TD>
222 </TR>
223 </TABLE>
224 &nbsp;<A NAME="methods_inherited_from_class_javax.xml.soap.Node"><!-- --></A>
225 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
226 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
227 <TD><B>Methods inherited from interface javax.xml.soap.<A HREF="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap">Node</A></B></TD>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD><CODE><A HREF="../../../javax/xml/soap/Node.html#detachNode()">detachNode</A>, <A HREF="../../../javax/xml/soap/Node.html#getParentElement()">getParentElement</A>, <A HREF="../../../javax/xml/soap/Node.html#getValue()">getValue</A>, <A HREF="../../../javax/xml/soap/Node.html#recycleNode()">recycleNode</A>, <A HREF="../../../javax/xml/soap/Node.html#setParentElement(javax.xml.soap.SOAPElement)">setParentElement</A>, <A HREF="../../../javax/xml/soap/Node.html#setValue(java.lang.String)">setValue</A></CODE></TD>
231 </TR>
232 </TABLE>
233 &nbsp;<A NAME="methods_inherited_from_class_org.w3c.dom.Node"><!-- --></A>
234 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
235 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
236 <TD><B>Methods inherited from interface org.w3c.dom.Node</B></TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD><CODE>appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix</CODE></TD>
240 </TR>
241 </TABLE>
242 &nbsp;<A NAME="methods_inherited_from_class_org.w3c.dom.Element"><!-- --></A>
243 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
244 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
245 <TD><B>Methods inherited from interface org.w3c.dom.Element</B></TD>
246 </TR>
247 <TR BGCOLOR="white" CLASS="TableRowColor">
248 <TD><CODE>getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS</CODE></TD>
249 </TR>
250 </TABLE>
251 &nbsp;
252 <P>
253
254 <!-- ============ FIELD DETAIL =========== -->
255
256
257 <!-- ========= CONSTRUCTOR DETAIL ======== -->
258
259
260 <!-- ============ METHOD DETAIL ========== -->
261
262 <A NAME="method_detail"><!-- --></A>
263 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
264 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
265 <TD COLSPAN=1><FONT SIZE="+2">
266 <B>Method Detail</B></FONT></TD>
267 </TR>
268 </TABLE>
269
270 <A NAME="addFault()"><!-- --></A><H3>
271 addFault</H3>
272 <PRE>
273 public <A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A> <B>addFault</B>()
274 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
275 <DL>
276 <DD>Creates a new <code>SOAPFault</code> object and adds it to
277 this <code>SOAPBody</code> object.
278 <P>
279 <DD><DL>
280 </DL>
281 </DD>
282 <DD><DL>
283
284 <DT><B>Returns:</B><DD>the new <code>SOAPFault</code> object
285 <DT><B>Throws:</B>
286 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a SOAP error</DL>
287 </DD>
288 </DL>
289 <HR>
290
291 <A NAME="hasFault()"><!-- --></A><H3>
292 hasFault</H3>
293 <PRE>
294 public boolean <B>hasFault</B>()</PRE>
295 <DL>
296 <DD>Indicates whether a <code>SOAPFault</code> object exists in
297 this <code>SOAPBody</code> object.
298 <P>
299 <DD><DL>
300 </DL>
301 </DD>
302 <DD><DL>
303
304 <DT><B>Returns:</B><DD><code>true</code> if a <code>SOAPFault</code> object exists in
305 this <code>SOAPBody</code> object; <code>false</code>
306 otherwise</DL>
307 </DD>
308 </DL>
309 <HR>
310
311 <A NAME="getFault()"><!-- --></A><H3>
312 getFault</H3>
313 <PRE>
314 public <A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A> <B>getFault</B>()</PRE>
315 <DL>
316 <DD>Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code>
317 object.
318 <P>
319 <DD><DL>
320 </DL>
321 </DD>
322 <DD><DL>
323
324 <DT><B>Returns:</B><DD>the <code>SOAPFault</code> object in this <code>SOAPBody</code>
325 object</DL>
326 </DD>
327 </DL>
328 <HR>
329
330 <A NAME="addBodyElement(javax.xml.soap.Name)"><!-- --></A><H3>
331 addBodyElement</H3>
332 <PRE>
333 public <A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap">SOAPBodyElement</A> <B>addBodyElement</B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;name)
334 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
335 <DL>
336 <DD>Creates a new <code>SOAPBodyElement</code> object with the
337 specified name and adds it to this <code>SOAPBody</code> object.
338 <P>
339 <DD><DL>
340 </DL>
341 </DD>
342 <DD><DL>
343 <DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>Name</code> object with the name for the new
344 <code>SOAPBodyElement</code> object
345 <DT><B>Returns:</B><DD>the new <code>SOAPBodyElement</code> object
346 <DT><B>Throws:</B>
347 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if a SOAP error occurs</DL>
348 </DD>
349 </DL>
350 <HR>
351
352 <A NAME="addFault(javax.xml.soap.Name, java.lang.String, java.util.Locale)"><!-- --></A><H3>
353 addFault</H3>
354 <PRE>
355 public <A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A> <B>addFault</B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;faultCode,
356 java.lang.String&nbsp;faultString,
357 java.util.Locale&nbsp;locale)
358 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
359 <DL>
360 <DD>Creates a new <code>SOAPFault</code> object and adds it to this
361 <code>SOAPBody</code> object. The new <code>SOAPFault</code> will have a
362 <code>faultcode</code> element that is set to the <code>faultCode</code>
363 parameter and a <code>faultstring</code> set to <code>faultstring</code>
364 and localized to <code>locale</code>.
365 <P>
366 <DD><DL>
367 </DL>
368 </DD>
369 <DD><DL>
370 <DT><B>Parameters:</B><DD><CODE>faultCode</CODE> - a <code>Name</code> object giving the fault code to be
371 set; must be one of the fault codes defined in the SOAP 1.1
372 specification and of type QName<DD><CODE>faultString</CODE> - a <code>String</code> giving an explanation of the
373 fault<DD><CODE>locale</CODE> - a <code>Locale</code> object indicating the native language
374 of the <ocde>faultString</code>
375 <DT><B>Returns:</B><DD>the new <code>SOAPFault</code> object
376 <DT><B>Throws:</B>
377 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a SOAP error</DL>
378 </DD>
379 </DL>
380 <HR>
381
382 <A NAME="addFault(javax.xml.soap.Name, java.lang.String)"><!-- --></A><H3>
383 addFault</H3>
384 <PRE>
385 public <A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A> <B>addFault</B>(<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A>&nbsp;faultCode,
386 java.lang.String&nbsp;faultString)
387 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
388 <DL>
389 <DD>Creates a new <code>SOAPFault</code> object and adds it to this
390 <code>SOAPBody</code> object. The new <code>SOAPFault</code> will have a
391 <code>faultcode</code> element that is set to the <code>faultCode</code>
392 parameter and a <code>faultstring</code> set to <code>faultstring</code>.
393 <P>
394 <DD><DL>
395 </DL>
396 </DD>
397 <DD><DL>
398 <DT><B>Parameters:</B><DD><CODE>faultCode</CODE> - a <code>Name</code> object giving the fault code to be
399 set; must be one of the fault codes defined in the SOAP 1.1
400 specification and of type QName<DD><CODE>faultString</CODE> - a <code>String</code> giving an explanation of the
401 fault
402 <DT><B>Returns:</B><DD>the new <code>SOAPFault</code> object
403 <DT><B>Throws:</B>
404 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a SOAP error</DL>
405 </DD>
406 </DL>
407 <HR>
408
409 <A NAME="addDocument(org.w3c.dom.Document)"><!-- --></A><H3>
410 addDocument</H3>
411 <PRE>
412 public <A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap">SOAPBodyElement</A> <B>addDocument</B>(org.w3c.dom.Document&nbsp;document)
413 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
414 <DL>
415 <DD>Adds the root node of the DOM <code>Document</code> to this
416 <code>SOAPBody</code> object.
417 <p>
418 Calling this method invalidates the <code>document</code> parameter. The
419 client application should discard all references to this
420 <code>Document</code> and its contents upon calling
421 <code>addDocument</code>. The behavior of an application that continues
422 to use such references is undefined.
423 <P>
424 <DD><DL>
425 </DL>
426 </DD>
427 <DD><DL>
428 <DT><B>Parameters:</B><DD><CODE>document</CODE> - the <code>Document</code> object whose root node will be
429 added to this <code>SOAPBody</code>
430 <DT><B>Returns:</B><DD>the <code>SOAPBodyElement</code> that represents the root node
431 that was added
432 <DT><B>Throws:</B>
433 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if the <code>Document</code> cannot be added</DL>
434 </DD>
435 </DL>
436 <!-- ========= END OF CLASS DATA ========= -->
437 <HR>
438
439
440 <!-- ======= START OF BOTTOM NAVBAR ====== -->
441 <A NAME="navbar_bottom"><!-- --></A>
442 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
443 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
444 <TR>
445 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
446 <A NAME="navbar_bottom_firstrow"><!-- --></A>
447 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
448 <TR ALIGN="center" VALIGN="top">
449 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
450 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
451 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
452 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SOAPBody.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
453 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
454 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
455 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
456 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
457 </TR>
458 </TABLE>
459 </TD>
460 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
461 </EM>
462 </TD>
463 </TR>
464
465 <TR>
466 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
467 &nbsp;<A HREF="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;
468 &nbsp;<A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD>
469 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
470 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
471 &nbsp;<A HREF="SOAPBody.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
472 &nbsp;<SCRIPT type="text/javascript">
473 <!--
474 if(window==top) {
475 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
476 }
477 //-->
478 </SCRIPT>
479 <NOSCRIPT>
480 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
481 </NOSCRIPT>
482
483 </FONT></TD>
484 </TR>
485 <TR>
486 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
487 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
488 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
489 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
490 </TR>
491 </TABLE>
492 <A NAME="skip-navbar_bottom"></A>
493 <!-- ======== END OF BOTTOM NAVBAR ======= -->
494
495 <HR>
496 Copyright © 2005 Apache Web Services Project. All Rights Reserved.
497 </BODY>
498 </HTML>