Skip to content
Permalink
Browse files

Oppdaterte SOAP eksempler

  • Loading branch information...
landro committed Apr 9, 2014
1 parent 8b98c6f commit 348f0068c25344d337e53ccd545704167c41d0a6
@@ -85,9 +85,9 @@
</eb:PartyInfo>

<eb:CollaborationInfo>
<eb:AgreementRef>http://begrep.difi.no/SikkerDigitalPost/Meldingsutveksling/PostkasseDigitalPostForsendelse
<eb:AgreementRef>http://begrep.difi.no/SikkerDigitalPost/Meldingsutveksling/FormidleDigitalPostForsendelse
</eb:AgreementRef>
<eb:Service>SDP</eb:Service>
<eb:Service>urn:sdp:service:sdp</eb:Service>
<eb:Action>PostkasseDigitalPost</eb:Action>
<eb:ConversationId>%%SBD.InstanceIdentifier%%</eb:ConversationId>
</eb:CollaborationInfo>
@@ -0,0 +1,125 @@
<?xml version="1.0" ?>
<S12:Envelope xmlns:S12="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope">
<S12:Header>
<wsse:Security S12:mustUnderstand="true"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<ds:Signature Id="SIG-DE969A773C0E48851A139204210262312" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="env xsi" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-DE969A773C0E48851A139204210260210">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>oQ8OT9OV+9Md/+FddyaNFEfzR85gXsd9KAugtk6/9EA=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#id-DE969A773C0E48851A139204210261411">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="xsi" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>Qt66RSmhjZqUkFRrMm33W209OPfht0Q2LrAcX/95uis=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>VFw2UKvJYvXUnCpMno3kPldLQi7poMMwg/yed2/AaRmFvY6swqNvQbw9GqKDC4I/H
Z42INt3liTGskE2wHNJQJhE11DEUSC8pMZC38yrz/dgnPJd13p43mWRzUmlotCIWscJOf9+vn2zKMKxPCMb8
fWU8JPDkOU/boLFpUbVD5SqRJV50GoV8Q39MKBj5Pmg+sHR8Pw9KkNXJbIt3x1kqGTh9+x8m4Wp1j0pqQE1r
P/eSbxmlpCIWGeKOtvQlwHWypRc09CjY29rzAjG9Ux4cAfGlYJVgmnaCpfJjvWSVsdH31/iCt5xAEYe7DiGD
2tXHAM/5/Uz+3qfJvcxXHeo7g==
</ds:SignatureValue>
<ds:KeyInfo Id="KI-DE969A773C0E48851A13920421025878">
<wsse:SecurityTokenReference wsu:Id="STR-DE969A773C0E48851A13920421025879">
<ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=Jentrata,OU=Jentrata,O=jentrata.org,L=Melbourne,ST=VIC,C=AU</ds:X509IssuerName>
<ds:X509SerialNumber>513240931</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
<eb:Messaging S12:mustUnderstand="true" id="ebmsHeader" wsu:Id="id-DE969A773C0E48851A139204210260210"
xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xsi:schemaLocation="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/ http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/core/ebms-header-3_0-200704.xsd">

<eb:UserMessage mpc="urn:sdp:%%prioritet%%:identifier:%%orgnr_PK%%">

<eb:MessageInfo>
<eb:Timestamp>2014-02-10T14:21:42.520Z</eb:Timestamp>
<eb:MessageId>60a3ade5-84d1-46d7-b2cc-5f4fa15f41e5</eb:MessageId>
</eb:MessageInfo>


<eb:PartyInfo>
<eb:From>
<!-- orgnr til postkasse -->
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9908">%%ORG_NR_POSTKASSE%%</eb:PartyId>
<eb:Role>Postkasse</eb:Role>
</eb:From>
<eb:To>
<!-- orgnr til meldingsformidler -->
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9908">%%ORG_NR_MF%%</eb:PartyId>
<eb:Role>Meldingsformidler</eb:Role>
</eb:To>
</eb:PartyInfo>

