cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot log when calling web services alfresco

denisdavydov
Champ in-the-making
Champ in-the-making
When calling the web service
http://127.0.0.1:8080/alfresco/api/ContentService?WSDL
i see the window of login and password with the message "server Alfresco СontentService tenant", but admin/admin is not suitable
In the Internet could not find a solution. Any ideas?
10 REPLIES 10

abarisone
Star Contributor
Star Contributor
Which system configuration are you running?
You should call this <a>http://127.0.0.1:8080/alfresco/api/ContentService?wsdl</a>, with lowercase wsdl.
This gives you the WebService Description Language of all portTypes, operations, bindings and so on which are available.

Regards,
Andrea

Yes,
http://127.0.0.1:8080/alfresco/api/ContentService?wsdl
also ask login and password (admin/admin not working)
Configuration:
- Windows 8
- alfresco community-4.2.f (alfresco-community-4.2.f-installer-win-x64)
all default
admin password - admin

http://127.0.0.1:8080/share/page/user/admin/dashboard
is working with admin/admin (pic 1)
Similarly, when debugging the example of the alfresco SDK (project WebServiceSample) - error when authentication (pic 2)

I see you're using Chrome, try with Explorer, just for sake od curiosity.
I don't know if Windows 8 is a supported stack, but if Share works…
The call to the webservice endpoint should not ask you for authentication, since it is usually public.
Maybe be are you passing through a proxy or firewall?

Regards,
Andrea

Tried in IE , Firefox , disabling corporate proxy. The result is the same : the refusal of authorization fails with:

{
    "status" :
  {
    "code" : 401,
    "name" : "Unauthorized",
    "description" : "The request requires HTTP authentication."
  }, 
 
  "message" : "03020018 Authentication failed for Web Script network", 
  "exception" : "org.springframework.extensions.webscripts.WebScriptException - 03020018 Authentication failed for Web Script network",
 
  "callstack" :
  [
       ""      ,"org.springframework.extensions.webscripts.WebScriptException: 03020018 Authentication failed for Web Script network"
      ,"org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:345)"
      ,"org.alfresco.rest.api.PublicApiRepositoryContainer.access$101(PublicApiRepositoryContainer.java:26)"
      ,"org.alfresco.rest.api.PublicApiRepositoryContainer$2.doWork(PublicApiRepositoryContainer.java:99)"
      ,"org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119)"
      ,"org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88)"
      ,"org.alfresco.rest.api.PublicApiRepositoryContainer.executeScript(PublicApiRepositoryContainer.java:95)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)"
      ,"org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)"
      ,"org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:74)"
      ,"org.alfresco.rest.api.PublicApiWebScriptServlet.service(PublicApiWebScriptServlet.java:53)"
      ,"javax.servlet.http.HttpServlet.service(HttpServlet.java:727)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
      ,"org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
      ,"org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)"
      ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)"
      ,"org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)"
      ,"org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)"
      ,"org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)"
      ,"org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)"
      ,"org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)"
      ,"org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)"
      ,"org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)"
      ,"org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)"
      ,"org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)"
      ,"org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)"
      ,"org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)"
      ,"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2441)"
      ,"org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2430)"
      ,"java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)"
      ,"java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)"
      ,"java.lang.Thread.run(Unknown Source)"

  ],
 
  "server" : "Community v4.2.0 (r63893-b12) schema 6 033",
  "time" : "02.04.2014 18:12:29"
}

PS: the same situation on two other machines. This cannot be explained by the peculiarities of this version?

I don't think it's a peculiarity of this version since I installed it on my Windows 7 laptop and it works without any problem.
Could it be a behaviour under a Windows 8 machine?

Regards,
Andrea

It's been tested on Win Server 2003, Windows XP
May be, something wrong with our corporative proxy settings. But with any other applications to our corporate network there are no problem. It is strange that it is wrong with alfresco (((

I found a solution
In 4/2d the service is transferred to /alfresco/soapapi/
http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services

mrogers
Star Contributor
Star Contributor
The soap stuff is not on that URL on 4.2 it moved.

The public API is on alfresco/api

denisdavydov
Champ in-the-making
Champ in-the-making
Thank you!
Can you give a link to documentation ,as I found nothing new about moving API
And it is strange that the latest SDK uses the old URL, and when you run the examples (the above is a screenshot) gives the same error.