JavaTM Platform
Standard Ed. 6

类 javax.xml.soap.MessageFactory
的使用

使用 MessageFactory 的软件包
javax.xml.soap 提供用于创建和构建 SOAP 消息的 API。 
javax.xml.ws.soap 该包定义特定于 SOAP 绑定的 API。 
 

javax.xml.soapMessageFactory 的使用
 

返回 MessageFactoryjavax.xml.soap 中的方法
static MessageFactory MessageFactory.newInstance()
          创建新的 MessageFactory 对象,该对象是默认实现 (SOAP 1.1) 的实例。
static MessageFactory MessageFactory.newInstance(String protocol)
          创建新的 MessageFactory 对象,该对象是指定实现的实例。
protected abstract  MessageFactory SAAJMetaFactory.newMessageFactory(String protocol)
          创建给定 String 协议的 MessageFactory 对象。
 

javax.xml.ws.soapMessageFactory 的使用
 

返回 MessageFactoryjavax.xml.ws.soap 中的方法
 MessageFactory SOAPBinding.getMessageFactory()
          获取此 SOAP 绑定使用的 SAAJ MessageFactory 实例。
 


JavaTM Platform
Standard Ed. 6


© ChiefLeo 沪ICP备19010539号-1 - ChiefLeo博客 - ChiefLeo上网导航 - ChiefLeo知识库 - ChiefLeo新闻 - ChiefLeo精选视频