Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Suggestion for setting cServiceURL

$
0
0
Suggestion for setting cServiceURL
Web Service Proxy Generator
Suggestion for setting cServiceURL
Feb. 5, 2013
07:45 am
3PJ0GMIGUShow this entire thread in new window
Gratar Image based on email address
From:Frits van den Munckhof
To:All
Hi Rick,

I'm happily using your Proxy generator. However the other day I ran into a "gotcha". I was able to solve it with your documentation.

I had been developing on my localhost and wanted to switch to another server. So I wrote the following code.

*** Create an instance of the Proxy THISFORM.Authoriser = CREATEOBJECT("AuthoriserProxy") && Optionally specify .NET Version * Set the URL of the service (later on this wil be read from a configuration file) THISFORM.Authoriser.cServiceUrl="http://48.215.14.64/biosauthoriser/authoriser.asmx" THISFORM.Authoriser.cWsdlUrl="http://48.215.14.64/biosautoriser/authoriser.asmx?wsdl"

I thought this code would do the job of switching to the other URL. And when I traced the code I could indeed see that the properties were correctly pointing to the new address. However, the result still came from my Localhost. After studying your documentation I found the solution. I had to add the following line of code and everything worked fine.

* Workaround to force the correct URL THISFORM.Authoriser.oBridge.SetProperty(THISFORM.Authoriser.oService,"Url",THISFORM.Authoriser.cServiceUrl)

Now I wonder why you didn't create a cServiceUrl_Assign() method like this?

LPARAMETERS vNewValTHIS.cServiceURL = m.vNewValTHIS.oBridge.SetProperty(THIS.oService,"Url",THIS.cServiceUrl)

Did you have specific thoughts why you didn't do that, since it seems so obvious to choose such a path after you discovered and documented the problem?


Viewing all articles
Browse latest Browse all 10393

Trending Articles