Debian Codegraph @

docs/apiDocs/javax/xml/soap/SOAPEnvelope.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 SOAPEnvelope (Axis API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="javax.xml.soap.SOAPEnvelope 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="SOAPEnvelope (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/SOAPEnvelope.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/SOAPElement.html" title="interface in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;<A HREF="../../../javax/xml/soap/SOAPFault.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="SOAPEnvelope.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 SOAPEnvelope</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/SOAPEnvelope.html" title="class in org.apache.axis.message">SOAPEnvelope</A></DD>
93 </DL>
94 <HR>
95 <DL>
96 <DT>public interface <B>SOAPEnvelope</B><DT>extends <A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap">SOAPElement</A></DL>
97
98 <P>
99 The container for the SOAPHeader and SOAPBody portions of a
100 <CODE>SOAPPart</CODE> object. By default, a <CODE>
101 SOAPMessage</CODE> object is created with a <CODE>
102 SOAPPart</CODE> object that has a <CODE>SOAPEnvelope</CODE>
103 object. The <CODE>SOAPEnvelope</CODE> object by default has an
104 empty <CODE>SOAPBody</CODE> object and an empty <CODE>
105 SOAPHeader</CODE> object. The <CODE>SOAPBody</CODE> object is
106 required, and the <CODE>SOAPHeader</CODE> object, though
107 optional, is used in the majority of cases. If the <CODE>
108 SOAPHeader</CODE> object is not needed, it can be deleted,
109 which is shown later.</P>
110
111 <P>A client can access the <CODE>SOAPHeader</CODE> and <CODE>
112 SOAPBody</CODE> objects by calling the methods <CODE>
113 SOAPEnvelope.getHeader</CODE> and <CODE>
114 SOAPEnvelope.getBody</CODE>. The following lines of code use
115 these two methods after starting with the <CODE>
116 SOAPMessage</CODE> object <I>message</I> to get the <CODE>
117 SOAPPart</CODE> object <I>sp</I>, which is then used to get the
118 <CODE>SOAPEnvelope</CODE> object <I>se</I>.</P>
119 <PRE>
120 SOAPPart sp = message.getSOAPPart();
121 SOAPEnvelope se = sp.getEnvelope();
122 SOAPHeader sh = se.getHeader();
123 SOAPBody sb = se.getBody();
124 </PRE>
125
126 <P>It is possible to change the body or header of a <CODE>
127 SOAPEnvelope</CODE> object by retrieving the current one,
128 deleting it, and then adding a new body or header. The <CODE>
129 javax.xml.soap.Node</CODE> method <CODE>detachNode</CODE>
130 detaches the XML element (node) on which it is called. For
131 example, the following line of code deletes the <CODE>
132 SOAPBody</CODE> object that is retrieved by the method <CODE>
133 getBody</CODE>.</P>
134 <PRE>
135 se.getBody().detachNode();
136 </PRE>
137 To create a <CODE>SOAPHeader</CODE> object to replace the one
138 that was removed, a client uses the method <CODE>
139 SOAPEnvelope.addHeader</CODE>, which creates a new header and
140 adds it to the <CODE>SOAPEnvelope</CODE> object. Similarly, the
141 method <CODE>addBody</CODE> creates a new <CODE>SOAPBody</CODE>
142 object and adds it to the <CODE>SOAPEnvelope</CODE> object. The
143 following code fragment retrieves the current header, removes
144 it, and adds a new one. Then it retrieves the current body,
145 removes it, and adds a new one.
146 <PRE>
147 SOAPPart sp = message.getSOAPPart();
148 SOAPEnvelope se = sp.getEnvelope();
149 se.getHeader().detachNode();
150 SOAPHeader sh = se.addHeader();
151 se.getBody().detachNode();
152 SOAPBody sb = se.addBody();
153 </PRE>
154 It is an error to add a <CODE>SOAPBody</CODE> or <CODE>
155 SOAPHeader</CODE> object if one already exists.
156
157 <P>The <CODE>SOAPEnvelope</CODE> interface provides three
158 methods for creating <CODE>Name</CODE> objects. One method
159 creates <CODE>Name</CODE> objects with a local name, a
160 namespace prefix, and a namesapce URI. The second method
161 creates <CODE>Name</CODE> objects with a local name and a
162 namespace prefix, and the third creates <CODE>Name</CODE>
163 objects with just a local name. The following line of code, in
164 which <I>se</I> is a <CODE>SOAPEnvelope</CODE> object, creates
165 a new <CODE>Name</CODE> object with all three.</P>
166 <PRE>
167 Name name = se.createName("GetLastTradePrice", "WOMBAT",
168 "http://www.wombat.org/trader");
169 </PRE>
170 <P>
171
172 <P>
173 <HR>
174
175 <P>
176 <!-- ======== NESTED CLASS SUMMARY ======== -->
177
178
179 <!-- =========== FIELD SUMMARY =========== -->
180
181 <A NAME="field_summary"><!-- --></A>
182 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
183 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
184 <TD COLSPAN=2><FONT SIZE="+2">
185 <B>Field Summary</B></FONT></TD>
186 </TR>
187 </TABLE>
188 &nbsp;<A NAME="fields_inherited_from_class_org.w3c.dom.Node"><!-- --></A>
189 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
190 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
191 <TD><B>Fields inherited from interface org.w3c.dom.Node</B></TD>
192 </TR>
193 <TR BGCOLOR="white" CLASS="TableRowColor">
194 <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>
195 </TR>
196 </TABLE>
197 &nbsp;
198 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
199
200
201 <!-- ========== METHOD SUMMARY =========== -->
202
203 <A NAME="method_summary"><!-- --></A>
204 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
205 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
206 <TD COLSPAN=2><FONT SIZE="+2">
207 <B>Method Summary</B></FONT></TD>
208 </TR>
209 <TR BGCOLOR="white" CLASS="TableRowColor">
210 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
211 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPBody.html" title="interface in javax.xml.soap">SOAPBody</A></CODE></FONT></TD>
212 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPEnvelope.html#addBody()">addBody</A></B>()</CODE>
213
214 <BR>
215 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <CODE>SOAPBody</CODE> object and sets it as the
216 <CODE>SOAPBody</CODE> object for this <CODE>
217 SOAPEnvelope</CODE> object.</TD>
218 </TR>
219 <TR BGCOLOR="white" CLASS="TableRowColor">
220 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
221 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPHeader.html" title="interface in javax.xml.soap">SOAPHeader</A></CODE></FONT></TD>
222 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPEnvelope.html#addHeader()">addHeader</A></B>()</CODE>
223
224 <BR>
225 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <CODE>SOAPHeader</CODE> object and sets it as the
226 <CODE>SOAPHeader</CODE> object for this <CODE>
227 SOAPEnvelope</CODE> object.</TD>
228 </TR>
229 <TR BGCOLOR="white" CLASS="TableRowColor">
230 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A></CODE></FONT></TD>
232 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPEnvelope.html#createName(java.lang.String)">createName</A></B>(java.lang.String&nbsp;localName)</CODE>
233
234 <BR>
235 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <CODE>Name</CODE> object initialized with the
236 given local name.</TD>
237 </TR>
238 <TR BGCOLOR="white" CLASS="TableRowColor">
239 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
240 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A></CODE></FONT></TD>
241 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPEnvelope.html#createName(java.lang.String, java.lang.String, java.lang.String)">createName</A></B>(java.lang.String&nbsp;localName,
242 java.lang.String&nbsp;prefix,
243 java.lang.String&nbsp;uri)</CODE>
244
245 <BR>
246 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <CODE>Name</CODE> object initialized with the
247 given local name, namespace prefix, and namespace URI.</TD>
248 </TR>
249 <TR BGCOLOR="white" CLASS="TableRowColor">
250 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
251 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPBody.html" title="interface in javax.xml.soap">SOAPBody</A></CODE></FONT></TD>
252 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPEnvelope.html#getBody()">getBody</A></B>()</CODE>
253
254 <BR>
255 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <CODE>SOAPBody</CODE> object associated with
256 this <CODE>SOAPEnvelope</CODE> object.</TD>
257 </TR>
258 <TR BGCOLOR="white" CLASS="TableRowColor">
259 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
260 <CODE>&nbsp;<A HREF="../../../javax/xml/soap/SOAPHeader.html" title="interface in javax.xml.soap">SOAPHeader</A></CODE></FONT></TD>
261 <TD><CODE><B><A HREF="../../../javax/xml/soap/SOAPEnvelope.html#getHeader()">getHeader</A></B>()</CODE>
262
263 <BR>
264 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <CODE>SOAPHeader</CODE> object for this <CODE>
265 SOAPEnvelope</CODE> object.</TD>
266 </TR>
267 </TABLE>
268 &nbsp;<A NAME="methods_inherited_from_class_javax.xml.soap.SOAPElement"><!-- --></A>
269 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
270 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
271 <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>
272 </TR>
273 <TR BGCOLOR="white" CLASS="TableRowColor">
274 <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>
275 </TR>
276 </TABLE>
277 &nbsp;<A NAME="methods_inherited_from_class_javax.xml.soap.Node"><!-- --></A>
278 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
279 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
280 <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>
281 </TR>
282 <TR BGCOLOR="white" CLASS="TableRowColor">
283 <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>
284 </TR>
285 </TABLE>
286 &nbsp;<A NAME="methods_inherited_from_class_org.w3c.dom.Node"><!-- --></A>
287 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
288 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
289 <TD><B>Methods inherited from interface org.w3c.dom.Node</B></TD>
290 </TR>
291 <TR BGCOLOR="white" CLASS="TableRowColor">
292 <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>
293 </TR>
294 </TABLE>
295 &nbsp;<A NAME="methods_inherited_from_class_org.w3c.dom.Element"><!-- --></A>
296 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
297 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
298 <TD><B>Methods inherited from interface org.w3c.dom.Element</B></TD>
299 </TR>
300 <TR BGCOLOR="white" CLASS="TableRowColor">
301 <TD><CODE>getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS</CODE></TD>
302 </TR>
303 </TABLE>
304 &nbsp;
305 <P>
306
307 <!-- ============ FIELD DETAIL =========== -->
308
309
310 <!-- ========= CONSTRUCTOR DETAIL ======== -->
311
312
313 <!-- ============ METHOD DETAIL ========== -->
314
315 <A NAME="method_detail"><!-- --></A>
316 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
317 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
318 <TD COLSPAN=1><FONT SIZE="+2">
319 <B>Method Detail</B></FONT></TD>
320 </TR>
321 </TABLE>
322
323 <A NAME="createName(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
324 createName</H3>
325 <PRE>
326 public <A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A> <B>createName</B>(java.lang.String&nbsp;localName,
327 java.lang.String&nbsp;prefix,
328 java.lang.String&nbsp;uri)
329 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
330 <DL>
331 <DD>Creates a new <CODE>Name</CODE> object initialized with the
332 given local name, namespace prefix, and namespace URI.
333
334 <P>This factory method creates <CODE>Name</CODE> objects
335 for use in the SOAP/XML document.
336 <P>
337 <DD><DL>
338 </DL>
339 </DD>
340 <DD><DL>
341 <DT><B>Parameters:</B><DD><CODE>localName</CODE> - a <CODE>String</CODE> giving
342 the local name<DD><CODE>prefix</CODE> - a <CODE>String</CODE> giving
343 the prefix of the namespace<DD><CODE>uri</CODE> - a <CODE>String</CODE> giving the
344 URI of the namespace
345 <DT><B>Returns:</B><DD>a <CODE>Name</CODE> object initialized with the given
346 local name, namespace prefix, and namespace URI
347 <DT><B>Throws:</B>
348 <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>
349 </DD>
350 </DL>
351 <HR>
352
353 <A NAME="createName(java.lang.String)"><!-- --></A><H3>
354 createName</H3>
355 <PRE>
356 public <A HREF="../../../javax/xml/soap/Name.html" title="interface in javax.xml.soap">Name</A> <B>createName</B>(java.lang.String&nbsp;localName)
357 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
358 <DL>
359 <DD>Creates a new <CODE>Name</CODE> object initialized with the
360 given local name.
361
362 <P>This factory method creates <CODE>Name</CODE> objects
363 for use in the SOAP/XML document.
364 <P>
365 <DD><DL>
366 </DL>
367 </DD>
368 <DD><DL>
369 <DT><B>Parameters:</B><DD><CODE>localName</CODE> - a <CODE>String</CODE> giving
370 the local name
371 <DT><B>Returns:</B><DD>a <CODE>Name</CODE> object initialized with the given
372 local name
373 <DT><B>Throws:</B>
374 <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>
375 </DD>
376 </DL>
377 <HR>
378
379 <A NAME="getHeader()"><!-- --></A><H3>
380 getHeader</H3>
381 <PRE>
382 public <A HREF="../../../javax/xml/soap/SOAPHeader.html" title="interface in javax.xml.soap">SOAPHeader</A> <B>getHeader</B>()
383 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
384 <DL>
385 <DD>Returns the <CODE>SOAPHeader</CODE> object for this <CODE>
386 SOAPEnvelope</CODE> object.
387
388 <P>A new <CODE>SOAPMessage</CODE> object is by default
389 created with a <CODE>SOAPEnvelope</CODE> object that
390 contains an empty <CODE>SOAPHeader</CODE> object. As a
391 result, the method <CODE>getHeader</CODE> will always
392 return a <CODE>SOAPHeader</CODE> object unless the header
393 has been removed and a new one has not been added.
394 <P>
395 <DD><DL>
396 </DL>
397 </DD>
398 <DD><DL>
399
400 <DT><B>Returns:</B><DD>the <CODE>SOAPHeader</CODE> object or <CODE>
401 null</CODE> if there is none
402 <DT><B>Throws:</B>
403 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a problem
404 obtaining the <CODE>SOAPHeader</CODE> object</DL>
405 </DD>
406 </DL>
407 <HR>
408
409 <A NAME="getBody()"><!-- --></A><H3>
410 getBody</H3>
411 <PRE>
412 public <A HREF="../../../javax/xml/soap/SOAPBody.html" title="interface in javax.xml.soap">SOAPBody</A> <B>getBody</B>()
413 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
414 <DL>
415 <DD>Returns the <CODE>SOAPBody</CODE> object associated with
416 this <CODE>SOAPEnvelope</CODE> object.
417
418 <P>A new <CODE>SOAPMessage</CODE> object is by default
419 created with a <CODE>SOAPEnvelope</CODE> object that
420 contains an empty <CODE>SOAPBody</CODE> object. As a
421 result, the method <CODE>getBody</CODE> will always return
422 a <CODE>SOAPBody</CODE> object unless the body has been
423 removed and a new one has not been added.
424 <P>
425 <DD><DL>
426 </DL>
427 </DD>
428 <DD><DL>
429
430 <DT><B>Returns:</B><DD>the <CODE>SOAPBody</CODE> object for this <CODE>
431 SOAPEnvelope</CODE> object or <CODE>null</CODE> if there
432 is none
433 <DT><B>Throws:</B>
434 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a problem
435 obtaining the <CODE>SOAPBody</CODE> object</DL>
436 </DD>
437 </DL>
438 <HR>
439
440 <A NAME="addHeader()"><!-- --></A><H3>
441 addHeader</H3>
442 <PRE>
443 public <A HREF="../../../javax/xml/soap/SOAPHeader.html" title="interface in javax.xml.soap">SOAPHeader</A> <B>addHeader</B>()
444 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
445 <DL>
446 <DD>Creates a <CODE>SOAPHeader</CODE> object and sets it as the
447 <CODE>SOAPHeader</CODE> object for this <CODE>
448 SOAPEnvelope</CODE> object.
449
450 <P>It is illegal to add a header when the envelope already
451 contains a header. Therefore, this method should be called
452 only after the existing header has been removed.
453 <P>
454 <DD><DL>
455 </DL>
456 </DD>
457 <DD><DL>
458
459 <DT><B>Returns:</B><DD>the new <CODE>SOAPHeader</CODE> object
460 <DT><B>Throws:</B>
461 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if this <CODE>
462 SOAPEnvelope</CODE> object already contains a valid
463 <CODE>SOAPHeader</CODE> object</DL>
464 </DD>
465 </DL>
466 <HR>
467
468 <A NAME="addBody()"><!-- --></A><H3>
469 addBody</H3>
470 <PRE>
471 public <A HREF="../../../javax/xml/soap/SOAPBody.html" title="interface in javax.xml.soap">SOAPBody</A> <B>addBody</B>()
472 throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE>
473 <DL>
474 <DD>Creates a <CODE>SOAPBody</CODE> object and sets it as the
475 <CODE>SOAPBody</CODE> object for this <CODE>
476 SOAPEnvelope</CODE> object.
477
478 <P>It is illegal to add a body when the envelope already
479 contains a body. Therefore, this method should be called
480 only after the existing body has been removed.
481 <P>
482 <DD><DL>
483 </DL>
484 </DD>
485 <DD><DL>
486
487 <DT><B>Returns:</B><DD>the new <CODE>SOAPBody</CODE> object
488 <DT><B>Throws:</B>
489 <DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if this <CODE>
490 SOAPEnvelope</CODE> object already contains a valid
491 <CODE>SOAPBody</CODE> object</DL>
492 </DD>
493 </DL>
494 <!-- ========= END OF CLASS DATA ========= -->
495 <HR>
496
497
498 <!-- ======= START OF BOTTOM NAVBAR ====== -->
499 <A NAME="navbar_bottom"><!-- --></A>
500 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
501 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
502 <TR>
503 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
504 <A NAME="navbar_bottom_firstrow"><!-- --></A>
505 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
506 <TR ALIGN="center" VALIGN="top">
507 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
508 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
509 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
510 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SOAPEnvelope.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
511 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
512 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
513 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
514 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
515 </TR>
516 </TABLE>
517 </TD>
518 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
519 </EM>
520 </TD>
521 </TR>
522
523 <TR>
524 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
525 &nbsp;<A HREF="../../../javax/xml/soap/SOAPElement.html" title="interface in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;
526 &nbsp;<A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD>
527 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
528 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
529 &nbsp;<A HREF="SOAPEnvelope.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
530 &nbsp;<SCRIPT type="text/javascript">
531 <!--
532 if(window==top) {
533 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
534 }
535 //-->
536 </SCRIPT>
537 <NOSCRIPT>
538 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
539 </NOSCRIPT>
540
541 </FONT></TD>
542 </TR>
543 <TR>
544 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
545 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
546 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
547 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
548 </TR>
549 </TABLE>
550 <A NAME="skip-navbar_bottom"></A>
551 <!-- ======== END OF BOTTOM NAVBAR ======= -->
552
553 <HR>
554 Copyright © 2005 Apache Web Services Project. All Rights Reserved.
555 </BODY>
556 </HTML>