Essentially I am trying to create a simple SOAP Webservice in Java, Maven, and Spring. I have tried following tutorials, books, and just hacking at it. Can anyone help please.
Background
What I'm trying to achieve
What I have tried:
1. Creating a web service with "Top down Java bean Web Service" type pointing to the wsdl, VMware server.
Problems:
2. Created an SomeNameEndpoint.java file and generated a web service project from this.
Looking at the localhost:8080 shows a running virtual web server page.
package shlonline.integration.endpoints; import javax.jws.WebMethod; import javax.jws.WebService; import org.springframework.web.context.support.SpringBeanAutowiringSupport; @WebService(serviceName = "myServiceName") public class myServiceEndPoint extends SpringBeanAutowiringSupport { @WebMethod public boolean runWebMethod(String input) { return false; } }
Problems:
This tutorial along was really helpful for me, the project is available for github download, and uses maven and spring web services. It uses spring-ws with spring annotations of @Endpoint and @PayloadRoot annotations rather than the @WebService you have above.
http://briansjavablog.blogspot.com/2013/01/spring-web-services-tutorial.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.