Web Service using .NET--error

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 11:56 PM
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]
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]
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2010 09:47 PM
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??
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??
