Web service referecing problem
-
Monday, July 30, 2012 8:14 AM
Hi All,
I'm trying to import a web-service and i'm getting the following error. I tried googling it but I can't find a solution.
I right click on add service reference. I click on advanced -> Add Web Reference. Then I type my url click on the green button next to it and the service web page pops up with all the method it has below.I cannot add the reference because of the error below.
Operation is not valid due to the current state of the object.
Also when I right click on add service reference type the URL I get this message.
Metadata contains a reference that cannot be resolved: 'http://ctstage.businessgenetics.co.za/webservice/webmethods.asmx'.
The remote server returned an unexpected response: (407) Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ).
The remote server returned an error: (407) Proxy Authentication Required.
If the service is defined in the current solution, try building the solution and adding the service reference again.I'm guessing this has to do with my proxy in visual studio. Can someone maybe point me where to go step by step.Kind Regards,
Konrad
- Moved by Bob ShenMicrosoft Contingent Staff Tuesday, August 07, 2012 9:38 AM (From:Visual C# Language)
All Replies
-
Monday, July 30, 2012 8:18 AM
Hi.
Have you in your internet explorer settings a proxy set?
Regards,
Bubu
http://zsvipullo.blogspot.it -
Monday, July 30, 2012 8:36 AM
Hi,
Thanx for the reply. I did already try that, then restart visual studio and i'm still getting same error.
Kind Regards,
Konrad
-
Monday, July 30, 2012 8:50 AMFrom your IE are you able to navigate endponit?
Regards,
Bubu
http://zsvipullo.blogspot.it -
Monday, July 30, 2012 8:58 AM
Yes I am. When I try add the web service in the advanced panel the web service even pops up in the web browser below where you type the url in.
Right click add service reference - > advanced -> Add Web Reference
Kind Regards,
Konrad
-
Monday, July 30, 2012 9:00 AM
This url also?
http://ctstage.businessgenetics.co.za/webservice/webmethods.asmx
Regards,
Bubu
http://zsvipullo.blogspot.it -
Monday, July 30, 2012 9:13 AMYip.
-
Monday, July 30, 2012 9:16 AM
You can try to navigate the wsdl and then try to navigate all reference.
In my opinion the problem is purely infra: the firewall or who for him (fore front) will lock the navigation towards something.Regards,
Bubu
http://zsvipullo.blogspot.it -
Monday, July 30, 2012 9:24 AM
Thanx, thats also what I was guessing.
Kind Regards,
Konrad
-
Monday, July 30, 2012 10:27 AM
-
Tuesday, August 07, 2012 9:38 AM
Hi Guculuma,
According to your description, I'd like to move this thread to ASMX Web Services and XML Serialization Forum for better support, where more experts live.
Thanks for your understanding.Bob Shen [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, August 08, 2012 4:49 PMModeratorWhy did you use "Add Web Reference"? Did "Add Service Reference" not work? That's what you should use, in general.
John Saunders
WCF is Web Services. They are not two separate things.
Use WCF for All New Web Service Development, instead of legacy ASMX or obsolete WSE
Use File->New Project to create Web Service Projects

