Sry, I had a bad explanation of the probelm.
I do have the dynamic url assigned to the proxy on the webserver, but what
I'm tring to do is have the webservice "report" that is called looking at a
dynamic datasource (pulled from the web.config)
Our situation is that when we are deploying from the staging server to the
production. When we're testing, the report is pointing to the developement
database. When the deployment to production is made I have to open up
Crystal Reports (v9) and adjust the datasource through going to
MainMenu ->Database->SetDatasourceLocation. After the reports DataSources
are updated then the reports are "Published as Web Services" and the project
re-compiled and deployed. This method leaves a gap for human error;
forgetting to update the Datasource to the production database. It seems
that a dynamic datasource for a CrystalReport WebService would be there; I
just can't find any info on it.
Thanks!
Ron
"Steven Cheng[MSFT]" <v-> wrote in message
news:...
> Hi Ron,
>
> From your description, you're using some crystal reports on asp.net pages
> and these reports use asp.net webservive to provide the datasource.
> However, since the webservice's deployment server will change , you're
> wondering how to speicfy the webservice's target url dynamically ,yes?
>
> As for the webservices, how are you consuming them, are you use the add
> webreference in vs.net (or use the wsdl.exe) to create the client proxy
> class? If so, you can have a look at the proxy class 's "Url" property
> which is used to speicfy the webservice's target url such as
> "http://servername/virutual dir/service.asmx"
> We can change it at runtime programly.
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>