HS.AU.SMD.Services
class HS.AU.SMD.Services extends HS.IHE.Common.Services.SOAPServer.Base, HS.AU.SMD.Common
This WebService class extends HS.Util.SOAPServer.Base so that the streams can be manipulated directly which means responses need to be of type HS.Message.XMLMessageProperty Inventory
Method Inventory
- Deliver()
- GenerateSynchronousResponse()
- GetInboundMessage()
- GetResponseMetadata()
- GetSignedPayloadStream()
- GetSigningX509()
- ImmediateDelivery()
- OnProcessInput()
- TRDProcessing()
- TransportResponseDelivery()
- ValidateSignatures()
- makeDeliverError()
- makeDeliverErrorFromStatus()
- makeStandardError()
Parameters
parameter NAMESPACE;
This is the namespace used by the Service
parameter OUTPUTTYPEATTRIBUTE = 0;
Use xsi:type attribute for literal types.
parameter SERVICENAME = SealedMessageDeliveryServices;
This is the name of the Service
parameter SETTINGS = SMDProcess:Basic:selector?multiSelect=1&context={Ens.ContextSearch/ProductionItems?targets=1&productionName=@productionId};
Inherited description: Can't do grace period without an OnTask loop
parameter TYPENAMESPACE;
This is the namespace used for types by the Service
Properties
property SMDProcess as Ens.DataType.ConfigName [ InitialExpression = "HS.AU.SMD.Process" ];
Property methods: SMDProcessDisplayToLogical(), SMDProcessGet(), SMDProcessIsValid(), SMDProcessLogicalToDisplay(), SMDProcessLogicalToOdbc(), SMDProcessNormalize(), SMDProcessParseConfigNameSpec(), SMDProcessSet()
Methods
final method Deliver(pRequest As HS.Message.XMLMessage, Output pResponse As HS.Message.XMLMessage) as %Status [ WebMethod ]
Accept request and generate a receipt acknowledgment (later send processed acknowledgment)
Method Deliver(pRequest As HS.Message.XMLMessage, Output pResponse As HS.AU.Message.SMD.DeliverResponse) As %Status [ Final, ProcedureBlock = 1, SoapAction = "http://ns.electronichealth.net.au/smd/svc/SealedMessageDelivery/2010/SealedMessageDelivery/deliverRequest", SoapBindingStyle = document, SoapBodyUse = literal, WebMethod ]
method GenerateSynchronousResponse(pRequest As HS.AU.Message.SMD.InboundMessageRequest, pProcessorResponse As HS.AU.Message.SMD.MessageType, Output pResponse As HS.AU.Message.SMD.ImmediateDeliveryResponse) as %Status
For ImmediateDelivery take response and sign and encrypt
method GetInboundMessage(pRequest As HS.Message.XMLMessage, Output pInboundMessage As HS.AU.Message.SMD.InboundMessageRequest, Output pSOAPFault)
extract inbound delivery message (for immediate and asynchronous)
method GetResponseMetadata(pMetadataIn As HS.AU.Types.SMD.MessageMetadataType, ByRef pMetadataOut As HS.AU.Types.SMD.MessageMetadataType) as %Status
Used to generate the metadata for a synchronous response
method GetSignedPayloadStream(document As %XML.Document, Output pStream As %GlobalBinaryStream) as %Status
classmethod GetSigningX509(pHPIONumber As %String, x509Cert As %SYS.X509Credentials) as %Status
This method returns an X509 Credentials object by looking at the HPIO configurations and
is used to sign the immediate responses
method ImmediateDelivery(pRequest As HS.Message.XMLMessage, Output pResponse As HS.Message.XMLMessage) as %Status [ WebMethod ]
Receive request, generate response and respond immediately
method OnProcessInput(pRequest As HS.Message.XMLMessage, Output pResponse As HS.Message.XMLMessage = $$$NULLOREF, ByRef pHint As %Library.String) as %Status
Inherited description: Override this method to process incoming data. Do not call SendRequestSync/Async() from outside this method (e.g. in a SOAP Service or a CSP page).
method TRDProcessing(pRequest As HS.Message.XMLMessage, Output pResponse As HS.Message.XMLMessage) as %Status
Accept processed acknowledgement
final method TransportResponseDelivery(pResponses As %ListOfObjects(ELEMENTTYPE="HS.AU.Types.SMD.TransportResponseType", XMLPROJECTION="element", XMLNAME="response")) as %String [ WebMethod ]
method ValidateSignatures(document As %XML.Document, signatures As HS.AU.SMD.SignatureListType, Output SOAPFault) as %Status
method makeDeliverError(responseClass="Error", responseCode="", message="", SOAPFaultCode As %String = "") as %SOAP.Fault12
Errors that occur as part of code or configuration - failure the deliver the message in the firstplace
method makeDeliverErrorFromStatus(tSC As %Status, SOAPFaultCode As %String = "") as %SOAP.Fault12
Errors that occur as part of code or configuration - failure the deliver the message in the firstplace
method makeStandardError(code="", message="", SOAPFaultCode As %String = "") as %SOAP.Fault12
Errors regarding the content of the message, or the format. Message delivered, but failure to process.
Inherited Members
Inherited Properties
- %AlertStartTime
- %ConfigName
- %ConfigQueueName
- %LastActionTime
- %LastHandledTime
- %LastReportedError
- %OutsideCreated
- %PreserveSession
- %ProcessInputCalled
- %QuitTask
- %RequestHeader
- %SessionId
- %SuperSession
- %SuperSessionCreatedBeforeSession
- %WaitForNextCallInterval
- %WarnedLatest
- %isShadow
- Adapter
- AdditionalSecurityClass
- AddressingIn
- AddressingOut
- AlertGracePeriod
- AlertGroups
- AlertOnError
- ArchiveIO
- Attachments
- Base64LineBreaks
- BodyId
- BodyXmlId
- BusinessPartner
- ContentId
- ContentLocation
- FaultAddressing
- FaultHeaders
- GatewayTimeout
- GenerateSuperSessionID
- HeadersIn
- HeadersOut
- IOLogEntry
- IPAddressInterval
- IPAddressIntervalUnits
- IPAddressMaximumRequests
- ImportHandler
- InactivityTimeout
- InvalidTokenLogging
- IsMTOM
- Location
- MTOMRequired
- MessageXUAProcessor
- MsgClass
- OrgURLAttributeCode
- OutputTypeAttribute
- OverrideClientResponseWaitTimeout
- Password
- RMSession
- ReferencesInline
- RequestMessageStart
- RequireValidSAMLToken
- ResourceRequired
- ResponseAttachments
- ResponseContentId
- ResponseContentLocation
- SAMLProcessor
- SAXFlags
- SOAPInvoked
- SecurityContextToken
- SecurityIn
- SecurityNamespace
- SecurityOut
- SessionCookie
- SoapFault
- SoapVersion
- SupportDelayedSyncRequest
- ThrottleDelay
- Timeout
- TraceOperations
- Transport
- UseSAMLUserName
- UseSimulatedSync
- UserInterval
- UserIntervalUnits
- UserMaximumRequests
- Username
- WriteSOAPBodyMethod
- XMLValidator
- XMLValidatorResponse
Inherited Methods
- %AddEnvelopeNamespace()
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnClose()
- %OnCreateRMSession()
- %OnNew()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %SuperSessionSet()
- %ValidateObject()
- AdapterName()
- AssignOneSetting()
- BuildTraceRequest()
- CloseIOLogEntry()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EnumerateSettingsClose()
- EnumerateSettingsExecute()
- EnumerateSettingsFetch()
- EscapeHTML()
- EscapeURL()
- FileWSDL()
- FindConfiguration()
- ForceSessionId()
- GatewayTimeout()
- GenerateSuperSession()
- GetBodyId()
- GetDeferredResponseToken()
- GetMsgHdrRequestKey()
- GetProcessor()
- GetProductionSettingValue()
- GetProductionSettings()
- GetPropertyConnections()
- GetSAMLProcessor()
- GetSchema()
- GetSettings()
- GetShadowInstance()
- HSTrace()
- HyperEventCall()
- HyperEventHead()
- Include()
- Initialize()
- InsertAttachements()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- MakeFault()
- MakeFault12()
- MakeSecurityFault()
- MakeStatusFault()
- MoveAttachments()
- NewIOLogEntry()
- NormalizeName()
- OnAdapterHTTPResponse()
- OnAuthorize()
- OnCancelSecureConversation()
- OnError()
- OnFinalizeProcessBodyNode()
- OnGenerateSuperSession()
- OnGetConnections()
- OnHandleNoResponseYet()
- OnInit()
- OnKeepalive()
- OnMonitor()
- OnPageError()
- OnPopulateSendSyncHandling()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPostWebMethod()
- OnPreHyperEvent()
- OnPreWebMethod()
- OnProductionStart()
- OnProductionStop()
- OnRequestMessage()
- OnSOAPRequest()
- OnSetAttachmentBody()
- OnStartSecureConversation()
- OnTearDown()
- Page()
- PopulateSuperSession()
- Process()
- ProcessBinary()
- ProcessBody()
- ProcessBodyNode()
- QueueName()
- QuoteJS()
- Reset()
- ReturnFault()
- ReturnMethodStatusFault()
- ReturnOneWay()
- ReturnStatusFault()
- RewriteURL()
- SOAPLogContains()
- SaveIOLogEntry()
- SchemaErrorCount()
- SchemaErrorString()
- SendAlert()
- SendDeferredResponse()
- SendRequestAsync()
- SendRequestSync()
- SetAddressingOut()
- SetReturnStatusCode()
- ShowError()
- SignAndEncrypt()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- ValidateMessage()
- VerifySendSyncHandlingInstructions()
- WSAddSignatureConfirmation()
- statusReturn()