Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Uniface-L] Dynamic WSDL-setting

17 views
Skip to first unread message

Martyn Thomas

unread,
Jun 29, 2009, 6:05:39 AM6/29/09
to uniface...@lists.umanitoba.ca

Hello all

 

We want to call a web service from several different Uniface runtime environments (eg development, live) and the location of the web service will reflect the different Uniface environment (ie Uniface development will call the development web service, live will call live).

 

It would appear that we will need a different signature for each environment, with each signature pointing to a different WSDL which in turns points to a different web service. Is this correct or is there a way of setting the WSDL URL dynamically? If this is possible then obviously we can use a $logical to check the environment and point to the appropriate WSDL.

 

Thanks in advance.

 

Martyn Thomas

==============================================================================

For more information on Hargreaves Lansdown, visit our web site http://www.H-L.co.uk

IMPORTANT NOTICE

This email is intended solely for the recipient and is confidential and not for third party unauthorised distribution. If an addressing, or transmission, error has misdirected this email, please notify the author by replying to this email or notifying the system manager (internal...@hargreaveslansdown.co.uk) if you are not the intended recipient you must not disclose, distribute, copy, print or rely on this email.

Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of Hargreaves Lansdown. In addition, staff are not authorised to enter into any contract through email and therefore nothing contained herein should be construed as such. This email has been prepared using information believed by the author to be reliable and accurate but Hargreaves Lansdown makes no warranty as to the accuracy or completeness. In particular, Hargreaves Lansdown does not accept responsibility for any changes made to this email after it was sent.

Hargreaves Lansdown Asset Management Limited (Company Registration No 1896481), Hargreaves Lansdown Fund Managers Limited (No 2707155), Hargreaves Lansdown Pensions Direct Limited (No 3509545) and Hargreaves Lansdown Stockbrokers Limited (No 1822701) are authorised and regulated by the Financial Services Authority and registered in England and Wales. The registered office for all companies is Kendal House, 4 Brighton Mews, Clifton, Bristol, BS8 2NX. Telephone: 0117 988 9880

 


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

Famille Picaud

unread,
Jun 30, 2009, 4:52:39 AM6/30/09
to
On Jun 29, 12:05 pm, "Martyn Thomas"

<martyn_tho...@hargreaveslansdown.co.uk> wrote:
> Hello all
>
> We want to call a web service from several different Uniface runtime
> environments (eg development, live) and the location of the web service
> will reflect the different Uniface environment (ie Uniface development
> will call the development web service, live will call live).
>
> It would appear that we will need a different signature for each
> environment, with each signature pointing to a different WSDL which in
> turns points to a different web service. Is this correct or is there a
> way of setting the WSDL URL dynamically? If this is possible then
> obviously we can use a $logical to check the environment and point to
> the appropriate WSDL.
>
> Thanks in advance.
>
> Martyn Thomas
>
> ==============================================================================
> For more information on Hargreaves Lansdown, visit our web sitehttp://www.H-L.co.uk
> IMPORTANT NOTICE
> This email is intended solely for the recipient and is confidential and not for third party unauthorised distribution. If an addressing, or transmission, error has misdirected this email, please notify the author by replying to this email or notifying the system manager (internal.secur...@hargreaveslansdown.co.uk) if you are not the intended recipient you must not disclose, distribute, copy, print or rely on this email.

> Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of Hargreaves Lansdown. In addition, staff are not authorised to enter into any contract through email and therefore nothing contained herein should be construed as such. This email has been prepared using information believed by the author to be reliable and accurate but Hargreaves Lansdown makes no warranty as to the accuracy or completeness. In particular, Hargreaves Lansdown does not accept responsibility for any changes made to this email after it was sent.
> Hargreaves Lansdown Asset Management Limited (Company Registration No 1896481), Hargreaves Lansdown Fund Managers Limited (No 2707155), Hargreaves Lansdown Pensions Direct Limited (No 3509545) and Hargreaves Lansdown Stockbrokers Limited (No 1822701) are authorised and regulated by the Financial Services Authority and registered in England and Wales. The registered office for all companies is Kendal House, 4 Brighton Mews, Clifton, Bristol, BS8 2NX. Telephone: 0117 988 9880
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visithttp://www.messagelabs.com/email
> ______________________________________________________________________

The solution is to use some signature :
Web Service name : AWS
In dev , create AWSDEV
In Acceptance : AWSACC
In Prod : AWSPRO
Use a table of parameter to specify where you wants web service.
Regards,
Antoine

Famille Picaud

