-
Notifications
You must be signed in to change notification settings - Fork 7
Get conversationId, messageId, and manifest in the response body from MHS Adapter #159
Comments
Linked to #163 |
@tomzo Does this mean that when a message is sent with those attributes, MHS adapter forwards it to spine but spine fails to process that message because of those missing attributes? |
What we've seen on the way from spine to MHS is that MHS extracts only the SOAP body of the messages and puts that on the queue. But what we would expect is to get all attachments and headers on the queue too.
I believe there is no way to send a message with extra attachments and headers to the MHS because it abstracts away the SOAP logic.
Have a look at example messages in https://github.com/nhsconnect/prm-deductions-gp2gp-adaptor/tree/master/docs/example_conversations/large-message-example-2 you may want to reach out to @fishey2 for more details on their origin. |
They are slightly different. Sorry, I should have placed that comment earlier in the #163 This one is really about how GP2GP messages look like. When foundation supplier sends back a message such as EHR, it will not contain the Having manifest and messageid/conversationid attached to the messages placed on the queue would be a nice enhancement. That's the part that overlaps with #163 |
@robert-joscelyne can we get an example request that is sent to outbound and also an example of what is sent back to the inbound? |
@fishey2 @robert-joscelyne
which are the Is this enough or would you still like to have them in the message body as well as another 2 json fields?
If both (1) and (2) are true, then the adjusted message body would look like as follows:
Notice that after extracting Apart from that I wonder, why only the manifest would need to be put in the body? Why not add the whole soap message? Any security reason?
|
I completely agree with your suggestion above, where you provide the entire SOAP message. I do not see any security/any other reasons to not do that I have a question related to the headers, and also #207: When you decode the headers (whether or not they originate from within the message body, or as a header) they do not seem to be in a readable format and contain escape/control characters:
Ideally, it'd be great if the items were added as individual headers/properties (as demonstrated below), although, we can just as easily extract this from the SOAP Envelope, so happy either way.
|
@fishey2
this is how it looks like after decoding manually but if you use AMQP client then it's all decoded properly I'll leave them as they are now as additional properties and won't include in body |
Ok, that would help, thanks. Just for your information, we were seeing this when using a STOMP client ( |
@fishey2 |
The GP2GP message contains attributes contained outside of the message body that are required for successful processing.
These include:
The text was updated successfully, but these errors were encountered: