Answered by:
Consume java webservice in C# by using web.config instead of adding webreference?

Question
-
Currently i am consuming a java webservice in C# using WebReference. Everytime, webservice url change i need to give a new build. Is there an alternate way for this? Can i fully consume the java webservice from web.config instead of adding webreference?
http://www.selvaonline.com - Live a Happy & Balanced Life
- Moved by Lisa Zhu Wednesday, October 10, 2012 10:11 AM (From:Visual C# General)
Tuesday, October 2, 2012 4:35 PM
Answers
-
does this thread address your issue?
- Proposed as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 8:53 PM
- Marked as answer by Just Karl Wednesday, October 17, 2012 1:52 PM
Wednesday, October 10, 2012 10:34 AMAnswerer -
does this thread address your issue?
If not, try asking in that forum: http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
Or another ASP forum: http://forums.asp.net/
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 8:54 PM
- Marked as answer by Just Karl Wednesday, October 17, 2012 1:52 PM
Wednesday, October 10, 2012 8:54 PM
All replies
-
I've only done this in SSIS and using VB for the script task, so forgive me if this idea is wrong... Does your web service have a .url property to it? At which point you can use the configuration manager to point to an app setting for its value.
I use a c# based web service that in my ASP.NET applications the address of the Web reference is actually in an AppSetting generated by the code in the config file. Not sure how it differs from a Java based web service.
Tuesday, October 2, 2012 5:26 PM -
Hi SelvaOnline,
Thank you for visiting the MSDN forum. I’m afraid that it is not the correct forum about this issue. I am moving your question to the moderator forum ("Where is the forum for..?").
The owner of the forum will direct you to a right forum.
Thanks for your understanding.
Regards,
Lisa Zhu [MSFT]
MSDN Community Support | Feedback to us
Wednesday, October 10, 2012 10:10 AM -
i guess web service should be language independant, so when you have a config file and add web service as reference, you will have a section in the config file where you can see the address of the web service. Well, for new methods/ variables added to the web service, you will have to add the web reference eveytime since all those methods/variabels are stored locally in a .cs file called Reference.cs to the project. But it the address is changed then maybe you can change only in the config file, it should work.
regards
joon
Wednesday, October 10, 2012 10:14 AM -
does this thread address your issue?
- Proposed as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 8:53 PM
- Marked as answer by Just Karl Wednesday, October 17, 2012 1:52 PM
Wednesday, October 10, 2012 10:34 AMAnswerer -
does this thread address your issue?
If not, try asking in that forum: http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
Or another ASP forum: http://forums.asp.net/
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Twitter, Wiki)
- Proposed as answer by Ed Price - MSFTMicrosoft employee Wednesday, October 10, 2012 8:54 PM
- Marked as answer by Just Karl Wednesday, October 17, 2012 1:52 PM
Wednesday, October 10, 2012 8:54 PM