掲示板
Make a SOAP client with JAX-WS for external Services
7年前 に Antonio Musarra によって更新されました。
Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
I would like make this question.
Any of you can you indicate how to make a SOAP client with JAX-WS within the context of Liferay 7?
In other OSGi contexts, outside Liferay I never had problems to realize SAOP client.
I've developed (as bundle OSGi) a client soap JAX-WS that not function properly inside Liferay OSGi context. When I call the service I get the following exception.
In OSGi framework it seems to be missing the implementation of the javax.xml.ws.spi.Provider interface .
Have any of you had the same problem?
Thank you.
Any of you can you indicate how to make a SOAP client with JAX-WS within the context of Liferay 7?
In other OSGi contexts, outside Liferay I never had problems to realize SAOP client.
I've developed (as bundle OSGi) a client soap JAX-WS that not function properly inside Liferay OSGi context. When I call the service I get the following exception.
[...]
javax.xml.ws.WebServiceException: Unable to createEndpointReference Provider
at javax.xml.ws.spi.Provider.provider(Provider.java:160)
at javax.xml.ws.Service.<init>(Service.java:92)
at javax.xml.ws.Service.create(Service.java:722)
[...]
</init>
In OSGi framework it seems to be missing the implementation of the javax.xml.ws.spi.Provider interface .
Have any of you had the same problem?
Thank you.
7年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
Hi to all. Resolved :-)
I have adopted this solution that works:
1. Installed on the Felix OSGi container the Apache CXF 3.1 bundle (DOSGi)
2. I created a bundle that implements a SOAP client to a virus scanning service.
A brief on my blog (http://www.dontesta.it/blog) I will write an article on the subject.
Bye,
Antonio.
I have adopted this solution that works:
1. Installed on the Felix OSGi container the Apache CXF 3.1 bundle (DOSGi)
2. I created a bundle that implements a SOAP client to a virus scanning service.
A brief on my blog (http://www.dontesta.it/blog) I will write an article on the subject.
Bye,
Antonio.
7年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
I've recently published a related article on my blog. At this moment the article it's written in italian, soon I will publish the article also in english language.
Bye,
Antonio.
Bye,
Antonio.
7年前 に Jan Rodan によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
New Member 投稿: 7 参加年月日: 12/06/01 最新の投稿Antonio Musarra:
I've recently published a related article on my blog. At this moment the article it's written in italian, soon I will publish the article also in english language.
Bye,
Antonio.
Hi,
this workaround solved our problem! Thanks for that.
I've seen that someone also created a LR Bug already:
https://issues.liferay.com/browse/LPS-67253
The reason should be, that a package which is needed will not be provided by the LR customised CXF package.
Regards
Jan
7年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
Hi Jan.
I'm glad that my article has been helpful to you.
Bye,
Antonio.
I'm glad that my article has been helpful to you.
Bye,
Antonio.
6年前 に pleo84 84 によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
New Member 投稿: 18 参加年月日: 17/03/26 最新の投稿
Hi Antonio,
i've red your article but i haven't found solution for my problem.
I've got a SOAP service developed by JAX-WS and a client jar that invoke it correctly (tested in classic Java project under Eclipse).
I'm trying to use this jar in a Liferay 7 Module but i receive always the error
I've installed the CXF bundle as you explain and do a lots try but nothing.
Could you help me?
Thanks in advance and see you! (i'm italian too )
i've red your article but i haven't found solution for my problem.
I've got a SOAP service developed by JAX-WS and a client jar that invoke it correctly (tested in classic Java project under Eclipse).
I'm trying to use this jar in a Liferay 7 Module but i receive always the error
javax.xml.ws.WebServiceException: Unable to createEndpointReference Provider
at javax.xml.ws.spi.Provider.provider(Provider.java:160)
at javax.xml.ws.Service.<init>(Service.java:92)</init>
I've installed the CXF bundle as you explain and do a lots try but nothing.
Could you help me?
Thanks in advance and see you! (i'm italian too )
6年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
Hi, you can see this source CRMSOAPService.java and see this update post Liferay 7 GA4: Quali sono le novità su Apache CXF?
Bye,
Antonio.
Bye,
Antonio.
5年前 に Manish Kumar Jaiswal によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Regular Member 投稿: 153 参加年月日: 08/11/25 最新の投稿Hello Antonio
By any chance is your article available in English Now for creating SOAP Client in Liferay Context ?
Thanks in advance
Manish
5年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿No, at the moment I do not have time to do it in English.
Sorry,
Antonio.
3年前 に Vishal Srivastava によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 26 参加年月日: 14/07/07 最新の投稿
Hi Anotnio,Thanks for the Blog!!Its really helpful, Only issue which i am getting from the sample application which you have created is:I cant call the service from the Web Module.Steps:1. I created a service builder project and deleted service.xml file after that i updated build.gradle withjaxws {
wsdlDir = 'src/main/resources/META-INF/wsdl'
generatedSources = 'generatedsources/src/main/java'
}
2. Generate the Source under calculator-service module3. Created same structure under calculator-api as per your blog4. Create a Web MVC Framework and once calling the service layer i get Connection Time Out Error.Can you please help on the same!!Thanks in Advance
Regards,
Vishal Srivastava
wsdlDir = 'src/main/resources/META-INF/wsdl'
generatedSources = 'generatedsources/src/main/java'
}
2. Generate the Source under calculator-service module3. Created same structure under calculator-api as per your blog4. Create a Web MVC Framework and once calling the service layer i get Connection Time Out Error.Can you please help on the same!!Thanks in Advance
Regards,
Vishal Srivastava
3年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
I guess you have read my article https://www.dontesta.it/en/2019/09/05/how-to-implement-a-soap-client-using-jax-ws-liferay-infrastructure/ You could be more precise? Could you indicate the stack trace of the error?
3年前 に Vishal Srivastava によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 26 参加年月日: 14/07/07 最新の投稿
There is no error, but when i pass data from UI the End Web Service is not called and its says Connection Time Out.http://www.dneonline.com/calculator.asmx?WSDL
Web Project is not able to call- API and Service Layer
Web Project is not able to call- API and Service Layer
3年前 に Vishal Srivastava によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 26 参加年月日: 14/07/07 最新の投稿
RE: Make a SOAP client with JAX-WS for external Services
4年前 に Aravinth Kumar によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Regular Member 投稿: 152 参加年月日: 13/06/26 最新の投稿
Hi All,
I m using liferay 7.2/Java 11 and need to develop a soap client to consume a external service using CXF. I have developed a sample client java example with CXF 3.3 version and its working as expected.
Now I m trying to make it as osgi module and getting multiple import errors continuously during deployment.
For ex: org.osgi.framework.BundleException: Could not resolve module: cxf [1090]_ Unresolved requirement: Import-Package: javax.jws; version="[2.0.0,3.0.0).
Did anyone face this issue?
Regards,
Aravinth
I m using liferay 7.2/Java 11 and need to develop a soap client to consume a external service using CXF. I have developed a sample client java example with CXF 3.3 version and its working as expected.
Now I m trying to make it as osgi module and getting multiple import errors continuously during deployment.
For ex: org.osgi.framework.BundleException: Could not resolve module: cxf [1090]_ Unresolved requirement: Import-Package: javax.jws; version="[2.0.0,3.0.0).
Did anyone face this issue?
Regards,
Aravinth
4年前 に Antonio Musarra によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 66 参加年月日: 11/08/09 最新の投稿
Hi Aravinth.You can try see this repository https://github.com/amusarra/liferay-72-soap-client-examples
4年前 に Aravinth Kumar によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Regular Member 投稿: 152 参加年月日: 13/06/26 最新の投稿
Hi Antonio,
Thanks for your support. I will work on it and will update you.
Regards,
Aravinth
Thanks for your support. I will work on it and will update you.
Regards,
Aravinth
4年前 に Andre Albert によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
New Member 投稿: 14 参加年月日: 14/03/28 最新の投稿
Hello,I am currently also working on a soap client in DXP 7.2 with java 11. I am using the GitHub repo from Antonio Musarra as a blueprint.But on runtime, Liferay gives me an error:javax.servlet.ServletException:
I know that Java11 and xml Api are a little bit tricky on OSGi. What do I need to do to run the cxf client in DXP 7.2?
Many thanks so far
javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created
with the root cause:
javax.xml.parsers.SAXParserFactory: org.apache.xerces.jaxp.SAXParserFactoryImpl not a subtype
I know that Java11 and xml Api are a little bit tricky on OSGi. What do I need to do to run the cxf client in DXP 7.2?
Many thanks so far
4年前 に Andre Albert によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
New Member 投稿: 14 参加年月日: 14/03/28 最新の投稿
I was able to remove the Xerces dependencies, but now I get a:
java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl cannot be found by
which looks like a java 11 issue. does anyone had an issue like this an could help me what is missing here?
3年前 に Christoph Rabel によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Liferay Legend 投稿: 1555 参加年月日: 09/09/24 最新の投稿
I have run into that problem before, this should help you:
https://issues.liferay.com/browse/LPS-98339
https://issues.liferay.com/browse/LPS-98339
3年前 に Vishal Srivastava によって更新されました。
RE: Make a SOAP client with JAX-WS for external Services
Junior Member 投稿: 26 参加年月日: 14/07/07 最新の投稿
Thanks Christopher ! Which DXP version you were using.As I am using Liferay 7.2 EE.I dont think the Bundle Activator can be the Ultimate Solution. Did you got the fix.