cancel
Showing results for 
Search instead for 
Did you mean: 

Using Alfresco Webservice in .NET (VB.net)

maheshlinga
Champ in-the-making
Champ in-the-making
Hi,

I downloaded the project Dotnet2 ,which when I opened in Visual Studio and try build the solution, I was getting the following errors:

*************************************************************

Error   3   The best overloaded method match for 'Alfresco.WebServiceFactory.addSecurityHeader(Microsoft.Web.Services3.WebServicesClientProtocol)' has some invalid arguments   C:\Documents and Settings\mlinga\My Documents\alfresco-dotNet-0[1].2Beta\Alfresco\WebServiceFactory.cs   146   13   Alfresco
Error   4   Argument '1': cannot convert from 'Alfresco.AuthoringWebService.AuthoringService' to 'Microsoft.Web.Services3.WebServicesClientProtocol'   C:\Documents and Settings\mlinga\My Documents\alfresco-dotNet-0[1].2Beta\Alfresco\WebServiceFactory.cs   146   31   Alfresco
Error   5   The best overloaded method match for 'Alfresco.WebServiceFactory.addSecurityHeader(Microsoft.Web.Services3.WebServicesClientProtocol)' has some invalid arguments   C:\Documents and Settings\mlinga\My Documents\alfresco-dotNet-0[1].2Beta\Alfresco\WebServiceFactory.cs   172   13   Alfresco
Error   6   Argument '1': cannot convert from 'Alfresco.ActionWebService.ActionService' to 'Microsoft.Web.Services3.WebServicesClientProtocol'   C:\Documents and Settings\mlinga\My Documents\alfresco-dotNet-0[1].2Beta\Alfresco\WebServiceFactory.cs   172   31   Alfresco
Error   7   The best overloaded method match for 'Alfresco.WebServiceFactory.addSecurityHeader(Microsoft.Web.Services3.WebServicesClientProtocol)' has some invalid arguments   C:\Documents and Settings\mlinga\My Documents\alfresco-dotNet-0[1].2Beta\Alfresco\WebServiceFactory.cs   185   13   Alfresco
Error   8   Argument '1': cannot convert from 'Alfresco.AccessControlWebService.AccessControlService' to 'Microsoft.Web.Services3.WebServicesClientProtocol'   C:\Documents and Settings\mlinga\My Documents\alfresco-dotNet-0[1].2Beta\Alfresco\WebServiceFactory.cs   185   31   Alfresco
*************************************************************
I am .net developer intend to us the Alfresco webservices.

Alfresco is running on Tomcat server in my system.I want to use local alfresco webservices.
Is there any thing to change in the project like Webservice reference to get rid of those errors?

Else could any one pls post a .NET sample code of using local Alfresco webservices ,just to show me the Way I have to approach.An example like uploading an image to local alfresco server will really help.

Thanks in advance.
Mahesh
15 REPLIES 15

snig
Champ in-the-making
Champ in-the-making
Hi Mahesh

I was also trying to use .NET to invoke alfresco web services. I came across this entry of yours where you tried the same thing as well.

However, you mentioned, you have downloaded a project Dotnet2 regarding this… can you please tell me from where you have downloaded this? Any success in invoking the web service in .NET?

Thanks
Snig.

snig
Champ in-the-making
Champ in-the-making
Found it…
Thanks…

iganeshshenoy
Champ in-the-making
Champ in-the-making
Were you able to solve "addsecurityheader" problem?

jharrop
Champ in-the-making
Champ in-the-making
In Visual Studio, use the WSE 3 config tool.

Check the box to enable your project for Web Services Enhancements.

In the Security Tokens Managers box, Add a UsernameTokenManager

Check Enable Policy.  You can see my policy at http://dev.plutext.org/trac/plutext-client-word2007/browser/trunk/plutext-client-word2007/wse3policy...

I'm actually using Alfresco Webservices from C#, but the idea should be the same.

Finally, see getWebservice() method in http://dev.plutext.org/trac/plutext-client-word2007/browser/trunk/plutext-client-word2007/ChunkServi...

Hope this helps.

cheers,

Jason

iganeshshenoy
Champ in-the-making
Champ in-the-making
Thank you very much for the solution….

Regards,
Ganesh

alex--70
Champ in-the-making
Champ in-the-making
Escuse me, i have the same problem with C# and web service and the metod "addSecurityHeader" but i don't understand how have you resolved this future.

Can you help me ?

Regards
Alessandro

jharrop
Champ in-the-making
Champ in-the-making
Escuse me, i have the same problem with C# and web service and the metod "addSecurityHeader" but i don't understand how have you resolved this future.

Where in my recipe did you get stuck?

alex--70
Champ in-the-making
Champ in-the-making
I use visual studio 2008, do you know if the WSE 3 run correctly ?

Thank again

Alex

jharrop
Champ in-the-making
Champ in-the-making
I use visual studio 2008, do you know if the WSE 3 run correctly ?

It doesn't see http://devlicio.us/blogs/derik_whittaker/archive/2008/04/03/wse-3-0-support-in-visual-studio-2008-ha...

Your alternative is to see whether you can get it working with WCF (in which case, please let us know how you go…).