INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Cannot connect to web service with Visual Studio 2010 & 2012  (Read 3605 times)

windforce

  • Recent member
  • *
  • Posts: 5
Cannot connect to web service with Visual Studio 2010 & 2012
« on: February 18, 2014, 10:18:15 pm »

When trying to connect to the JRiver web service with Visual Studio I get at error.  Any suggestions?


Error:
The request failed with the error message:
--
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<Response Status="Failure" Information="Function &apos;WSDL/_vti_bin/ListData&apos; not found."/>

--.
Metadata contains a reference that cannot be resolved: 'http://myserver:52199/MCWS/v1/WSDL'.
The content type text/xml ; charset="utf-8" of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<wsdl:description xmlns:wsdl="http://www.w3.org/ns/wsdl" xmlns:whttp="http://www.w3.org/ns/wsdl/http" targetNamespace="/MCWS/v1/wsdl" xmlns:tns="/MCWS/v1/wsdl">
<wsdl:documentation>WSDL 2.0 description of the MCWS web service.</wsdl:documentation>
<wsdl:interface name="MCWSInterface">
<wsdl:operation name="Alive">
<wsdl:documentation>Simple query to ensure the server is running and to check versions.</wsdl:documentation>
</wsdl:operation>
<wsdl:operation name="Authenticate">
<wsdl:documentation>Simple query to test and establish authentication.</wsdl:documentation>
</wsdl:operation>
<wsdl:operation name="Playback/PlayPause">
<wsdl:documentation>Start playback or toggle the pause state.</wsdl:documentation>
</wsdl:operation>
<wsdl:operation name="Playback/Pause">
<wsdl:documentation>Set the pause state.</wsdl:documentation>
</wsdl:operation>
<wsdl:operation name="Playback/Next">
<wsdl:documentation>Advance to the next track.</wsdl:docume'.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Logged

Don W

  • World Citizen
  • ***
  • Posts: 185
Re: Cannot connect to web service with Visual Studio 2010 & 2012
« Reply #1 on: February 19, 2014, 11:40:13 am »

I had this problem a while ago. You are trying to add a web service reference to MCWS but it isn't working. I'm not exactly sure why it doesn't work, unless it is simply that MCWS isn't compatible with WCF. I gave up trying and started using HttpClient which works great. That's in namespace System.Net.Http.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Cannot connect to web service with Visual Studio 2010 & 2012
« Reply #2 on: February 19, 2014, 12:36:11 pm »

MC's web API is REST, not SOAP:
http://searchsoa.techtarget.com/tip/REST-vs-SOAP-How-to-choose-the-best-Web-service

An easy way to access it via .NET would be RestSharp:
http://restsharp.org
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up