Author: dkulp
Date: Tue Dec 14 20:18:57 2010
New Revision: 1049246
URL: http://svn.apache.org/viewvc?rev=1049246&view=rev
Log:
Fix wsdl_first_soap12 to actually do the schema validation when run from
mvn
Modified:
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/GreeterImpl.java
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/Server.java
Modified:
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/GreeterImpl.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/GreeterImpl.java?rev=1049246&r1=1049245&r2=1049246&view=diff
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/GreeterImpl.java
(original)
+++
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/GreeterImpl.java
Tue Dec 14 20:18:57 2010
@@ -27,7 +27,8 @@ import org.apache.hello_world_soap12_htt
@javax.jws.WebService(portName = "SoapPort", serviceName = "SOAPService",
targetNamespace =
"http://apache.org/hello_world_soap12_http",
endpointInterface =
"org.apache.hello_world_soap12_http.Greeter")
[email protected](value =
"http://www.w3.org/2003/05/soap/bindings/HTTP/")
[email protected](value =
"http://www.w3.org/2003/05/soap/bindings/HTTP/")
[email protected]
public class GreeterImpl implements Greeter {
private static final Logger LOG =
Modified:
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/Server.java
URL:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/Server.java?rev=1049246&r1=1049245&r2=1049246&view=diff
==============================================================================
---
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/Server.java
(original)
+++
cxf/trunk/distribution/src/main/release/samples/wsdl_first_soap12/src/demo/hw/server/Server.java
Tue Dec 14 20:18:57 2010
@@ -21,18 +21,25 @@ package demo.hw.server;
import javax.xml.ws.Endpoint;
+import org.apache.cxf.jaxws.JaxWsServerFactoryBean;
+
public class Server {
- protected Server() throws Exception {
+ protected Server(String wsdl) throws Exception {
System.out.println("Starting Server");
-
- Object implementor = new GreeterImpl();
String address = "http://localhost:9000/SoapContext/SoapPort";
- Endpoint.publish(address, implementor);
+
+ System.out.println("Starting Server");
+ JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
+ //svrFactory.setServiceClass(Greeter.class);
+ svrFactory.setWsdlLocation(wsdl);
+ svrFactory.setAddress(address);
+ svrFactory.setServiceBean(new GreeterImpl());
+ svrFactory.create();
}
public static void main(String args[]) throws Exception {
- new Server();
+ new Server(args[0]);
System.out.println("Server ready...");
Thread.sleep(5 * 60 * 1000);