SOAPBodyElement (Java EE 5)

Java EE API


javax.xml.soap Interface SOAPBodyElement

All Superinterfaces:
Element, Node, SOAPElement
All Known Subinterfaces:
SOAPFault

public interface SOAPBodyElement
extends SOAPElement

Implements: SOAPElement
Implemented by: SOAPFault

表示 SOAPBody 对象中内容的 SOAPBodyElement 对象。SOAPFault 接口是一个已经定义的 SOAPBodyElement 对象。

可以创建新的 SOAPBodyElement 对象,并使用 SOAPBodyaddBodyElement 方法将其添加到 SOAPBody 对象。在以下代码行中,sb 是一个 SOAPBody 对象,myName 是一个 Name 对象。

SOAPBodyElement sbe = sb.addBodyElement(myName);
 
英文文档:

A SOAPBodyElement object represents the contents in a SOAPBody object. The SOAPFault interface is a SOAPBodyElement object that has been defined.

A new SOAPBodyElement object can be created and added to a SOAPBody object with the SOAPBody method addBodyElement. In the following line of code, sb is a SOAPBody object, and myName is a Name object.

    SOAPBodyElement sbe = sb.addBodyElement(myName);
 


Field Summary
 
Fields inherited from interface org.w3c.dom.Node
 
Fields inherited from interface org.w3c.dom.Node
 
Method Summary
 
Methods inherited from interface javax.xml.soap.SOAPElement
 
Methods inherited from interface javax.xml.soap.Node
 
Methods inherited from interface org.w3c.dom.Node
 
Methods inherited from interface org.w3c.dom.Element
 
Methods inherited from interface org.w3c.dom.Node
 



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!