|
-
October 18th, 2009, 08:53 AM
#1
Calling Webservice from C
i created the C Console project in .Net framework (VS 2003) and added the web reference to .Net webservice.
This has created a "Service" namespace, and using which i'm able to invoke the webservice from C project.
All is fine now, but i need to change the webservice address URL dynamically - so how do i do it?
any input will be appreciated.
Thanks
Venu
Venu Bharadwaj
"Dream it. U can do it!"
-
October 18th, 2009, 10:19 AM
#2
Re: Calling Webservice from C
When WEB reference is added, VS Wizard generates class wrapper for given WEB service. In the code you use instance of this wrapper. This wrapper class must have a property like "URL". Change it dynamically in the code to use another address.
Notice that wrapper works only for WEB service with the same interface. You cannot use one wrapper to access different WEB services.
In any case, you can get more information in the C# forum, because anyone doesn't use managed C++ for such tasks. Also, managed C++ syntax used in VS2003 was changed in 2005. VS 2003 managed C++ language is now like VB6 - rewrite your code ASAP in another language.
Last edited by Alex F; October 18th, 2009 at 10:23 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|