unread,
Jun 30, 2009, 4:52:39 AM6/30/09
to uniface...@lists.umanitoba.ca
On Jun 29, 12:05 pm, "Martyn Thomas"
<martyn_tho...@hargreaveslansdown.co.uk> wrote:
> Hello all
>
> We want to call a web service from several different Uniface runtime
> environments (eg development, live) and the location of the web service
> will reflect the different Uniface environment (ie Uniface development
> will call the development web service, live will call live).
>
> It would appear that we will need a different signature for each
> environment, with each signature pointing to a different WSDL which in
> turns points to a different web service. Is this correct or is there a
> way of setting the WSDL URL dynamically? If this is possible then
> obviously we can use a $logical to check the environment and point to
> the appropriate WSDL.
>
> Thanks in advance.
>
> Martyn Thomas
>
> ==============================================================================
> For more information on Hargreaves Lansdown, visit our web sitehttp://www.H-L.co.uk
> IMPORTANT NOTICE
> This email is intended solely for the recipient and is confidential and not for third party unauthorised distribution. If an addressing, or transmission, error has misdirected this email, please notify the author by replying to this email or notifying the system manager (internal.secur...@hargreaveslansdown.co.uk) if you are not the intended recipient you must not disclose, distribute, copy, print or rely on this email.

> Any opinions expressed in this document are those of the author and do not necessarily reflect the opinions of Hargreaves Lansdown. In addition, staff are not authorised to enter into any contract through email and therefore nothing contained herein should be construed as such. This email has been prepared using information believed by the author to be reliable and accurate but Hargreaves Lansdown makes no warranty as to the accuracy or completeness. In particular, Hargreaves Lansdown does not accept responsibility for any changes made to this email after it was sent.
> Hargreaves Lansdown Asset Management Limited (Company Registration No 1896481), Hargreaves Lansdown Fund Managers Limited (No 2707155), Hargreaves Lansdown Pensions Direct Limited (No 3509545) and Hargreaves Lansdown Stockbrokers Limited (No 1822701) are authorised and regulated by the Financial Services Authority and registered in England and Wales. The registered office for all companies is Kendal House, 4 Brighton Mews, Clifton, Bristol, BS8 2NX. Telephone: 0117 988 9880
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.

ThomasY

unread,
Jun 30, 2009, 12:46:04 PM6/30/09
to
Hi,

have a look in the uniface community. There is also this discussion.
http://uniface.communityzero.com/uniface?go=2210836

Reference to a local wsdl (for each environment) and in the wsdl you
can redirect to your server.

HTH
THOMAS

ThomasY

unread,
Jun 30, 2009, 12:46:04 PM6/30/09
to uniface...@lists.umanitoba.ca

Martyn Thomas

unread,
Jul 1, 2009, 7:03:12 AM7/1/09
to Uniface User Group Discussion Forum
Hi Thomas

That discussion appears to focus on a slightly different issue. The
solution offered still only has one version of the wsdl available to
Uniface at any one time. We want to be able to call different wsdls from
the same signature at any one time.

Thanks anyway though :)

Martyn

Hi,

HTH
THOMAS
_______________________________________________
Uniface User Group Discussion Forum
For more information:
http://lists.umanitoba.ca/mailman/listinfo/uniface-l
To unsubscribe/set options:
http://lists.umanitoba.ca/mailman/options/uniface-l

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________

==============================================================================
For more information on Hargreaves Lansdown, visit our web site http://www.H-L.co.uk
IMPORTANT NOTICE
This email is intended solely for the recipient and is confidential and not for third party unauthorised distribution. If an addressing, or transmission, error has misdirected this email, please notify the author by replying to this email or notifying the system manager (internal...@hargreaveslansdown.co.uk) if you are not the intended recipient you must not disclose, distribute, copy, print or rely on this email.

Ingo Stiller

unread,
Jul 1, 2009, 8:13:33 AM7/1/09
to
Hi Martyn

What about:

SELECTCASE v_CHOICE
CASE 1
v_SIG="WSDL_SIG_1"
CASE 2
v_SIG="WSDL_SIG_2"
CASE 3
v_SIG="WSDL_SIG_3"
...
ENDSELECTCASE

v_HNDL=""
newinstance v_SIG,v_HNDL


Okay, you are still restricted to n addresses, but better then on :-)

Ingo

Ingo Stiller

unread,
Jul 1, 2009, 8:13:33 AM7/1/09
to uniface...@lists.umanitoba.ca

Martyn Thomas

unread,
Jul 1, 2009, 8:58:22 AM7/1/09
to Uniface User Group Discussion Forum
Hi Ingo - we will probably have to do something similar using $logical
to check which environment we are running. But as I said I was hoping to
avoid having multiple signatures.

