Interstage Application Server ebXML Message Service ユーザーズガイド |
目次
索引
![]() ![]() |
付録C CPA作成チュートリアル |
メッセージ交換条件をDocExchange要素に記述します。DocExchange要素の記述条件については“B.1 CPA記述条件 - DocExchange”を参照してください。
CPA内で利用するメッセージ交換条件が1種類の場合、各PartyInfo要素にひとつのDocExchange要素を記述すれば十分です。複数のメッセージ交換条件をひとつのCPA内で利用する場合、各PartyInfo要素に複数のDocExchange要素を記述する必要があります。
DocExchange要素の子要素はebXMLSenderBinding要素とebXMLReceiverBinding要素で、それぞれ送信時の設定と受信時の設定を示します。Party間で、対応するDocExchange要素のebXMLSenderBinding要素とebXMLReceiverBinding要素の記述内容が整合している必要があります。
ここでは、各Partyとも1つのDocExchange要素のみを持つようにします。DocExchange要素の内容は以下のようにします。
各DocExchange要素のIDは、Transport要素のIDと同様、Party-IDに“-docExchange001”を追加したものを用います。
<?xml version="1.0" encoding="UTF-8"?> <tp:CollaborationProtocolAgreement xmlns:tp="http://www.oasis-open.org/committees/ebxml-cppa/schema/cpp-cpa-2_0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xlink="http://www.w3.org/1999/xlink" tp:cpaid="FUJITSU_LIMITED-ebXML_Trader-20030115"> <tp:Status tp:value="agreed"/> <tp:Start>2003-01-01T00:00:00Z</tp:Start> <tp:End>2005-12-31T23:59:59Z</tp:End> <tp:PartyInfo tp:defaultMshChannelId="" tp:defaultMshPackageId=""> <tp:PartyId tp:type="Name">FUJITSU_LIMITED</tp:PartyId> <tp:Transport tp:transportId="FUJITSU_LIMITED-transport001"> <tp:TransportSender> <tp:TransportProtocol>HTTP</tp:TransportProtocol> </tp:TransportSender> <tp:TransportReceiver> <tp:TransportProtocol>HTTP</tp:TransportProtocol> <tp:Endpoint tp:uri="http://www.div001.fujitsu.com/ebms/servlet/ebxmlListener" tp:type="allPurpose"/> </tp:TransportReceiver> </tp:Transport> <tp:DocExchange tp:docExchangeId="FUJITSU_LIMITED-docExchange001"> <tp:ebXMLSenderBinding tp:version="2.0"> <tp:ReliableMessaging> <tp:Retries>20</tp:Retries> <tp:RetryInterval>PT50S</tp:RetryInterval> <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics> </tp:ReliableMessaging> <tp:PersistDuration>P3D</tp:PersistDuration> </tp:ebXMLSenderBinding> <tp:ebXMLReceiverBinding tp:version="2.0"> <tp:ReliableMessaging> <tp:Retries>10</tp:Retries> <tp:RetryInterval>PT1M</tp:RetryInterval> <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics> </tp:ReliableMessaging> <tp:PersistDuration>P3D</tp:PersistDuration> </tp:ebXMLReceiverBinding> </tp:DocExchange> </tp:PartyInfo> <tp:PartyInfo tp:defaultMshChannelId="" tp:defaultMshPackageId=""> <tp:PartyId tp:type="Name">ebXML_Trader</tp:PartyId> <tp:Transport tp:transportId="ebXML_Trader-transport001"> <tp:TransportSender> <tp:TransportProtocol>HTTP</tp:TransportProtocol> </tp:TransportSender> <tp:TransportReceiver> <tp:TransportProtocol>HTTP</tp:TransportProtocol> <tp:Endpoint tp:uri="http://www.ebXMLTrader.com/ebms/servlet/ebxmlListener" tp:type="allPurpose"/> </tp:TransportReceiver> </tp:Transport> <tp:DocExchange tp:docExchangeId="ebXML_Trader-docExchange001"> <tp:ebXMLSenderBinding tp:version="2.0"> <tp:ReliableMessaging> <tp:Retries>10</tp:Retries> <tp:RetryInterval>PT1M</tp:RetryInterval> <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics> </tp:ReliableMessaging> <tp:PersistDuration>P3D</tp:PersistDuration> </tp:ebXMLSenderBinding> <tp:ebXMLReceiverBinding tp:version="2.0"> <tp:ReliableMessaging> <tp:Retries>20</tp:Retries> <tp:RetryInterval>PT50S</tp:RetryInterval> <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics> </tp:ReliableMessaging> <tp:PersistDuration>P3D</tp:PersistDuration> </tp:ebXMLReceiverBinding> </tp:DocExchange> </tp:PartyInfo> </tp:CollaborationProtocolAgreement>
目次
索引
![]() ![]() |