AnsweredAssumed Answered

.Net 3.5 and Web Services

Question asked by alnedru on Mar 18, 2013
Recently i started an implementation of alfresco services in my .net solution. But I've come across ome issues about it, basically the first issue is that i couldn't add a reference of those web services in my solution. I got like the adress doens't have the discovery file available, so i couldn't add the reference.

Here are the examples of the services links:

I'm using Visual Studio 2008, and I haven't found any of the other possible issues with this …

Ok I read on some websites that using WSE for VS could help but yeah there they speak of .NET 2.0 and VS2005, but in MSDN they say WCE is obsolete and is better not to use anymore, but instead of using WCF …. but anyways i don't understand how can i add the references to solution ..

Any idea on this? And how can i check if the discovery file exists or not, should it be mentioned anywhere in xml?
Because if i open the file in IE it opens me an xml document with the service so it is accisble.


Second big question, ok lets assume it is not possible, with the tool wsdl I could generate a proxy class, but in that proxy class i have a reference for example in constructor:

        public AuthenticationService() {
            this.Url = "http://localhost:8080/alfresco/api/AuthenticationService";

Which tries to make connection to local host but alfresco is running in different environment .. so it should fail, but i change then this url to:


But then it say it cannot find anything.
If i set it:

Then it gives an error something with xml:
Client found response content type of 'text/html', but expected 'text/xml'.
The request failed with the error message:

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions name="authentication-service"
.. (xml stuff)

So i really don't know how to consume and use this web services of alfresco …

Any idea is welcome

Normally it should be much easier just add a reference to solution and start coding and here yeah one problem after another ..

Any input help is needed really.