Written by

Senior Developer at Greater Manchester Mental Health Services
Question Andy Stobirski · Jan 16

Authentication on a EnsLib.SOAP.Service service

Hi All

I have created a SOAP Service from a tutorial, using sample code, as follows:

Class Hospital.MyService Extends EnsLib.SOAP.Service
{

/// For this business service, ADAPTER should be "" so that we use the normal SOAP processingParameter ADAPTER;Parameter SERVICENAME = "MyService";Parameter NAMESPACE = "http://www.myhospital.org";Parameter USECLASSNAMESPACES = 1;
Method SubmitMessage(pRequest As Hospital.SoapRequest) As Hospital.SOAPResponse [ WebMethod ]
{
    // Do something with pRequest//set sc= ..SendRequestSync("GetCustomerInfoBO",pRequest,.response)//if $$$ISERR(sc) do ..ReturnMethodStatusFault(sc)// do something with the reponseset soapresponse=##class(Hospital.SOAPResponse).%New()
    set soapresponse.Name = "Andy"quit soapresponse
}

}

And, as expected it, works and can be accessed

https:/*********/gmmhhcdev/csp/healthshare/gmmhtie/Hospital.StockService.cls?WSDL

I want to use it on other, non HealthConnect servers, without the need for authentication, as when I use the above URL I am prompted for a username and password. How do I get around this, am I using the correct service?

Cheers

Andy

Product version: IRIS 2021.1
$ZV: IRIS for Windows (x86-64) 2024.1.2 (Build 398U) Thu Oct 3 2024 14:01:59 EDT

Comments

David Hockenbroch · Jan 16

In your system management portal, you'd have to have your /gmmhhcdev/csp/healthshare/gmmhtie/ web application set to be usable unauthenticated, but are you sure you want to do that?

0