1
0
-1

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)?

    CommentAdd your comment...

    2 answers

    1.  
      3
      2
      1

      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

      From components needing the web services
      [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
      In urouter.asn
      SWLIT_EXEC = userver -some-userver-params -asn=swlit.asn
      SWRPC_EXEC = userver -some-userver-params -asn=swrpc.asn
      swlit.asn
      #file swcommon.asn
      
      [DRIVER_SETTINGS]
      SOP U2.0
      USYS$SOP_PARAMS = ign=P
      swrpc.asn
      #file swcommon.asn
      
      [DRIVER_SETTINGS]
      SOP U1.0
      swcommon.asn
      [SERVICES_EXEC]
      WEBSERVICE_LITERAL = $SOP:WEBSERVICE_LITERAL scheme=B
      WEBSERVICE_RPCENCODED = $SOP:WEBSERVICE_RPCENCODED wsdl=http://server:1234/mock/mywsdldefinition
        CommentAdd your comment...
      1.  
        2
        1
        0

        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

          CommentAdd your comment...