EnsLib.SOAP.Service
class EnsLib.SOAP.Service extends Ens.Helper.Service.SyncResponseHandler.HTTP, Ens.BusinessService, %SOAP.WebService
Abstract base class for WebService-based BusinessService classes. Can use a SOAP.InboundAdapter listener, or the standard SOAP Service mechanism, or both. In order for the CSP mechanism to work, Web Services derived from this class must be configured either with their configuration name the same as their class name, or the invoking URL must include ?CfgItem= giving the config item name, or using a CSP application with a DispatchClass configured and the config item name as the next URL piece after the application name. (Configured Web Services exposed using the SOAP Inbound Adapter may also be invoked with this URL parameter but because each configured Inbound Adapter listens on its own TCP/IP port this parameter is just a safety check for them.)Property Inventory
Method Inventory
- %OnNew()
- OnAdapterHTTPResponse()
- OnAuthorize()
- ReturnFault()
- ReturnMethodStatusFault()
- ReturnStatusFault()
- statusReturn()
Parameters
Properties
Methods
Each argument may be overridden to change a particular aspect of the HTTP response pStatus is the status code that resulted from the SOAP call to the adapter pHTTPResponseStatus is the HTTP status that will be reported to the SOAP client pBodyLen is the response body size in bytes that will be reported to the SOAP client pResponseBodyStream is the stream or string whose contents will be returned as the SOAP response message body pMainResponseHeader if returned with content will be used verbatim as the HTTP header pHeaderExtra if returned will be used to override the standard no-cache header declarations or append to pMainResponseHeader
You can generate a SOAP fault from a web method as in the following example:
Set fault=##class(%SOAP.Fault).%New() Set fault.faultcode=$$$FAULTServer Set fault.faultstring="Processing Error" Set fault.detail="<e:myError xmlns:e=""some-URI"">app didn't work</e:myError>" Do ..ReturnFault(fault) ; will not return
Inherited Members
Inherited Properties
- %AlertStartTime
- %ConfigName
- %ConfigQueueName
- %LastActionTime
- %LastHandledTime
- %LastReportedError
- %OutsideCreated
- %PreserveSession
- %ProcessInputCalled
- %QuitTask
- %RequestHeader
- %SessionId
- %SuperSession
- %SuperSessionCreatedBeforeSession
- %WaitForNextCallInterval
- %WarnedLatest
- %isShadow
- Adapter
- AddressingIn
- AddressingOut
- AlertGracePeriod
- AlertGroups
- AlertOnError
- ArchiveIO
- Attachments
- Base64LineBreaks
- BodyId
- BodyXmlId
- BusinessPartner
- ContentId
- ContentLocation
- FaultAddressing
- FaultHeaders
- GatewayTimeout
- GenerateSuperSessionID
- HeadersIn
- HeadersOut
- IOLogEntry
- ImportHandler
- InactivityTimeout
- IsMTOM
- Location
- MTOMRequired
- MsgClass
- OutputTypeAttribute
- OverrideClientResponseWaitTimeout
- Password
- RMSession
- ReferencesInline
- RequestMessageStart
- ResponseAttachments
- ResponseContentId
- ResponseContentLocation
- SAXFlags
- SecurityContextToken
- SecurityIn
- SecurityNamespace
- SecurityOut
- SessionCookie
- SoapFault
- SoapVersion
- SupportDelayedSyncRequest
- ThrottleDelay
- Timeout
- Transport
- UseSimulatedSync
- Username
- WriteSOAPBodyMethod
Inherited Methods
- %AddEnvelopeNamespace()
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnClose()
- %OnCreateRMSession()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %SuperSessionSet()
- %ValidateObject()
- AdapterName()
- AssignOneSetting()
- CloseIOLogEntry()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EnumerateSettingsClose()
- EnumerateSettingsExecute()
- EnumerateSettingsFetch()
- EscapeHTML()
- EscapeURL()
- FileWSDL()
- ForceSessionId()
- GatewayTimeout()
- GenerateSuperSession()
- GetBodyId()
- GetDeferredResponseToken()
- GetMsgHdrRequestKey()
- GetProductionSettingValue()
- GetProductionSettings()
- GetPropertyConnections()
- GetSettings()
- GetShadowInstance()
- HyperEventCall()
- HyperEventHead()
- Include()
- Initialize()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- MakeFault()
- MakeFault12()
- MakeSecurityFault()
- MakeStatusFault()
- NewIOLogEntry()
- NormalizeName()
- OnCancelSecureConversation()
- OnError()
- OnGenerateSuperSession()
- OnGetConnections()
- OnHandleNoResponseYet()
- OnInit()
- OnKeepalive()
- OnMonitor()
- OnPageError()
- OnPopulateSendSyncHandling()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPostWebMethod()
- OnPreHyperEvent()
- OnPreWebMethod()
- OnProcessInput()
- OnProductionStart()
- OnProductionStop()
- OnRequestMessage()
- OnSOAPRequest()
- OnStartSecureConversation()
- OnTearDown()
- Page()
- PopulateSuperSession()
- Process()
- ProcessBinary()
- ProcessBody()
- ProcessBodyNode()
- QueueName()
- QuoteJS()
- Reset()
- ReturnOneWay()
- RewriteURL()
- SOAPLogContains()
- SaveIOLogEntry()
- SendAlert()
- SendDeferredResponse()
- SendRequestAsync()
- SendRequestSync()
- SetReturnStatusCode()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()
- VerifySendSyncHandlingInstructions()
- WSAddSignatureConfirmation()