javax.xml.soap.SOAPFactory创建SOAPElements。
public class SOAPElementFactory extends Object
SOAPElementFactory是XML片段的工厂,最终将在SOAP部分中出现。
这些片段可以作为SOAPHeader或SOAPBody或SOAPEnvelope孩子插入。
使用此工厂创建的元素不具有居住在SOAP头文档中的元素的属性。 这些元素被插入到XML文档树中。
SOAPFactory
| Modifier and Type | Method and Description |
|---|---|
SOAPElement |
create(Name name)
已弃用
改用javax.xml.soap.SOAPFactory.createElement(javax.xml.soap.Name)
|
SOAPElement |
create(String localName)
已弃用
改用javax.xml.soap.SOAPFactory.createElement(String localName)
|
SOAPElement |
create(String localName, String prefix, String uri)
已弃用
改用javax.xml.soap.SOAPFactory.createElement(String localName,String prefix,String uri)
|
static SOAPElementFactory |
newInstance()
已弃用
创建一个新的实例
SOAPElementFactory 。
|
public SOAPElement create(Name name) throws SOAPException
SOAPElement对象,用给定的
Name对象初始化。
name - 具有新元素的XML名称的
Name对象
SOAPElement对象
SOAPException - 如果创建
SOAPElement对象时出错
SOAPFactory.createElement(javax.xml.soap.Name) ,
SOAPFactory.createElement(javax.xml.namespace.QName)
public SOAPElement create(String localName) throws SOAPException
SOAPElement对象。
localName - a
String给出新元素的本地名称
SOAPElement对象
SOAPException - 如果创建
SOAPElement对象时出错
SOAPFactory.createElement(java.lang.String)
public SOAPElement create(String localName, String prefix, String uri) throws SOAPException
SOAPElement对象。
localName - a
String给出新元素的本地名称
prefix - 这个
SOAPElement的前缀
uri - 一个
String给出新元素所属的命名空间的URI
SOAPException - 创建
SOAPElement对象是否有错误
SOAPFactory.createElement(java.lang.String, java.lang.String, java.lang.String)
public static SOAPElementFactory newInstance() throws SOAPException
SOAPElementFactory 。
SOAPElementFactory实例
SOAPException - 如果创建默认值
SOAPElementFactory
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.