web services - SSIS 2008R2 Dynamically Change Web Reference URL for Different Environments -


I am running MSSQL 2008 R2.

I want to be able to dynamically change the web context URL in a script task when the package is deployed in different environments manually and without having to re-create it every time.

I got script task to work with Test Web Service,

I have added Mercury reference to script task and set URL behavior to "Dynamic".

I have a package variable named "WebServiceURL".

Then what do I need to do in the script task to use "WebServiceURL" package variable when calling a web service?

I know very little C #. met.

Take a look at this question.

You probably want to set the .URL property of that class, which is called the web service from your package variable, because for the SSIS package. Config file depends on where it is called from.

When you first click on a script task twice, you can read a package variable by selecting the specific variable in the "Custom Property / Read Only" variable in the received window, once selected , You can use it in your code (variables class automatically generates as a property from each variable).

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -