Listing 6. Creating SAAJ elements.
清单6.创建SAAJ元素。
Listing 5. Creating SAAJ factory instances.
清单5.创建SAAJ工厂实例。
JAX-RPC delegates all handling of messages to SAAJ.
JAX - RPC将所有的消息处理都委托给了SAAJ。
JAX-WS handlers rely on the new SAAJ 1.3 specification.
JAX - WS处理程序依赖于新的SAAJ 1.3规范。
This leads you deeper into the realm of SAAJ programming.
这将引导您深入到 SAAJ 编程的领域中去。
It also shows how to invoke web service from SAAJ Client.
该部分还展示了如何从SAAJ客户端调用Web服务。
SAAJ defines classes and interfaces for all of the pieces of a SOAP message.
SAAJ定义了SOAP消息中各个部分的类与接口。
SAAJ 1.2 introduces additional methods to make handling of existing XML parts easier.
SAAJ 1.2提出了另外的方法,可以更容易处理现有的XML部分。
To facilitate this, the facade component USES SAAJ to invoke the existing Web service.
为此,Facade组件使用SAAJ来调用现有的Web服务。
In other words, SAAJ provides you with an XML-centric view of the elements of a SOAP message.
换句话说,SAAJ给您提供了以XML为中心的角度来看待SOAP消息中的元素。
The following description of how to build a SOAP response message with SAAJ applies equally for both.
下面描述了如何平衡运用这两种方法以利用SAAJ构建SOAP响应消息。
The SAAJ specification defines interfaces and classes that let you build a SOAP message from scratch.
SAAJ规范定义了接口和类,使您从头开始构建SOAP消息。
Since there is no widespread support for SAAJ 1.2 in the market yet, I used SAAJ 1.1 interfaces above.
由于现在在市场上对于SAAJ 1.2还没有普遍的支持,我暂时使用上面的SAAJ 1.1接口。
The results from the method are marshaled back to the client using the same JAX-RPC and SAAJ interfaces.
从这个方法返回的结果使用相同的JAX-RPC和SAAJ 接口被数据编入回到客户机。
Develop SAAJ client to send request and receive response from Product Catalog web service using Eclipse IDE.
使用EclipseIDE开发SAAJ客户端,通过ProductCatalogweb服务发送请求和接收响应。
SAAJ can also enable streaming over HTTP of large amounts of data in attachments in the Web service response.
SAAJ还可以通过HTTP对Web服务响应中附件内的大量数据进行流化。
Note that I am not trying to offer a comprehensive view of SAAJ here, I just cover it as much as is needed for the topic of this tip.
请注意此处我并不打算全面地介绍SAAJ,我只想讨论一些本文主题所需要的方面。
In our case, we just want to demonstrate that the message contains an attachment. We'll use a few lines of simple SAAJ code to do that.
在我们的例示例中,只是希望演示包含附件的消息。
Finally a SAAJ client will be developed to access the Product Catalog web service developed in Part 1 using Axis2 with Contract First approach.
最后,将开发一个SAAJ客户端,用于访问第1部分中使用Axis2和契约优先方法开发的ProductCatalogweb服务。
If you compare this to the code from the SAAJ article, you can see that you have moved a good distance away from knowledge of the SOAP protocol.
如果您将这段代码与SAAJ那篇文章中的进行比较,就可以看出,您的知识已经从SOAP协议向前迈进了一大步。
Moreover, as of SAAJ 1.2 (which is also included in J2EE version 1.4), several of the SAAJ interfaces inherit from the respective DOM interface.
而且,和SAAJ 1.2(J2EE版本 1.4中也包括该规范)一样,好几个 SAAJ接口都是继承于各自的DOM接口。
With SAAJ you also have the opportunity to directly create the SOAPPart of the message using an external file. For example, the file prepped.msg.
使用SAAJ还有可能使用外部文件来直接创建消息的SOAPPart。
Combined with the JAX-RPC handlers — a standard mechanism for JAX-RPC extensibility, usage of SAAJ allows for generic support for attachments processing.
与JAX -RPC处理程序——用于JAX - RPC扩展的标准机制相结合,使用SAAJ获得对于附件处理的通用支持。
On the client's side, JAXM and SAAJ USES a SOAP exception to handle errors that occur during the generation of the SOAP request or unmarshalling of the response.
在客户端,JAXM和SAAJ使用SOAP异常来处理SOAP请求生成过程中,或者响应反编组过程中发生的错误。
The SAAJ specification, which includes a synchronous SOAP connection, was recently separated from JAXM, and thus JAXM is now primarily used for asynchronous messages.
SAAJ规范最近从JAXM被分离了出来,它包含一个同步的SOAP连接,因此JAXM现在主要用于异步消息。
It is clear from the illustrations in the diagram that most of the interactions on the client will make use of SAAJ, since the protocols involved make use of SOAP messaging.
从图中的说明可以清楚地看到,客户机上的大多数交互作用都将使用SAAJ,这是由于所涉及到的协议使用了SOAP消息传递。
They are SOAP handlers in that message content is represented to the handler as SOAP content in the form of a SAAJ object (see the Resources section for more on these objects).
它们也是SOAP处理程序,因为消息内容以SAAJ对象的形式作为SOAP内容提供给处理程序。请参见参考资料部分以获得关于这些对象的更多信息。
This tutorial, the second of the three-part series, explains how to develop a File downloading web service using JAX-WS and also to send and receive Response from web service using SAAJ Client.
本教程是共三部分的系列文章的第二篇,解释了如何使用JAX - WS开发一个Filedownloadingweb服务,以及如何使用SAAJ客户端通过web服务发送和接收响应。
This series also shows that by simply making method calls using the SAAJ API, you can read and write SOAP-based XML messages, and you can optionally send and receive such messages over the Internet.
本系列还会演示如何通过使用SAAJAPI进行简单的方法调用来读取和编写基于SOAP的XML消息,而且您可以选择通过Internet发送和接收此类消息。
This series also shows that by simply making method calls using the SAAJ API, you can read and write SOAP-based XML messages, and you can optionally send and receive such messages over the Internet.
本系列还会演示如何通过使用SAAJAPI进行简单的方法调用来读取和编写基于SOAP的XML消息,而且您可以选择通过Internet发送和接收此类消息。
应用推荐