Basic authentication in header soap message | Uniface Integration | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

—  Results per page  —








— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters
For a group of consecutive words like 'end of support' use Match phrase

sp_Feed Topic RSS sp_TopicIcon
Basic authentication in header soap message
04 Oct 2017
1:23 pm
Avatar
rdv25772
Member
Forum Posts: 3
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Hello everyone,

 

For a customer I need to add basic authentication in the header of a soap message, not in the message self. I have been searching in the help of Uniface and on the web. Neither sources states information on how to solve it. What I can find is about SMTP handling. I want to do the handling with Uniface and not with other programmes. At the moment Uniface 9.6 is used. In the near future a migration to Uniface 9.7(.04) will take place. At this moment it is expected that the required change will be done in 9.7, but this is a decision to be made.

Can anyone set me to the right direction?

Regards,

 

Richard

04 Oct 2017
1:36 pm
Avatar
Iain Sharp
Member
Forum Posts: 612
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

What kind of authentication? Is it user and password? They should be available using SOP_PARAMS (euser,epass), you can also set these in the [SERVICES_EXEC] part of the asn (e.g. SOP_SVC=$SOP:SOP_SVC euser=fred epass=Pa55w0rd) and I believe, in later versions of 9.7 by using $signatureproperties from within proc. 

 

SOAP Connector Options

You can set the default SOAP connector options using the USYS$SOP_PARAMS setting in the [DRIVER_SETTINGS] section of the assignment file. They can be overridden for specific components in the [SERVICES_EXEC] section. and they can be set dynamically using the $signatureproperties Proc function.

USYS$SOP_PARAMS {=} {puser=ProxyServerUserID} %\
    {ppass=ProxyServerPassword} %\
    {euser=WebServerUserID} %\
    {epass=WebServerPassword} %\
    {scheme=AuthScheme} %\
    {proxy=ProxySpec} %\
    {cto=ConnectionTimeOut} %\
    {rto=RequestTimeOut} %\
    {ign=IgnoredVerificationMethod}  %\
    {callback=CallbackServices} %\
    {wsdl=Location} %\
    {svc=EndpointURI}

04 Oct 2017
3:17 pm
Avatar
rdv25772
Member
Forum Posts: 3
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

Yes Iain, it is an username and password combination. At the moment it will be implemented for only one soap message. The customer wants to implement a higher level of security on all programmes it is using. At the moment  we don’t use signature and so to build the soap messages. We use different kinds of methods to do so. Due to a lack of knowledge about the subject, we have not migrated to the preferred solution of Uniface and the SOP 2.0 connector.

 

Regards,

 

Richard

04 Oct 2017
3:22 pm
Avatar
Iain Sharp
Member
Forum Posts: 612
Member Since:
01 Oct 2012
sp_UserOfflineSmall Offline

I have found the SOP 2.0 connector to be very useful for consuming (and providing) web-services. It’s obviously a bit old fashioned and limited for multi part messages. 

Using /sti against the wsdl generally provides me with the correct signature relatively easily and from there it’s all built in. 

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 131

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ulrich-merkel: 1694

Iain Sharp: 612

Theo Neeskens: 339

gianni: 257

rogerw: 232

istiller: 199

lalitpct: 197

Knut: 175

-GHAN-: 171

sochaz: 165

Member Stats:

Guest Posters: 3

Members: 6285

Moderators: 0

Admins: 8

Forum Stats:

Groups: 1

Forums: 62

Topics: 2032

Posts: 8749

Newest Members:

adbotter, KennethHub, MathewBew, Sarma, RichardSmare, Frostseekerquife, Lookeephi, Llberyquife, BrunoTop, Sirbop

Administrators: admin: 23, Adrian Gosbell: 278, diseli: 820, Bob Maier: 3, Nico Peereboom: 62, Michael Rabone: 4, richiet: 406, JanCees: 28