Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Dynamic Webservice URL

Avatar

Avatar
Level 2
Sentah
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Sentah
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
View profile
Sentah
Level 2

24-09-2008

Hi,



We have around 20 webservices deployed in a dev environment (dev1). We wanted to migrate that to a test environment and then to production.



We figured that we would have to change all our form code base to point to the webservices deployed at test1 and then to prod1 if we have to migrate from dev1 server.



Is there an easy way to do this ? we would like to read the webservices based on the machine we want at runtime and execute it ?



any suggestions ?



I know in other programming languages you read from a .properties file and do it, but not sure in form desginer ?

Replies

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

24-09-2008

You can programmatically change the web service address. I have a sample but it is not available at the moment can you post your email and I will make the sample available as soon as I can.

Avatar

24-09-2008

Can you also email me the example when it's ready. I could really use that too. thanks.



Scott

scottsheck@yahoo.com

Avatar

Avatar
Level 2
Sentah
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
View profile

Avatar
Level 2
Sentah
Level 2

Likes

0 likes

Total Posts

29 posts

Correct Reply

0 solutions
View profile
Sentah
Level 2

25-09-2008

Hi paul,



Thanks for the info, you can send it across at



sentah.at.hotmail.dot.com

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

25-09-2008

I cannot send it until next week when I get back to the office

Avatar

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile

Avatar
Boost 500
Level 10
pguerett
Level 10

Likes

611 likes

Total Posts

7,689 posts

Correct Reply

692 solutions
Top badges earned
Boost 500
Boost 50
Boost 5
Boost 3
Boost 250
View profile
pguerett
Level 10

29-09-2008

Ok I am finally back in the office and have found the information required. Assuming the connection name in the DataView wizard is set to DataConnection, then the command to get at the soap address is:



xfa.connectionSet.DataConnection.soapAddress.value



So to set a new address use:



xfa.connectionSet.DataConnection.soapAddress.value = "http://server:port/servicename";