Open amr-nsi opened 5 years ago
SOAP examples from DentiSphere
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
<wsse:Security 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"SOAP-ENV:mustUnderstand="1">
<wsu:Timestamp wsu:Id="TS-9f636a79-5922-4a17-85f4-439304d59611">
<wsu:Created>2018-10-30T11:29:11.844Z</wsu:Created>
<wsu:Expires>2018-10-30T11:30:11.844Z</wsu:Expires>
</wsu:Timestamp>
<Assertion xmlns="urn:oasis:names:tc:SAML:1.0:assertion" AssertionID="_5343c4707134500872b59c7ae7cb8d5b" IssueInstant="2018-10-30T11:29:11.026Z" Issuer="urn:be:fgov:ehealth:sts:1_0" MajorVersion="1" MinorVersion="1">
<Conditions NotBefore="2018-10-30T11:24:10.270Z" NotOnOrAfter="2018-10-30T16:29:10.270Z"/>
<AuthenticationStatement AuthenticationInstant="2018-10-30T11:29:11.026Z" AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:X509-PKI">
<Subject>
<NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName" NameQualifier="CN=QuoVadis No Reliance ICA G3, O=QuoVadis Limited, C=BM">CN="SSIN=87070336167", OU=eHealth-platform Belgium, OU=ANTOINE PAIRET, OU="SSIN=87070336167", O=Federal Government, C=BE</NameIdentifier>
<SubjectConfirmation>
<ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:holder-of-key</ConfirmationMethod>
<SubjectConfirmationData>
<saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:ns4="urn:oasis:names:tc:SAML:1.0:protocol" AssertionID="assertion-2de7baae-6e8c-470d-8e91-18785b755516" IssueInstant="2018-10-30T11:29:10.270Z" Issuer="CN="SSIN=87070336167", OU=eHealth-platform Belgium, OU=ANTOINE PAIRET, OU="SSIN=87070336167", O=Federal Government, C=BE" MajorVersion="1" MinorVersion="1">
<saml:Conditions NotBefore="2018-10-30T11:29:10.270Z" NotOnOrAfter="2018-10-30T16:29:10.270Z"/>
<saml:AttributeStatement>
<saml:Subject>
<saml:NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName" NameQualifier="CN=QuoVadis No Reliance ICA G3, O=QuoVadis Limited, C=BM">CN="SSIN=87070336167", OU=eHealth-platform Belgium, OU=ANTOINE PAIRET, OU="SSIN=87070336167", O=Federal Government, C=BE</saml:NameIdentifier>
</saml:Subject>
<saml:Attribute AttributeName="urn:be:fgov:ehealth:1.0:certificateholder:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace">
<saml:AttributeValue>87070336167</saml:AttributeValue>
</saml:Attribute>
<saml:Attribute AttributeName="urn:be:fgov:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace">
<saml:AttributeValue>87070336167</saml:AttributeValue>
</saml:Attribute>
</saml:AttributeStatement>
</saml:Assertion>
</SubjectConfirmationData>
<ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:X509Data>
<ds:X509Certificate>MIIFKzCCAxOgAwIBAgIURAZEmuus26cMeweynZrSn5S5yOYwDQYJKoZIhvcNAQELBQAwTjELMAkG A1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxJDAiBgNVBAMTG1F1b1ZhZGlzIE5v IFJlbGlhbmNlIElDQSBHMzAeFw0xODAyMjYxMjEyNTJaFw0xOTAyMjYxMjIyMDBaMIGcMQswCQYD VQQGEwJCRTEbMBkGA1UECgwSRmVkZXJhbCBHb3Zlcm5tZW50MRkwFwYDVQQLDBBTU0lOPTg3MDcw MzM2MTY3MRcwFQYDVQQLDA5BTlRPSU5FIFBBSVJFVDEhMB8GA1UECwwYZUhlYWx0aC1wbGF0Zm9y bSBCZWxnaXV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uqgHqD50zKEzlpAobtKIx7lKFJxpbTd/OLiAXCfBsJpkwfEm36p6SBR6YwjjD xq5Ok4hCC+J7PLkAJYlOdVG/Hmc1KOq7A4iaM39/9yD32Lk1ktQNAz28WMhZy6m7MvrpIGMxjO/T yC9yMVzjwYSFd5qbWnmlj5Q+5GctI6PEpc0MNgFU3ciX1fKdgSA+BadUKFLZ4kS7e8vHqwKbZEQ6 a7f2/NCAFLl2RbaKpgW07ySY7ciLwhVPhZCcQMAWOFDYYNvJmrNbm8bR4MGK9tMw9R2me5g5pw8M E9aoeqLcVbyblR+F94sTiQ==</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</SubjectConfirmation>
</Subject>
</AuthenticationStatement>
<AttributeStatement>
<Subject>
<NameIdentifier Format="urn:oasis:names:tc:SAML:1.1:nameid-format:X509SubjectName" NameQualifier="CN=QuoVadis No Reliance ICA G3, O=QuoVadis Limited, C=BM">CN="SSIN=87070336167", OU=eHealth-platform Belgium, OU=ANTOINE PAIRET, OU="SSIN=87070336167", O=Federal Government, C=BE</NameIdentifier>
</Subject>
<Attribute AttributeName="urn:be:fgov:ehealth:1.0:certificateholder:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace">
<AttributeValue>87070336167</AttributeValue>
</Attribute>
<Attribute AttributeName="urn:be:fgov:person:ssin" AttributeNamespace="urn:be:fgov:identification-namespace">
<AttributeValue>87070336167</AttributeValue>
</Attribute>
<Attribute AttributeName="urn:be:fgov:person:ssin:doctor:boolean" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth">
<AttributeValue>true</AttributeValue>
</Attribute>
<Attribute AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:doctor:nihii11" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth">
<AttributeValue>12999978004</AttributeValue>
</Attribute>
<Attribute AttributeName="urn:be:fgov:person:ssin:ehealth:1.0:fpsph:doctor:boolean" AttributeNamespace="urn:be:fgov:certified-namespace:ehealth">
<AttributeValue>true</AttributeValue>
</Attribute>
</AttributeStatement>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#_5343c4707134500872b59c7ae7cb8d5b">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>Q+jzzGQ3PosGCnZjl2cZD/XgJb8=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>e12/Y4ZVhIeqorp6YLc+qsax8n2EFE8YyqyUmVN5y5djndx2C2WcXiCNh2xmcc01VwlSDUMeeZGdySvmGfrQBE5MliYbVJew2DQ37ebj4g+caIk6avmnM+NNeBUJwTvZH2Po753FOzN86QBhcQThEfWxubDlnCiW0CNEpV2A6hpJaaEJbot7/DHz+/6uThHLginYg9Fwy3sO04OPElKFm/Mhqt1z212qUqwTrAfPeY05HGkkZn8L8XFkogFvqBbOG+aniEQqkQ0Oxw6x4zO2y67xZUdRgVwtj+vY8ovSqfmuypH6QAzZbxH05ZyRubMQyfwMXpJ5tUaAI1W3bqePrQ==</ds:SignatureValue>
<ds:KeyInfo>
<ds:X509Data>
<ds:X509Certificate>MIIGEzCCA/ugAwIBAgIUH4QvcO6pTgtkQ+TBnRJyX+Rq65owDQYJKoZIhvcNAQELBQAwVjELMAkG A1UEBhMCQk0xGTAXBgNVBAoMEFF1b1ZhZGlzIExpbWl0ZWQxLDAqBgNVBAMMI1F1b1ZhZGlzIFRy dXN0IEFuY2hvciBJc3N1aW5nIENBIEcyMB4XDTE4MDQxMDEyMTEwMloXDTIxMDQxMDEyMjEwMFow gbMxCz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vbS9x dnRhY2FnMi5jcmwwDgYDVR0PAQH/BAQDAgXgMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEFBQcD BDANBgkqhkiG9w0BAQsFAAOCAgEAaAscCtaqgUkIzEz68mmYwlXi/MEdywcIRLyukYVJZ1OIPncs cJAjnoKDluOZDMMkuj15WgSMaKvOYRA6Y2fsOcl6LTlEm9eLAH+XPOe51q1xyU/s5lEeFRnxswvh px96VNZRp0cTV5V0WEqL2Or931YCaiux1YL4lzKvk2RWkWALPQg+fQLv7U4nk7YlIrsooblqRnTi LP0235dDdOinELY86Ce51zHSm/0gcdHvrZdSgutcfAF4B2pziTP4+GxLYHv0l3obcMhupnT9O+oJ dnOdq6ZnGPInY5TBiGdIHubV6CFxrA27YMhLFs9XzSiT/26Bj8shmFFeyz320GtJMiKe/o12jU8Q hk8wkxJd2T7VS3IlABv8GPDkh4fiU2QXbzHM9Z2dDBqAXSYv8EUEdPAQmiRquz8itbFyMtI7JHtI cE4X6pSELpFGz8UC0Bg0u0ApQ54v+S4/yqaPyiZHwvMed5Cxoym0Ehw8ZAmGCfOtIKbHKFctEMQr f/6AuM6UrPkJUuKZ30H+DVPIqDzbFkrBKUv2HFX/0JPZOpGSRCo9zyGadmf8ueDf48DDUQvAOUHo vhcALyYVw3ZEgCybUrsRP2RBGODY+zRTqEZ6+YRlj4dlxL1oo78LMA7fuOAGDuRFUDNfpWNXel9M 5b6I0m/QSn1aCa5PZuHSbQVuyQI=</ds:X509Certificate>
</ds:X509Data>
</ds:KeyInfo>
</ds:Signature>
</Assertion>
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-2dc5a5f2-ebeb-4388-ae4a-71b9e6f0d1f6">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#id-921ac50d-58d4-45b1-bff2-39295e73c344">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>Jinq2LBrGKE5280ukr2Up2GkX0E=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#TS-9f636a79-5922-4a17-85f4-439304d59611">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>REklBtpiESo8jA3llEDMBeyLJxY=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>WDHKkP2O6SgiGVTFfi1WuoUFeuODFuI6UyhriuU0IamXNX6AyQSlB3CARjleOq/Dqi1JDJ4RsPQ2gZ+ZbZLWWECd3WGUFMw+P1yho91je4DIUouGgwr4mLSF82nwJvlZsG0yH4qN1Xbq4xdEtruzt9GmKLK2XniyIlD1ap24xvESLs0JpnIHIcK5T+7MbR2AjvO1+p+ZlYdvoG/QrgTmEXo18SKlJ24bk0/4m3U7kMgy1bhmH3+Sw4lNekzWRU/G+PoJyz9qAmvnNAdSAPiFD0aNhQRIh2J0EJhQ6acVOKQHtFmda0ZVLRHHLMf+1e9MvXx+dIVoS4vJC/eJrxAb1g==</ds:SignatureValue>
<ds:KeyInfo Id="KI-65a1cdfc-e711-499b-b921-9c3abb4e5d5f">
<wsse:SecurityTokenReference xmlns:wsse11="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd" wsse11:TokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1" wsu:Id="STR-5074e815-3bb6-4a35-97c7-f3f73f62546d">
<wsse:KeyIdentifier ValueType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.0#SAMLAssertionID">_5343c4707134500872b59c7ae7cb8d5b</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security>
</SOAP-ENV:Header>
<SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="id-921ac50d-58d4-45b1-bff2-39295e73c344">
<ns2:SendMessageRequest xmlns:ns2="urn:be:fgov:ehealth:ehbox:publication:protocol:v3" PublicationId="WDMRZEK3P">
<DestinationContext>
<Id>192340110004</Id>
<Type>NIHII</Type>
<Quality>DOCTOR</Quality>
<OoOProcessed>false</OoOProcessed>
</DestinationContext>
<ContentContext>
<Content>
<Document>
<Title>Test from NIHII.txt</Title>
<EncryptableBinaryContent>cid:17e2742c-32cb-4532-8240-3fd95b7a1055@ehealth.fgov.be</EncryptableBinaryContent>
<DownloadFileName>Test from NIHII.txt</DownloadFileName>
<MimeType>text/plain</MimeType>
<Digest>2OW/y9FWAj2QAdpdmmDYCpnwQaSNRcYZhbu+V7Ohs3M=</Digest>
</Document>
</Content>
< §
?/"yh">
<ApplicationName>publisphere</ApplicationName>
<ContentType>DOCUMENT</ContentType>
<IsImportant>false</IsImportant>
<IsEncrypted>false</IsEncrypted>
<PublicationReceipt>false</PublicationReceipt>
<ReceivedReceipt>false</ReceivedReceipt>
<ReadReceipt>false</ReadReceipt>
</ContentSpecification>
</ContentContext>
<CopyMailTo>antoine@springit.be</CopyMailTo>
</ns2:SendMessageRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"/>
<soap:Body>
<ns2:SendMessageResponse xmlns:ns2="urn:be:fgov:ehealth:ehbox:publication:protocol:v3"
xmlns:ns3="urn:be:fgov:ehealth:ehbox:consultation:protocol:v3"
xmlns:ns4="urn:be:fgov:ehealth:errors:service:v1" Id="1000010930818" SentPublicationId="YQBBP0FLL">
<Status>
<Code>100</Code>
<Message Lang="EN">SUCCESS</Message>
</Status>
</ns2:SendMessageResponse>
</soap:Body>
</soap:Envelope>
Fixed by #35
Bonjour Monsieur Duchateau ( @aduchate ),
Actuellement, fhcprd et fhcacc ne nous permettent pas d'envoyer un message correctement. Malheureusement, il est impossible pour nous de déterminer si le problème vient de notre message qui est possiblement mal-formaté, ou si le serveur nous empêche d'envoyer un message à cause de notre origine (localhost) ou pour quelconque autre raison.
Nous avons l'impression que le serveur nous permet d'envoyer environ un message par jour sans pièce jointe et que le reste du temps nous recevons un mail "no-reply" pour dire qu'il y a eu une erreur lors de l'envoi.
Nous aimerions également connaitre la meilleure façon d'envoyer un message avec une pièce jointe via l'API. Nous nous sommes basés sur les messages reçus, et nous en avons donc conclu de mettre les pièces jointes dans l'attribut
annex
du message (voir JSON ci-dessous). Serait-il possible pour vous de voir dans ce JSON quelconque erreur de notre part ?Voici également la request sans pièce jointe :
Je vous remercie grandement d'avance,
Cordialement,
Adrien