This file name is then subsequently used as a claim token by the sample application to check out the attachment.
然后样例应用程序将该文件名用作一个索取令牌,用于签出附件。
First, we use the term "attachment" to refer to the data that you want to claim check.
首先,我们使用术语“附件”表示希望凭证索取的数据。
In this section, we use the sample application to illustrate how to apply the Claim Check pattern to handle a SOAP attachment.
在本节中,我们使用样例应用程序来展示如何应用ClaimCheck模式来处理SOAP附件。
The caller needs to store the token so that it can be used later to retrieve the attachment from the Claim Check service.
调用方需要存储令牌,这样一来,稍后就可以使用它从Claim Check服务中检索附件。
When the Claim Check service returns a token, the token is stored into the Order data object, into the same field that was used to store the logical attachment.
当ClaimCheck服务返回一个令牌时,令牌存储在Order数据对象中,存储在过去用于存储逻辑附件的同一字段中。
When the Claim Check service returns a token, the token is stored inside the Order data object, into the same field that was used to store the physical attachment.
当ClaimCheck服务返回一个令牌时,令牌存储在Order数据对象内,存储在过去用于存储物理附件的同一字段中。
Data: This element contains the actual attachment object passed to the Claim Check service.
data:该元素包含传递给ClaimCheck服务的真正附件对象。
Using Claim Check with a logical attachment.
对逻辑附件使用Claimcheck。
Using Claim Check with a physical attachment.
对物理附件使用Claimcheck。
Checking in a SOAP attachment into the Claim Check data store before performing business logic.
在执行业务逻辑之前将一个SOAP附件签入ClaimCheck数据存储中。
This concludes the detailed description of the sample implementation of the Claim Check pattern solution for handling a logical attachment.
上面内容详细描述了处理逻辑附件所用的ClaimCheck模式解决方案的样例实现。
The sample Claim Check service provides an operation that allows the clients to remove an attachment from the data store once the attachment is claimed.
ClaimCheck服务样例提供了一个操作,支持了客户端在索取附件之后将其从数据存储中删除。
For example, in my E-mail client, if an E-mail downloaded from a Pop3 server contains an attachment, I check the attachment's mime-type.
例如,在我的电子邮件客户机上,如果从Pop3服务器上下载的一个电子邮件包含附件,就检查附件的mime - type。
Checkin: This operation is invoked by the client to check in an attachment.
checkin:该操作由客户端调用,用于签入一个附件。
And don't forget to check that your attachment is actually attached to the email.
不要忘记把你的附件附上。
When the logical attachment is returned by the Claim Check service, the data handler attaches the logical attachment to the ShipmentRequisition data object.
当ClaimCheck服务返回逻辑附件时,数据处理程序将逻辑附件附加在ShipmentRequisition 数据对象上。
The first part handles the checking in and checking out of a logical attachment using the claim check service, while the second part performs the same function for a physical attachment.
第一部分使用 ClaimCheck服务处理逻辑附件的签入和签出,而第二部分为物理附件执行同样的功能。
The data handler detaches the logical attachment from the Order data object and calls the Claim check service to check in the logical attachment.
数据处理程序将逻辑附件从Order数据对象中分离出来,并调用ClaimCheck服务来签入逻辑附件。
Finally, when the caller needs to check out the attachment, it invokes the Claim check service with the token and the attachment is returned to the caller.
最后,当调用方需要签出附件时,它使用令牌调用ClaimCheck服务,附件返回调用方。
Extra Pointer. Before sending a draft of a paper to a professor as an attachment, check to see that he or she is willing to accept such longer documents.
额外注意:在把论文草稿当作附件发送给教授前,观察一下他或她是否有意接受这么长的文档。
In this article, we use a sample scenario to illustrate how to claim check both a logical attachment and a physical attachment.
本文使用了一个样例场景来展示凭证如何索取逻辑附件和物理附件。
Web services client implementations check the SOAP message context for the attachment container, and if one is found, it is used for processing the reply.
Web服务客户端实现检查SOAP消息上下文来获取附件容器,如果找到一个,就将其用于处理应答。
Web services implementations check the SOAP message context for the attachment container, and if one is found, it is used for processing the request.
Web服务实现检查SOAP消息上下文来获取附件容器,如果找到一个,就将其用于处理请求。
When a caller needs to check in an attachment, it invokes the Claim check service, passing in a data object of type ClaimCheckObject.
当一个调用方需要签入一个附件时,它调用ClaimCheck服务,传入一个ClaimCheckObject类型的数据对象。
Finally, the checkin operation on the Claim check service is invoked and the name of the file that stores the attachment is returned to the calling client code (Listing 2).
最后,Claimcheck服务上的checkin操作被调用,且存储附件的文件名返回到调用客户端代码(清单2)。
The checkIn method allows clients to check the attachment by invoking the Claim check service.
checkIn方法通过调用Claimcheck服务允许客户端检查附件。
The checkIn method allows clients to check the attachment by invoking the Claim check service.
checkIn方法通过调用Claimcheck服务允许客户端检查附件。
应用推荐