EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

EGL-RUI Web Service with security

  • 1.  EGL-RUI Web Service with security

    Posted Fri June 12, 2015 03:15 PM

    Hi,

    We are  invoking  a web service via SOAP directly  from  RUI (client).

    The service is working fine. However, we have an issue with configuring security.

    The security information needs to be in the header and be configurable.

    Where would I look for an example to be able to do this?  The below snippet is from SoapUI. user id and password are fake!!!


       <soapenv:Header>
          <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext1.0.xsd">
             <wsse:UsernameToken>
                <wsse:Username>SERVICEID</wsse:Username>
                <wsse:Password>WHATEVER</wsse:Password>
             </wsse:UsernameToken>
          </wsse:Security>
       </soapenv:Header>

    Cool_Anand


  • 2.  Re: EGL-RUI Web Service with security

    Posted Thu June 18, 2015 10:21 PM

    Hi , please try to use serviceLib.setHTTPBasicAuthentication(). I do this 

     

            srv HelloService{@BindService {}};
            ns Name[]=[new Name{aa="Josh",bb=10},new Name{aa="John",bb=11}];
            servicelib.setHTTPBasicAuthentication(srv, "Josh", "1234");
            call srv.sayHello("world ", ns) returning to cb;

     

    JoshuaLyn