Dynamically accessing orchestration Webservices
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Dynamically accessing orchestration Webservices




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Dynamically accessing orchestration Webservices  
Sheila


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-11-05 10: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 i
s
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.





[ Post a follow-up to this message ]



    RE: Dynamically accessing orchestration Webservices  
Selvan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
09-14-05 12:48 PM

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 calli
ng
> this web service from a windows application. The web service reference URL
 is
> defined in web service properties. Now I want the application to dynamical
ly
> access the Webservices at run time. I tried changing the web service url i
n
> 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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:03 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register