ページの先頭行へ戻る
Interstage Application Server ebXML Message Serviceユーザーズガイド

B.2.1 CPAサンプル(Sample_CPA.xml)

<?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="testcpa-PartyA-PartyB-001">
    <tp:Status tp:value="agreed"/>
    <tp:Start>2002-01-01T12:00:00Z</tp:Start>
    <tp:End>2003-01-01T12:00:00Z</tp:End>
    <tp:PartyInfo 
          tp:defaultMshChannelId="PartyA-chan001" 
          tp:defaultMshPackageId="pack001">
        <tp:PartyId tp:type="anyURI">http://www.Party-A.com/</tp:PartyId>
        <tp:CollaborationRole>
            <tp:Role tp:name="Buyer"/>
            <tp:ServiceBinding>
                <tp:Service tp:type="anyURI">urn:service:order</tp:Service>
                <tp:CanSend>
                    <tp:ThisPartyActionBinding tp:action="Order" 
                          tp:packageId="pack001">
                        <tp:BusinessTransactionCharacteristics 
                              tp:isNonRepudiationRequired="true"/>
                        <tp:ChannelId>PartyA-chan001</tp:ChannelId>
                    </tp:ThisPartyActionBinding>
                </tp:CanSend>
                <tp:CanReceive>
                    <tp:ThisPartyActionBinding tp:action="Order Response" 
                          tp:packageId="pack001">
                        <tp:BusinessTransactionCharacteristics 
                              tp:isNonRepudiationRequired="true"/>
                        <tp:ChannelId>PartyA-chan001</tp:ChannelId>
                    </tp:ThisPartyActionBinding>
                </tp:CanReceive>
            </tp:ServiceBinding>
        </tp:CollaborationRole>
        <tp:Certificate tp:certId="PartyA-cert001">
            <ds:KeyInfo>
                <ds:KeyName>A-cert01</ds:KeyName>
                    ……(証明書情報を記述します)
            </ds:KeyInfo>
        </tp:Certificate>
        <tp:DeliveryChannel 
              tp:channelId="PartyA-chan001" 
              tp:transportId="PartyA-port001" 
              tp:docExchangeId="PartyA-doc001">
            <tp:MessagingCharacteristics tp:syncReplyMode="none" 
                  tp:ackRequested="always" 
                  tp:ackSignatureRequested="always" 
                  tp:duplicateElimination="always" 
                  tp:actor="urn:oasis:names:tc:ebxml-msg:actor:toPartyMSH"/>
        </tp:DeliveryChannel>
        <tp:Transport tp:transportId="PartyA-port001">
            <tp:TransportSender>
                <tp:TransportProtocol>HTTP</tp:TransportProtocol>
            </tp:TransportSender>
            <tp:TransportReceiver>
                <tp:TransportProtocol>HTTP</tp:TransportProtocol>
                <tp:Endpoint 
                      tp:uri="http://www.Party-A.com/ebms/servlet/ebxmlListener" 
                      tp:type="allPurpose"/>
            </tp:TransportReceiver>
        </tp:Transport>
        <tp:DocExchange tp:docExchangeId="PartyA-doc001">
            <tp:ebXMLSenderBinding tp:version="2.0">
                <tp:ReliableMessaging>
                    <tp:Retries>20</tp:Retries>
                    <tp:RetryInterval>PT30S</tp:RetryInterval>
                    <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics>
                </tp:ReliableMessaging>
                <tp:PersistDuration>P3D</tp:PersistDuration>
                <tp:SenderNonRepudiation>
                    <tp:NonRepudiationProtocol>
                          http://www.w3.org/2000/09/xmldsig#
                    </tp:NonRepudiationProtocol>
                    <tp:HashFunction>
                          http://www.w3.org/2000/09/xmldsig#sha1
                    </tp:HashFunction>
                    <tp:SignatureAlgorithm>
                          http://www.w3.org/2000/09/xmldsig#rsa-sha1
                    </tp:SignatureAlgorithm>
                    <tp:SigningCertificateRef tp:certId="PartyA-cert001"/>
                </tp:SenderNonRepudiation>
            </tp:ebXMLSenderBinding>
            <tp:ebXMLReceiverBinding tp:version="2.0">
                <tp:ReliableMessaging>
                    <tp:Retries>50</tp:Retries>
                    <tp:RetryInterval>PT50S</tp:RetryInterval>
                    <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics>
                </tp:ReliableMessaging>
                <tp:PersistDuration>P3DT12H</tp:PersistDuration>
                <tp:ReceiverNonRepudiation>
                    <tp:NonRepudiationProtocol>
                          http://www.w3.org/2000/09/xmldsig#
                    </tp:NonRepudiationProtocol>
                    <tp:HashFunction>
                          http://www.w3.org/2000/09/xmldsig#sha1
                    </tp:HashFunction>
                    <tp:SignatureAlgorithm>
                          http://www.w3.org/2000/09/xmldsig#rsa-sha1
                    </tp:SignatureAlgorithm>
                </tp:ReceiverNonRepudiation>
            </tp:ebXMLReceiverBinding>
        </tp:DocExchange>
    </tp:PartyInfo>
    <tp:PartyInfo 
          tp:defaultMshChannelId="PartyB-chan01" 
          tp:defaultMshPackageId="pack001">
        <tp:PartyId tp:type="anyURI">http://www.Party-B.com/</tp:PartyId>
        <tp:CollaborationRole>
            <tp:Role tp:name="Seller"/>
            <tp:ServiceBinding>
                <tp:Service tp:type="anyURI">urn:service:order</tp:Service>
                <tp:CanSend>
                    <tp:ThisPartyActionBinding tp:action="Order Response" 
                          tp:packageId="pack001">
                        <tp:BusinessTransactionCharacteristics 
                              tp:isNonRepudiationRequired="true"/>
                        <tp:ChannelId>PartyB-chan01</tp:ChannelId>
                    </tp:ThisPartyActionBinding>
                </tp:CanSend>
                <tp:CanReceive>
                    <tp:ThisPartyActionBinding tp:action="Order" 
                          tp:packageId="pack001">
                        <tp:BusinessTransactionCharacteristics 
                              tp:isNonRepudiationRequired="true"/>
                        <tp:ChannelId>PartyB-chan01</tp:ChannelId>
                    </tp:ThisPartyActionBinding>
                </tp:CanReceive>
            </tp:ServiceBinding>
        </tp:CollaborationRole>
        <tp:Certificate tp:certId="PartyB-cert01">
            <ds:KeyInfo>
                <ds:KeyName>cert01-Party-B</ds:KeyName>
                    ……(証明書情報を記述します)
            </ds:KeyInfo>
        </tp:Certificate>
        <tp:DeliveryChannel 
              tp:channelId="PartyB-chan01" 
              tp:transportId="PartyB-port01" 
              tp:docExchangeId="PartyB-doc01">
            <tp:MessagingCharacteristics tp:syncReplyMode="none" 
                  tp:ackRequested="always" 
                  tp:ackSignatureRequested="always" 
                  tp:duplicateElimination="always" 
                  tp:actor="urn:oasis:names:tc:ebxml-msg:actor:toPartyMSH"/>
        </tp:DeliveryChannel>
        <tp:Transport tp:transportId="PartyB-port01">
            <tp:TransportSender>
                <tp:TransportProtocol>HTTP</tp:TransportProtocol>
            </tp:TransportSender>
            <tp:TransportReceiver>
                <tp:TransportProtocol>HTTP</tp:TransportProtocol>
                <tp:Endpoint 
                      tp:uri="http://www.Party-B.com/ebms/servlet/ebxmlListener" 
                      tp:type="allPurpose"/>
            </tp:TransportReceiver>
        </tp:Transport>
        <tp:DocExchange tp:docExchangeId="PartyB-doc01">
            <tp:ebXMLSenderBinding tp:version="2.0">
                <tp:ReliableMessaging>
                    <tp:Retries>50</tp:Retries>
                    <tp:RetryInterval>PT50S</tp:RetryInterval>
                    <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics>
                </tp:ReliableMessaging>
                <tp:PersistDuration>P3DT12H</tp:PersistDuration>
                <tp:SenderNonRepudiation>
                    <tp:NonRepudiationProtocol>
                          http://www.w3.org/2000/09/xmldsig#
                    </tp:NonRepudiationProtocol>
                    <tp:HashFunction>
                          http://www.w3.org/2000/09/xmldsig#sha1
                    </tp:HashFunction>
                    <tp:SignatureAlgorithm>
                          http://www.w3.org/2000/09/xmldsig#rsa-sha1
                    </tp:SignatureAlgorithm>
                    <tp:SigningCertificateRef tp:certId="PartyB-cert01"/>
                </tp:SenderNonRepudiation>
            </tp:ebXMLSenderBinding>
            <tp:ebXMLReceiverBinding tp:version="2.0">
                <tp:ReliableMessaging>
                    <tp:Retries>20</tp:Retries>
                    <tp:RetryInterval>PT30S</tp:RetryInterval>
                    <tp:MessageOrderSemantics>Guaranteed</tp:MessageOrderSemantics>
                </tp:ReliableMessaging>
                <tp:PersistDuration>P3D</tp:PersistDuration>
                <tp:ReceiverNonRepudiation>
                    <tp:NonRepudiationProtocol>
                          http://www.w3.org/2000/09/xmldsig#
                    </tp:NonRepudiationProtocol>
                    <tp:HashFunction>
                          http://www.w3.org/2000/09/xmldsig#sha1
                    </tp:HashFunction>
                    <tp:SignatureAlgorithm>
                          http://www.w3.org/2000/09/xmldsig#rsa-sha1
                    </tp:SignatureAlgorithm>
                </tp:ReceiverNonRepudiation>
            </tp:ebXMLReceiverBinding>
        </tp:DocExchange>
    </tp:PartyInfo>
    <tp:Packaging tp:id="pack001"/>
</tp:CollaborationProtocolAgreement>