没有合适的资源?快使用搜索试试~ 我知道了~
soap入门的英文资料,如果有兴趣的朋友可以下载一下
资源推荐
资源详情
资源评论
SOAP TUTROIAL
SOAP TUTROIAL............................................................................................................................2
1 Create and sending a simple message.......................................................................................3
1.1 Create a Message ..........................................................................................................3
1.2 parts of Message............................................................................................................3
1.3 Accessing Elements of Message ...................................................................................3
1.3.1 walk through the structure of the message........................................................3
1.3.2 retrieve the message header and body direcotry................................................4
1.4 Adding Content to Body ...............................................................................................4
1.5 Getting a SOAP Connection Object..............................................................................5
1.6 Sending a Message........................................................................................................5
1.7 Getting the Content of Message....................................................................................5
2 Adding content to header..........................................................................................................6
3 Adding content SOAPPart object..............................................................................................6
4 Adding Document to SOAP Body ............................................................................................7
5 Manipulate Message Content use SAAJ or DOM API .............................................................7
6 Adding attachment....................................................................................................................7
6.1 Create attachmentpart object add set content................................................................8
6.2 Access the attachmentPart Object.................................................................................8
7 Adding Attributes......................................................................................................................9
7.1 Header Attributes ..........................................................................................................9
7.1.1 The Actor attribute ............................................................................................9
7.1.2 The role attribute.............................................................................................11
7.1.3 The mustUnderstand attribute.........................................................................11
7.1.4 The relay attribute ...........................................................................................12
8 Using SOAP Faults .................................................................................................................12
1 Create and sending a simple message
1.1 Create a Message
The SAAJ API provided the Default implementation of the MessageFactory class
MessageFactory factory = MessageFactory.newInstance();
SOAPMessage message = factory.createMessage();
If we specify no argument for the newInstance() method it create a message for SOAP 1.1
message. To create the SOAP 1.2 message use the following method call
MessageFactory
factory=MessageFactory.newInstance(SOAPConstant.SOAP_1_2_PROTOCOL)
To create a message can either SOAP1.2 or SOAP1.1 use the following method
MessageFactory
factory=MessageFactory.newInstance(SOAPConstant.DYNAMIC_SOAP_PROTOCAL)
1.2 parts of Message
If you call createMessage() without argument , the Message that create automatically as the
following
A SOAP Object that contains the
A Envelope Object that contains the
1 a empty SOAP Header Object
2.a empty SOAP Body Object
1.3 Accessing Elements of Message
There are two ways to access the element of the message,
1. The first way is walk you way through the structure of the message
2. The second way to access the message of the content is to retrieve message header and body
directory
1.3.1 walk through the structure of the message
SOAPPart soapPart = message.getSOAPPart();
剩余12页未读,继续阅读
资源评论
红枫叶随风
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功