掲示板

Consuming SOAP service in liferay 6.2

thumbnail
6年前 に Kowbathullah Gnaniyar によって更新されました。

Consuming SOAP service in liferay 6.2

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
Hi,
I am invoking SOAP web services in liferay 6.2 . I am able to access the url in browser , no issues. i executed below json script through JSONWS API , it works fine.
http://localhost:8080/api/jsonws,


But invoking SOAP service causing the AxisFault issue. i have consumed Liferay services through SOAP in all old version the same way. But now I think some issues in Liferay setup of mine or some client classes issue? . Any idea guys?

Here is my url:
http://127.0.0.1:8080/api/secure/axis/Portal_UserService


and i tried this below url in browser , it works perfectly well.

http://<user ID\>:<password\>@<server name\>:<port number\>/api/axis

Issue:
Jun 13, 2017 1:35:05 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)Not Found
faultActor:
faultNode:
faultDetail:
{}:return code: 404
&lt;html&gt;

&lt;head&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta content=&quot;1; url=/c&quot; http-equiv=&quot;refresh&quot; /&gt;
&lt;/head&gt;

&lt;body onload=&quot;javascript:location.replace('/c')&quot;&gt;

&lt;!--
The numbers below are used to fill up space so that this works properly in IE.
See http://support.microsoft.com/default.aspx?scid=kb;en-us;Q294807 for more
information on why this is necessary.

12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
12345678901234567890123456789012345678901234567890123456789012345678901234567890
--&gt;

&lt;/body&gt;
&lt;/html&gt;

{http://xml.apache.org/axis/}HttpErrorCode:404

(404)Not Found
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at edu.jhu.cvrg.liferay.portlet.documentlibrary.service.http.Portlet_DL_DLAppServiceSoapBindingStub.getFolders(Portlet_DL_DLAppServiceSoapBindingStub.java:2446)
at com.test.liferay.(ClientTest.java:32)
thumbnail
6年前 に Kowbathullah Gnaniyar によって更新されました。

RE: Consuming SOAP service in liferay 6.2

Liferay Master 投稿: 722 参加年月日: 07/12/19 最新の投稿
Issues is resolved by these steps:

1. adding these jars in classpath

axis.jar
commons-discovery.jar
commons-logging.jar
jaxrpc.jar
log4j-1.2.8.jar
saaj.jar
wsdl4j.jar



2. change the end point url to

A. http://127.0.0.1:8080/api/axis/Portal_UserService



instead of

B. http://127.0.0.1:8080/api/secure/axis/Portal_UserService



But Liferay previous version (6.1) , we should form the url like this for SOAP access
http://localhost:8080/tunnel-web/axis

and from 6.2 , we should invoke SOAP services by secure url only ( B ). but why it is not accepting ? Any guess?