<eb:CollaborationInfo>
<eb:AgreementRef>http://begrep.difi.no/SikkerDigitalPost/Meldingsutveksling/FormidleDigitalPostForsendelse
</eb:AgreementRef>
<eb:Service>urn:sdp:service:sdp</eb:Service>
<eb:Action>FormidleDigitalPost</eb:Action>
<eb:ConversationId>%%SBD.InstanceIdentifier%%</eb:ConversationId>
</eb:CollaborationInfo>

<eb:PayloadInfo>
<!-- Avsender setter href selv, men MÅ alltid peke på SOAP body -->
<eb:PartInfo href="#soapBody">
<eb:PartProperties>
<!-- MimeType MÅ alltid settes til application/xml -->
<eb:Property name="MimeType">application/xml</eb:Property>
</eb:PartProperties>
</eb:PartInfo>
</eb:PayloadInfo>

</eb:UserMessage>
</eb:Messaging>
</S12:Header>
<S12:Body xml:id="soapBody" wsu:Id="id-DE969A773C0E48851A139204210261411"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<StandardBusinessDocument xmlns="http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader">
<StandardBusinessDocumentHeader>
<HeaderVersion>1.0</HeaderVersion>
<Sender>
<!-- orgnr avsender -->
<Identifier Authority="iso6523-actorid-upis">9908:123456789</Identifier>
</Sender>
<Receiver>
<!-- orgnr mottaker, postboks eller print -->
<Identifier Authority="iso6523-actorid-upis">9908:345678901</Identifier>
</Receiver>
<DocumentIdentification>
<Standard>urn:no:difi:sdp:1.0</Standard>
<TypeVersion>1.0</TypeVersion>
<!-- Dette er den reelle unike identifikatoren i SDBH - bør vera GUID! -->
<InstanceIdentifier>GUID-Conversation-ID</InstanceIdentifier>
<Type>Digitalpost/ Varslingfeil / Åpning / Levering / Feil</Type>
<CreationDateAndTime>2013-02-19T05:10:10Z</CreationDateAndTime>
</DocumentIdentification>
</StandardBusinessDocumentHeader>
<sdp:melding xmlns:sdp="http://begrep.difi.no/sdp/schema_v10">
<!-- .... -->
</sdp:melding>
</StandardBusinessDocument>
</S12:Body>
</S12:Envelope>
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<S12:Envelope xmlns:S12="http://www.w3.org/2003/05/soap-envelope" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:eb3="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:ebbp="http://docs.oasis-open.org/ebxml-bp/ebbp-signals-2.0" xmlns:ebint="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/multihop/200902/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<S12:Header>
<wsse:Security S12:mustUnderstand="true">
<ds:Signature Id="SIG-20">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="S12 ds eb3 ebbp ebint wsa wsse wsu" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#N10060">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="ds eb3 ebbp ebint wsa wsse" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>fEgJ5s4hqIq+61IzE+5c3EuhxVm0WqC21iVVYu1kfsc=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#id-19">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="ds ebbp ebint wsa wsse wsu" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>njAnFqsR0OHElcM92BpFsgyFkKu18otc5pHo/6jBtTE=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>F/p2pCCq0gwbKNvOlCfZxUkWXBDYUA3RYRkCgS/cBBb9h+yUl2S6eDJj9t9FkitB5
Q5vBRwDKNXFkKCHAa7JB31N/TBVa5d0q73gTzSVZTZYczkJBg1L9mEFBXw56P2zImp84z6cTojtM98jcQozx
eP/LSQsZGWz4AW9qTEriZ6mZL+/U2xMLbvHc0rVqA2ES/WxxWghi7UCJRoYeGZF5CeSz9vzEKyHzsItsPIfX
KguwmIxDQ1aBABGmmPriVPZnN4II+3lYtTHfUY8QYwQA1ny2sm1udWljVhec8vsKa4NC/spHPMIWxRA3GaL9
YojsDbob4kf4aA1n1z2Z65LHQ==</ds:SignatureValue>
<ds:KeyInfo Id="KI-34e8f812-b306-4682-bddf-02f30b72adcf">
<wsse:SecurityTokenReference wsu:Id="STR-d6b71eb9-8a3d-4382-b3af-4e07a51beb59">
<ds:X509Data>
<ds:X509IssuerSerial>
<ds:X509IssuerName>CN=Jentrata,OU=Jentrata,O=jentrata.org,L=Melbourne,ST=VIC,C=AU</ds:X509IssuerName>
<ds:X509SerialNumber>513240931</ds:X509SerialNumber>
</ds:X509IssuerSerial>
</ds:X509Data>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
<eb3:Messaging S12:mustUnderstand="true" id="_ebmessaging_N1003A" wsu:Id="id-19">
<eb3:SignalMessage>
<eb3:MessageInfo>
<eb3:Timestamp>2014-02-10T15:21:42.821Z</eb3:Timestamp>
<eb3:MessageId>ff132776-f5bf-458d-8add-ade380f72922@jentrata.org</eb3:MessageId>
<eb3:RefToMessageId>60a3ade5-84d1-46d7-b2cc-5f4fa15f41e5</eb3:RefToMessageId>
</eb3:MessageInfo>
<eb3:Receipt>
<ebbp:NonRepudiationInformation>
<ebbp:MessagePartNRInformation>
<ds:Reference URI="#id-DE969A773C0E48851A139204210260210" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>oQ8OT9OV+9Md/+FddyaNFEfzR85gXsd9KAugtk6/9EA=</ds:DigestValue>
</ds:Reference>
</ebbp:MessagePartNRInformation>
<ebbp:MessagePartNRInformation>
<ds:Reference URI="#id-DE969A773C0E48851A139204210261411" xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces PrefixList="xsi" xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>Qt66RSmhjZqUkFRrMm33W209OPfht0Q2LrAcX/95uis=</ds:DigestValue>
</ds:Reference>
</ebbp:MessagePartNRInformation>
</ebbp:NonRepudiationInformation>
</eb3:Receipt>
</eb3:SignalMessage>
</eb3:Messaging>
</S12:Header>
<S12:Body />
</S12:Envelope>
@@ -1,17 +1,15 @@
<S12:Envelope xmlns:S12="http://www.w3.org/2003/05/soap-envelope" xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<S12:Header>
<wsse:Security S12:mustUnderstand="true">
<!-- TODO -->
<!-- ... -->
</wsse:Security>
<eb:Messaging S12:mustUnderstand="true">
<eb:SignalMessage>
<eb:MessageInfo>
<eb:Timestamp>2006-10-01T10:01:00</eb:Timestamp>
<eb:MessageId>UUID-4@receiver.example.com</eb:MessageId>
</eb:MessageInfo>
<!-- TODO samsvarer med mpc angitt i første user message -->
<!-- Teknisk avsenders tilgang til mpc verifiseres av meldingsformidler-->
<eb:PullRequest mpc="urn:sdp:prioritet:identifier:123456789:avsenderidentifikator:1234"/>
<eb:PullRequest mpc="urn:sdp:%%PRIORITET%%:identifier:%%ORG_NR_DATABEHANDLER%%:avsenderidentifikator:%%AVSENDERID%%"/>
</eb:SignalMessage>
</eb:Messaging>
</S12:Header>
@@ -1,7 +1,7 @@
<S12:Envelope xmlns:S12="http://www.w3.org/2003/05/soap-envelope" xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<S12:Header>
<wsse:Security S12:mustUnderstand="true">
<!-- TODO -->
<!-- Signatur på eb:Messaging header -->
</wsse:Security>
<eb:Messaging S12:mustUnderstand="true">
<eb:SignalMessage>
@@ -10,6 +10,7 @@
<eb:MessageId>UUID-6@sender.example.com</eb:MessageId>
<eb:RefToMessageId>UUID-4@receiver.example.com</eb:RefToMessageId>
</eb:MessageInfo>
<!-- Det er å forvente at denne Error-en vil opppstå ofte da MPC i mange tilfeller vil være tom -->
<eb:Error errorCode="EBMS:0006" severity="warning">
<eb:Description lang="en">EmptyMessagePartitionChannel</eb:Description>
<eb:ErrorDetail>There is no message available for pulling from this MPC at this moment.</eb:ErrorDetail>
@@ -10,29 +10,35 @@
<eb:MessageId>UUID-5@sender.example.com</eb:MessageId>
<eb:RefToMessageId>UUID-4@receiver.example.com</eb:RefToMessageId>
</eb:MessageInfo>
<eb:PartyInfo>
<eb:From>
<eb:PartyId>partyId</eb:PartyId>
<eb:Role>role</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId>partyId</eb:PartyId>
<eb:Role>role</eb:Role>
</eb:To>
</eb:PartyInfo>