Martyn

-----Original Message-----
From: uniface-...@uug.org [mailto:uniface-...@uug.org] On
Behalf Of Ingo Stiller
Sent: 01 July 2009 13:14
To: uniface...@lists.umanitoba.ca
Subject: [Uniface-L] Re: Dynamic WSDL-setting

Hi Martyn

What about:

v_HNDL=""
newinstance v_SIG,v_HNDL

Ingo

Ingo Stiller

unread,
Jul 1, 2009, 11:56:58 AM7/1/09
to
On 1 Jul., 14:58, "Martyn Thomas"

<martyn_tho...@hargreaveslansdown.co.uk> wrote:
> Hi Ingo - we will probably have to do something similar using $logical
> to check which environment we are running. But as I said I was hoping to
> avoid having multiple signatures.

What about $ude ("compile") :-))

Change the URL in USIMPL and compile the signature

Ingo

Ingo Stiller

unread,
Jul 1, 2009, 11:56:58 AM7/1/09
to uniface...@lists.umanitoba.ca
On 1 Jul., 14:58, "Martyn Thomas"
<martyn_tho...@hargreaveslansdown.co.uk> wrote:
> Hi Ingo - we will probably have to do something similar using $logical
> to check which environment we are running. But as I said I was hoping to
> avoid having multiple signatures.

What about $ude ("compile") :-))

Martyn Thomas

unread,
Jul 2, 2009, 4:04:24 AM7/2/09
to Uniface User Group Discussion Forum, uniface...@lists.umanitoba.ca
Hi Ingo

That would work well for a Uniface component - change the URL, compile
and put the executable in the relevant environment.

However because it is a SOAP component it only exists in the URR and so
each time we recreate the URR (which we do regularly), we would have to
go through the same process each time.

Martyn

-----Original Message-----
From: uniface-...@uug.org [mailto:uniface-...@uug.org] On
Behalf Of Ingo Stiller
Sent: 01 July 2009 16:57
To: uniface...@lists.umanitoba.ca
Subject: [Uniface-L] Re: Dynamic WSDL-setting

Ingo

Martyn Thomas

unread,
Jul 2, 2009, 4:04:24 AM7/2/09
to Uniface User Group Discussion Forum, uniface...@lists.umanitoba.ca
Hi Ingo

That would work well for a Uniface component - change the URL, compile
and put the executable in the relevant environment.

However because it is a SOAP component it only exists in the URR and so
each time we recreate the URR (which we do regularly), we would have to
go through the same process each time.

Martyn

-----Original Message-----
From: uniface-...@uug.org [mailto:uniface-...@uug.org] On
Behalf Of Ingo Stiller
Sent: 01 July 2009 16:57
To: uniface...@lists.umanitoba.ca
Subject: [Uniface-L] Re: Dynamic WSDL-setting

Ingo

Porter, Mike

unread,
Jul 6, 2009, 11:16:13 AM7/6/09
to Uniface User Group Discussion Forum
Just a couple of ideas from a total novice in the area:
- could you compile a $logical directly into the URL of the SOAP
component? %%$logical(serveraddress)%%% or maybe even without the %s and
serveraddress logical in the ASN.
- maybe you could use a different $server setting in each environment's
ASN to point to a proxy server which redirects the compiled URL's
request to the correct server.

I tried the first idea locally and it seems to compile however I don't
have the environment to test it and have no clue about setting up proxy
servers.

-----Original Message-----
From: uniface-...@uug.org [mailto:uniface-...@uug.org] On

Behalf Of Martyn Thomas
Sent: 02 July 2009 09:04
To: Uniface User Group Discussion Forum;
uniface...@lists.umanitoba.ca
Subject: RE: [Uniface-L] Re: Dynamic WSDL-setting

Hi Ingo

That would work well for a Uniface component - change the URL, compile
and put the executable in the relevant environment.

However because it is a SOAP component it only exists in the URR and so
each time we recreate the URR (which we do regularly), we would have to
go through the same process each time.

Martyn

-----Original Message-----
From: uniface-...@uug.org [mailto:uniface-...@uug.org] On
Behalf Of Ingo Stiller
Sent: 01 July 2009 16:57
To: uniface...@lists.umanitoba.ca
Subject: [Uniface-L] Re: Dynamic WSDL-setting

Ingo


Checked by AVG - www.avg.com
Version: 8.5.375 / Virus Database: 270.13.1/2212 - Release Date:
07/01/09 05:53:00

0 new messages