Fórumok

Portal_CompanyService not found 404

Michael Oliver, módosítva 9 év-val korábban

Portal_CompanyService not found 404

Junior Member Bejegyzések: 66 Csatlakozás dátuma: 2012.04.19. Legújabb bejegyzések
I am trying to build an integration with Liferay 6.2 that will use the SOAP interfaces.

Following the documentation at https://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/soap-web-services

In this section of the code

// Locate the Company
            CompanyServiceSoapServiceLocator locatorCompany =
                new CompanyServiceSoapServiceLocator();

            CompanyServiceSoap soapCompany =
                locatorCompany.getPortal_CompanyService(
                    _getURL(remoteUser, password, serviceCompanyName,
                            true));

            CompanySoap companySoap =
                soapCompany.getCompanyByVirtualHost(virtualHost);



at the getCompanyByVirtualHost(virtualHost)

I am getting

org.apache.axis.AxisFault(404)Not Found


If I go to http://sfo9:test@localhost:8080/api/secure/axis/Portal_CompanyService?wsdl

I tried with test:test, and with sfo9:test after resetting the password to test, all the same 404 on that service.

I get redirected to the login page

What am I missing?
thumbnail
Pankaj Kathiriya, módosítva 9 év-val korábban

RE: Portal_CompanyService not found 404

Liferay Master Bejegyzések: 722 Csatlakozás dátuma: 2010.08.05. Legújabb bejegyzések
Is your authentication is based on screen name? If no then try giving email address in url

For Example: http://sfo9@liferay.com:test@localhost:8080/api/secure/axis/Portal_CompanyService?wsdl
Michael Oliver, módosítva 9 év-val korábban

RE: Portal_CompanyService not found 404

Junior Member Bejegyzések: 66 Csatlakozás dátuma: 2012.04.19. Legújabb bejegyzések
Yes it is by screen name, and tried several active account combinations.

Apparently things have changed and api/secure/axis doesn't work, and api/axis does, at least so far.

Mike
thumbnail
lucas theisen, módosítva 9 év-val korábban

RE: Portal_CompanyService not found 404

New Member Bejegyzések: 19 Csatlakozás dátuma: 2011.03.02. Legújabb bejegyzések
According to the developer documentation:

Prior to Liferay 6.2, there were two different URLs for accessing remote Liferay services. http://[host]:[port]/api/secure/axis was for services requiring authentication and http://[host]:[port]/api/axis was for services that didn’t require authentication. As of Liferay 6.2, all remote Liferay services require authentication and the http://[host]:[port]/api/axis URL is used to access them.