<eb:PartyInfo>
<eb:From>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9908">%%ORG_NR_MF%%</eb:PartyId>
<eb:Role>Meldingsformidler</eb:Role>
</eb:From>
<eb:To>
<eb:PartyId type="urn:oasis:names:tc:ebcore:partyid-type:iso6523:9908">%%ORG_NR_DATABEHANDLER%%</eb:PartyId>
<eb:Role>Avsender</eb:Role>
</eb:To>
</eb:PartyInfo>


<eb:CollaborationInfo>
<eb:AgreementRef>agreement</eb:AgreementRef>
<eb:Service>http://docs.oasis-open.org/ebxml-msg/as4/200902/service</eb:Service>
<eb:Action>http://docs.oasis-open.org/ebxml-msg/as4/200902/action</eb:Action>
<eb:ConversationId>GUID-Conversation-ID</eb:ConversationId>
<eb:AgreementRef>http://begrep.difi.no/SikkerDigitalPost/Meldingsutveksling/FormidleDigitalPostForsendelse</eb:AgreementRef>
<eb:Service>urn:sdp:service:sdp</eb:Service>
<eb:Action>FormidleDigitalPost</eb:Action>
<eb:ConversationId>GUID-ConversationId</eb:ConversationId>
</eb:CollaborationInfo>

