cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
778
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: Stephan Steiner on 23-09-2013 10:53:19 AM
Hi
When I try to add https://mycucm:8443/realtimeservice/services/RisPort70?wsdl or https://<ServerName>:8443/realtimeservice2/services/RISService70?wsdl as a service reference in Visual Studio (2010 or 2012), after the usual certificate error I get a popup asking for credentials 3 times, then the operation is aborted with the error
1There was an error downloading 'https://chdevcucm91.nxodev.intra:8443/realtimeservice/services/RisPort70?wsdl'.
2The request failed with HTTP status 505: HTTP Version Not Supported.
3Metadata contains a reference that cannot be resolved: 'https://chdevcucm91.nxodev.intra:8443/realtimeservice/services/RisPort70?wsdl'.
4The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="Cisco VTG Realm"'.
5The remote server returned an error: (401) Unauthorized.
6If the service is defined in the current solution, try building the solution and adding the service reference again.
Is there any way to successfully add a risport service reference to my project or will I have to resort to going down the manual route again? Back with CUCM 5/6 I had issues with the service but I was kinda hoping things were better now.

Cheers
Stephan

Subject: RE: adding risport service reference in Visual Studio fails
Replied by: David Staudt on 23-09-2013 12:18:29 PM
The wsdl does appear to require valid admin credentials to download from UCM.  From the error message in your post it looks like VS is attempting to download it with Anonymous or no credentials.

Just testing with a browser I can specify the credentials in the URL like this:and I don't get a login prompt.  Perhaps this will work with VS...otherwise you may need to download the wsdl and host from another web server.  (You used to be able to import the wsdl via a file:/// URL, but I think that stopped working in recent VS versions...)

Subject: RE: adding risport service reference in Visual Studio fails
Replied by: Stephan Steiner on 23-09-2013 02:00:51 PM
I had already accessed the page from a browser - where it works. It's just that this is a lot less convenient since you then have to generate the proxy stub using svcutil.exe. It does work though - I'm now building a test project to see if the proxy stub actually works.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links