BizTalk Server Orchestration - Dynamically accessing orchestration Webservices

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > September 2005 > Dynamically accessing orchestration Webservices





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dynamically accessing orchestration Webservices
Sheila

2005-08-11, 5:52 pm

Hi,

I published a orchestration web service and tested working fine when calling
this web service from a windows application. The web service reference URL is
defined in web service properties. Now I want the application to dynamically
access the Webservices at run time. I tried changing the web service url in
app.config file but it doesn't work. Does anybody know what could be the
reason. Is there any other way to do it.

Thanks in advance.
Selvan

2005-09-14, 7:48 am

Sheila,

You can access webservice dynamically using URL property of the
webservice proxy class. Open Reference.cs from your client project and
override the constructor like below shown code.

public Service1(string urlDynamic) // Say Service1 is your Proxy constructor
{
this.Url =urlDynamic;
}

Form your client code you instantiate the webservice like

localhost.Service1 objTest = new localhost.Service1(
"http://<dynamicaddress>/Test/Service1.asmx");
string retVal=objTest.HelloWorld("Selvan");

Hope this help.

Cheers...
Tamilselvan Subramanian,
Integration Analyst,
IBM Global Services India Ltd.

"Sheila" wrote:

> Hi,
>
> I published a orchestration web service and tested working fine when calling
> this web service from a windows application. The web service reference URL is
> defined in web service properties. Now I want the application to dynamically
> access the Webservices at run time. I tried changing the web service url in
> app.config file but it doesn't work. Does anybody know what could be the
> reason. Is there any other way to do it.
>
> Thanks in advance.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com