Uniface User Forum

 View Only
  Thread closed by the administrator, not accepting new replies.
  • 1.  Uniface 4GL: Dynamic URL for webservice callout

    ROCKETEER
    Posted 11-19-2018 11:58
    No replies, thread closed.

    Dynamic URL for webservice callout

    Author: martinandheather@gmail.com (byjones)

    Currently, I have an application which calls out to webservices on a server.

    However, if this server changes, do I have to regenerate all of the signatures in order to use this new server?

    If it is a matter of regenerating, would it be possible to add a feature to allow the base URL to be specified somewhere, and then simply change this and recompile the signatures in order to make the changes?

    Martin



  • 2.  RE: Uniface 4GL: Dynamic URL for webservice callout

    ROCKETEER
    Posted 11-19-2018 11:58
    No replies, thread closed.

    Hi Martin,

    Just an idea:

    Do not specify the URL of the WSDL directly in the SOAP Properties of the Web Service Call-Out signature, but only refer to a local WSDL file. In case you would like to use a different server then you only have to change the local copy of the WSDL and there's no need to regenerate the related signature.

    Hope this helps.

    Best regards,
    Daniel

    *** Usual disclaimer ***


    Author: diseli (daniel.iseli@uniface.com)


  • 3.  RE: Uniface 4GL: Dynamic URL for webservice callout

    ROCKETEER
    Posted 11-19-2018 11:58
    No replies, thread closed.

    i use the same workaround and it works fine.


    Author: rgi.hup (rgi@hup.de)


  • 4.  RE: Uniface 4GL: Dynamic URL for webservice callout

    ROCKETEER
    Posted 11-19-2018 11:58
    No replies, thread closed.

    So do you just load the WSDL in from C:\somefile.wsdl or do you put it on http://localhost/somefile.wsdl?

    Martin


    Author: byjones (martinandheather@gmail.com)


  • 5.  RE: Uniface 4GL: Dynamic URL for webservice callout

    ROCKETEER
    Posted 11-19-2018 11:58
    No replies, thread closed.

    You can use

    C:\somefile.wsdl

    We use the technique and it works fine.


    Author: None (None)


  • 6.  RE: Uniface 4GL: Dynamic URL for webservice callout

    ROCKETEER
    Posted 11-19-2018 11:58
    No replies, thread closed.

    How do tell Uniface where the path of the webservice is at runtime - does this go in the wsdl file?

    Thanks,

    Anthony

     


    Author: awiddowson (a.widdowson@midlandhr.co.uk)