Hi there i have a need to create a soap implementation of a wsdl first
soap service. Is there any howto on how to achieve this inside a
grails project?
I have to create a server implementation of a wsdl.
This is possible with the new cxf 1.x plugin. Check out the example in the cxf test source:
CustomerServiceWsdlEndpoint.groovy -> https://github.com/thorstadt/grails-cxf/blob/master/grails-app/endpoints/org/grails/cxf/test/CustomerServiceWsdlEndpoint.groovy
CustomerService.wsdl -> https://github.com/thorstadt/grails-cxf/blob/master/src/java/org/grails/cxf/test/soap/CustomerService.wsdl
Let me know if that doesn't meet your needs.
Related
I have resteasy 3 rest web-services for which I want to add swagger documentation. I'm using Maven. I found many tutorials for jersey and spring but not for resteasy.
I created a example https://github.com/diegogusava/togus
This class do all the work: https://github.com/diegogusava/togus/blob/master/togus-rest/src/main/java/br/com/diegogusava/togus/infrastructure/RestConfiguration.java
We use Apache Ant for our project build and were thinking of extending the same for getting swagger 2.0 specs .json generated for our REST API docs. I found an ant task : https://github.com/cstroe/swagger-ant-task
which would invoke the same swagger core maven plugin, but some dependency jars have been changed in the github package due to which I am getting 'No Such Method' Exception for getApiInfo() method in ApiSourceInfo.java.
We cannot use maven just for generating API docs. I needed some help in finding a way by which I can use swagger core tool of generating docs using swagger annotations in the API definition file. Using ant wrapper for the maven plugin was one way but I am not not able to leverage it. Is there any other workaround?
Or to frame it otherwise, whats the right swagger tool/plugin to generate Swagger 2.0 jsons out of JaxRS annoations which works with ANT.
Any suggestion would be much appreciated.
Thanks
I have been handed a .WSDL file which I need to test within a Grails Framework.
Any suggestions how to go about this.
Take a look at the http://grails.org/plugin/cxf and http://grails.org/plugin/cxf-client plugins. They're easy to use and backed by Apache CXF - https://cxf.apache.org/
The client plugin has a wsdl2java script that will generate code that you can use in your Grails app.
You could start with documentation itself: http://grails.org/Calling+External+WebServices
Publishing contract first web services in Grails using cxf is not working with the following.
http://docs.codehaus.org/pages/viewpage.action?pageId=85983334. I could not find any other useful resources on this problem. Using spring-ws may not be a good idea because I don't want to create end points for each element.
Please share some resources if anybody succeeded in publishing web service using cxf in Grails?
Setup:
Grails 2.0.0
cxf - 2.4.1
Grails-cxf - 0.5.1 (Latest is not working)
Groovy - 1.7.6
I've used http://grails.org/plugin/cxf in several projects. It works great for me. What exactly goes wrong when you try?
I want to consume a web service of which I have the wsdl. I am using spring-ws and want to use marshalling/unmarshalling (jaxb) to convert xml to java and vice versa. How can I get the jaxb classes from the wsdl. Do I need access to xsd which in this case I don't have. Can I use a tool like trang to do the work?
look here http://blog.dawouds.com/2008/09/maven-2-wsdl-to-java-using-jaxb.html
You can use the tool Apache CXF to create a Web-service client in Java from the WSDL. Follow the official page: http://cxf.apache.org/docs/developing-a-consumer.html