soapbody.html

来自「j2ee的API 1.4版本,j2ee的帮助文档」· HTML 代码 · 共 517 行 · 第 1/3 页

HTML
517
字号
</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>faultCode</CODE> - a <code>Name</code> object giving the fault         code to be set; must be one of the fault codes defined in the SOAP         1.1 specification and of type QName<DD><CODE>faultString</CODE> - a <code>String</code> giving an explanation of         the fault<DT><B>Returns:</B><DD>the new <code>SOAPFault</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if there is a SOAP error<DT><B>Since:</B></DT>  <DD>SAAJ 1.2</DD><DT><B>See Also:</B><DD><A HREF="../../../javax/xml/soap/SOAPFault.html#setFaultCode(javax.xml.soap.Name)"><CODE>SOAPFault.setFaultCode(javax.xml.soap.Name)</CODE></A>, <A HREF="../../../javax/xml/soap/SOAPFault.html#setFaultString(java.lang.String)"><CODE>SOAPFault.setFaultString(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="hasFault()"><!-- --></A><H3>hasFault</H3><PRE>public boolean <B>hasFault</B>()</PRE><DL><DD>Indicates whether a <code>SOAPFault</code> object exists in this <code>SOAPBody</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if a <code>SOAPFault</code> object exists in          this <code>SOAPBody</code> object; <code>false</code>          otherwise</DL></DD></DL><HR><A NAME="getFault()"><!-- --></A><H3>getFault</H3><PRE>public <A HREF="../../../javax/xml/soap/SOAPFault.html" title="interface in javax.xml.soap">SOAPFault</A> <B>getFault</B>()</PRE><DL><DD>Returns the <code>SOAPFault</code> object in this <code>SOAPBody</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>SOAPFault</code> object in this <code>SOAPBody</code>         object</DL></DD></DL><HR><A NAME="addBodyElement(javax.xml.soap.Name)"><!-- --></A><H3>addBodyElement</H3><PRE>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)                               throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Creates a new <code>SOAPBodyElement</code> object with the specified name and adds it to this <code>SOAPBody</code> object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - a <code>Name</code> object with the name for the new        <code>SOAPBodyElement</code> object<DT><B>Returns:</B><DD>the new <code>SOAPBodyElement</code> object<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></CODE> - if a SOAP error occurs</DL></DD></DL><HR><A NAME="addDocument(org.w3c.dom.Document)"><!-- --></A><H3>addDocument</H3><PRE>public <A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap">SOAPBodyElement</A> <B>addDocument</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A>&nbsp;document)                            throws <A HREF="../../../javax/xml/soap/SOAPException.html" title="class in javax.xml.soap">SOAPException</A></PRE><DL><DD>Adds the root node of the DOM <code><A HREF="http://java.sun.com/j2se/1.4/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom"><CODE>Document</CODE></A></code> to this <code>SOAPBody</code> object.  <p> Calling this method invalidates the  <code>document</code> parameter. The client application should discard all references to this <code>Document</code> and its contents upon calling  <code>addDocument</code>. The behavior of an application that continues to use such references is undefined.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>document</CODE> - the <code>Document</code> object whose root node will be  added to this <code>SOAPBody</code>.<DT><B>Returns:</B><DD>the <code>SOAPBodyElement</code> that represents the root node          that was added.<DT><B>Throws:</B><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<DT><B>Since:</B></DT>  <DD>SAAJ 1.2</DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/xml/soap/Node.html" title="interface in javax.xml.soap"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/xml/soap/SOAPBodyElement.html" title="interface in javax.xml.soap"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SOAPBody.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2003 Sun Microsystems, Inc. All rights reserved.</font></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?