AnsweredAssumed Answered

Generate WS Clients with JDeveloper

Question asked by tremal on Jun 15, 2011

I need generate my own WS from the WSDL in Alfresco 3.4.d.

I'm using JDeveloper and I have created successfully the  AuthenticathionService & RepositoryService.

The first works fine, but the next code

try {
  AuthenticationServiceSoapBinding_Stub authenticationService =
    (AuthenticationServiceSoapBinding_Stub) new AuthenticationService_Impl().getAuthenticationService();
  AuthenticationResult result = authenticationService.startSession(user,pass);

  RepositoryServiceSoapBinding_Stub repositoryService =
    (RepositoryServiceSoapBinding_Stub) new RepositoryService_Impl().getRepositoryService();

  Store spacesStore = new Store(Constants.WORKSPACE_STORE,"SpacesStore");

  try {
    queryResult = repositoryService.query(spacesStore, query, true, qConf);
  } catch (RepositoryFault e) {
  } catch (RemoteException e) {

But when I execute this example I obtanin the next error:

javax.xml.rpc.soap.SOAPFaultException: WSDoAllReceiver: Request does not contain required Security header

So, how can I set the securoty header before sending? Thanks