Skip to main content

SOP Version


Henrique Oliveira

Is it possible to use both versions of SOP (U1.0 and U2.0) at the same time, setting one as default and one specifically for components (SERVICES_EXEC)?

2 replies

Gianni Sandigliano
Forum|alt.badge.img+3

Is it possible to use both versions of SOP (U1.0 and U2.0) at the same time, setting one as default and one specifically for components (SERVICES_EXEC)?

Hi Henrique,

Current Uniface Library is declaring SOP U1.0 driver maintaned only for backward compatibility.
Into ASN file they are both identified by SOP...It is not explicitely declared but I always interpreted the manual as "older OR newer" not both same time in one app.

My 2cents...

Gianni


  • October 28, 2019

Is it possible to use both versions of SOP (U1.0 and U2.0) at the same time, setting one as default and one specifically for components (SERVICES_EXEC)?

The fact is many partners still use RPC/encoded SOAP so it's necessary to handle both drivers at the same time.

We solved that issue using specific UST for each type of need, composing asn files using #file

[PATHS]
$SWLIT = TCP:localhost+13000|user|pwd|SWLIT_EXEC
$SWRPC = TCP:localhost+13000|user|pwd|SWRPC_EXEC

...
[SERVICES_EXEC]
WEBSERVICE_LITERAL = $SWLIT:WEBSERVICE_LITERAL
WEBSERVICE_RPCENCODED = $SWRPC:WEBSERVICE_RPCENCODED
SWLIT_EXEC = userver -some-userver-params -asn=swlit.asn
SWRPC_EXEC = userver -some-userver-params -asn=swrpc.asn
#file swcommon.asn

[DRIVER_SETTINGS]
SOP U2.0
USYS$SOP_PARAMS = ign=P
#file swcommon.asn

[DRIVER_SETTINGS]
SOP U1.0
[SERVICES_EXEC]
WEBSERVICE_LITERAL = $SOP:WEBSERVICE_LITERAL scheme=B
WEBSERVICE_RPCENCODED = $SOP:WEBSERVICE_RPCENCODED wsdl=http://server:1234/mock/mywsdldefinition