Skip to content

Commit

Permalink
Fixed up example xml for correct simulator operation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Shimmings committed Jan 23, 2025
1 parent 0d81237 commit f3cc892
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 50 deletions.
20 changes: 14 additions & 6 deletions BtmsGatewayStub/Examples/ClearanceRequest.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<ALVSClearanceRequest xmlns64="http://submitimportdocumenthmrcfacade.types.esb.ws.cara.defra.com">
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soap:Header>
<oas:Security soap:role="system" soap:mustUnderstand="true">
<oas:UsernameToken>
<oas:Username>systemID=ALVSHMRCCDS,ou=gsi systems,o=defra</oas:Username>
<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">th3Ups1d3D0wn</oas:Password>
</oas:UsernameToken>
</oas:Security>
</soap:Header>
<soap:Body>
<ALVSClearanceRequest xmlns="http://submitimportdocumenthmrcfacade.types.esb.ws.cara.defra.com">
<ServiceHeader>
<SourceSystem>CHIEF</SourceSystem>
<SourceSystem>CDS</SourceSystem>
<DestinationSystem>ALVS</DestinationSystem>
<CorrelationId>193264645102865</CorrelationId>
<ServiceCallTimestamp>2022-01-12T14:21:50.286</ServiceCallTimestamp>
Expand Down Expand Up @@ -81,5 +89,5 @@
</Check>
</Item>
</ALVSClearanceRequest>
</soapenv:Body>
</soapenv:Envelope>
</soap:Body>
</soap:Envelope>
96 changes: 52 additions & 44 deletions BtmsGatewayStub/Examples/DecisionNotification.xml
Original file line number Diff line number Diff line change
@@ -1,45 +1,53 @@
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Body>
<NS2:DecisionNotification xmlns:NS2="http://hmrcdecision.types.esb.ws.cara.defra.com">
<NS2:ServiceHeader>
<NS2:SourceSystem>ALVS</NS2:SourceSystem>
<NS2:DestinationSystem>CDS</NS2:DestinationSystem>
<NS2:CorrelationId>000</NS2:CorrelationId>
<NS2:ServiceCallTimestamp>2023-06-30T07:34:14.405827</NS2:ServiceCallTimestamp>
</NS2:ServiceHeader>
<NS2:Header>
<NS2:EntryReference>23GB1234567890ABC8</NS2:EntryReference>
<NS2:EntryVersionNumber>1</NS2:EntryVersionNumber>
<NS2:DecisionNumber>1</NS2:DecisionNumber>
</NS2:Header>
<NS2:Item>
<NS2:ItemNumber>1</NS2:ItemNumber>
<NS2:Check>
<NS2:CheckCode>H218</NS2:CheckCode>
<NS2:DecisionCode>C02</NS2:DecisionCode>
<NS2:DecisionValidUntil>202307042359</NS2:DecisionValidUntil>
</NS2:Check>
<NS2:Check>
<NS2:CheckCode>H219</NS2:CheckCode>
<NS2:DecisionCode>C03</NS2:DecisionCode>
</NS2:Check>
<NS2:Check>
<NS2:CheckCode>H223</NS2:CheckCode>
<NS2:DecisionCode>C03</NS2:DecisionCode>
</NS2:Check>
</NS2:Item>
<NS2:Item>
<NS2:ItemNumber>2</NS2:ItemNumber>
<NS2:Check>
<NS2:CheckCode>H219</NS2:CheckCode>
<NS2:DecisionCode>C03</NS2:DecisionCode>
</NS2:Check>
<NS2:Check>
<NS2:CheckCode>H223</NS2:CheckCode>
<NS2:DecisionCode>C03</NS2:DecisionCode>
</NS2:Check>
</NS2:Item>
</NS2:DecisionNotification>
</soapenv:Body>
</soapenv:Envelope>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:oas="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soap:Header>
<oas:Security soap:role="system" soap:mustUnderstand="true">
<oas:UsernameToken>
<oas:Username>systemID=ALVSHMRCCDS,ou=gsi systems,o=defra</oas:Username>
<oas:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">th3Ups1d3D0wn</oas:Password>
</oas:UsernameToken>
</oas:Security>
</soap:Header>
<soap:Body>
<DecisionNotification xmlns="http://hmrcdecision.types.esb.ws.cara.defra.com">
<ServiceHeader>
<SourceSystem>ALVS</SourceSystem>
<DestinationSystem>CDS</DestinationSystem>
<CorrelationId>000</CorrelationId>
<ServiceCallTimestamp>2023-06-30T07:34:14.405827</ServiceCallTimestamp>
</ServiceHeader>
<Header>
<EntryReference>23GB1234567890ABC8</EntryReference>
<EntryVersionNumber>1</EntryVersionNumber>
<DecisionNumber>1</DecisionNumber>
</Header>
<Item>
<ItemNumber>1</ItemNumber>
<Check>
<CheckCode>H218</CheckCode>
<DecisionCode>C02</DecisionCode>
<DecisionValidUntil>202307042359</DecisionValidUntil>
</Check>
<Check>
<CheckCode>H219</CheckCode>
<DecisionCode>C03</DecisionCode>
</Check>
<Check>
<CheckCode>H223</CheckCode>
<DecisionCode>C03</DecisionCode>
</Check>
</Item>
<Item>
<ItemNumber>2</ItemNumber>
<Check>
<CheckCode>H219</CheckCode>
<DecisionCode>C03</DecisionCode>
</Check>
<Check>
<CheckCode>H223</CheckCode>
<DecisionCode>C03</DecisionCode>
</Check>
</Item>
</DecisionNotification>
</soap:Body>
</soap:Envelope>

0 comments on commit f3cc892

Please sign in to comment.