<eb:PayloadInfo>
<eb:PartInfo href="#soapBody"/>
</eb:PayloadInfo>

<eb:PayloadInfo>
<!-- Avsender setter href selv, men MÅ alltid peke på SOAP body -->
<eb:PartInfo href="#soapBody">
<eb:PartProperties>
<!-- MimeType MÅ alltid settes til application/xml -->
<eb:Property name="MimeType">application/xml</eb:Property>
</eb:PartProperties>
</eb:PartInfo>
</eb:PayloadInfo>
</eb:UserMessage>
</eb:Messaging>
</S12:Header>
@@ -0,0 +1,31 @@
<S12:Envelope xmlns:S12="http://www.w3.org/2003/05/soap-envelope" xmlns:eb="http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<S12:Header>
<wsse:Security S12:mustUnderstand="true">
<!-- Signatur på eb:Messaging header -->
</wsse:Security>
<eb:Messaging S12:mustUnderstand="true">
<eb:SignalMessage>
<eb:MessageInfo>
<eb:Timestamp>2014-02-10T15:21:42.821Z</eb:Timestamp>
<eb:MessageId>UUID-6@sender.example.com</eb:MessageId>
<eb:RefToMessageId>UUID-4@receiver.example.com</eb:RefToMessageId>
</eb:MessageInfo>
<!-- Det er å forvente at denne Error-en vil opppstå ofte da MPC i mange tilfeller vil være tom -->
<eb:Error errorCode="EBMS:xxxx" severity="error">
<eb:Description lang="en">....</eb:Description>
<eb:ErrorDetail>...</eb:ErrorDetail>
</eb:Error>
</eb:SignalMessage>
</eb:Messaging>
</S12:Header>
<S12:Body>
<Fault>
<Code>
<Value>S12:Sender</Value>
</Code>
<Reason>
<Text xml:lang="en">...</Text>
</Reason>
</Fault>
</S12:Body>
</S12:Envelope>

0 comments on commit 348f006

Please sign in to comment.
You can’t perform that action at this time.