cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service using .NET--error

southpointtech
Champ in-the-making
Champ in-the-making
I am using the Alfresco Web Service and the startsession method provides the following with the authenticated ticket below.
Then I still get message –> Does Not Contain Security Header.  This is a windows app so can anyone say what is going on? Why is it saying there is no header when it already appears authenticated?


bool Teststring = AuthenticationUtils.IsSessionValid;  —->   RETURNS TRUE)
            string testTicket = AuthenticationUtils.Ticket;  —–> (RETURNS A VALID TICKET "TICKET_aca625c2e758afc01ed1c8a1d280eb50f600345e")

            RepositoryServiceSoapPortClient repositoryService = new RepositoryServiceSoapPortClient("RepositoryService");


QueryResult result = WebServiceFactory.getRepositoryService().queryChildren(queryCfg, reference);



Returns a valid repository object but when I call the method .queryChildren(queryCfg, reference) I get

+      base   {"WSDoAllReceiver: Request does not contain required Security header"}   System.ServiceModel.CommunicationException {System.ServiceModel.FaultException}

[size=150]Any ideas what is happening?[/size]
1 REPLY 1

southpointtech
Champ in-the-making
Champ in-the-making
Can anyone from Alfresco provide any feedback please?????

The wsdl seems to have RepositoryServiceSoapPortClient instead of RepositoryService as the class. Am I missing something here?

RepositoryServiceSoapPortClient has all of the necessary methods but i am failing authentication. Does this require a JIRA ticket??