You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2017/01/30 16:40:53 UTC
cxf git commit: Remove xmlbeans sample
Repository: cxf
Updated Branches:
refs/heads/master 76d165c9f -> 333632ee0
Remove xmlbeans sample
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/333632ee
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/333632ee
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/333632ee
Branch: refs/heads/master
Commit: 333632ee013b26b6ed15d05818971d83927bd43d
Parents: 76d165c
Author: Daniel Kulp <dk...@apache.org>
Authored: Mon Jan 30 11:40:38 2017 -0500
Committer: Daniel Kulp <dk...@apache.org>
Committed: Mon Jan 30 11:40:38 2017 -0500
----------------------------------------------------------------------
distribution/src/main/release/samples/pom.xml | 1 -
.../samples/wsdl_first_xmlbeans/README.txt | 72 ---------
.../release/samples/wsdl_first_xmlbeans/cxf.xml | 38 -----
.../release/samples/wsdl_first_xmlbeans/pom.xml | 150 -----------------
.../src/main/java/demo/hw/client/Client.java | 99 ------------
.../main/java/demo/hw/client/SpringClient.java | 85 ----------
.../main/java/demo/hw/client/client-beans.xml | 31 ----
.../main/java/demo/hw/server/GreeterImpl.java | 78 ---------
.../src/main/java/demo/hw/server/Server.java | 41 -----
.../main/java/demo/hw/server/SpringServer.java | 40 -----
.../main/java/demo/hw/server/server-beans.xml | 31 ----
.../wsdl_first_xmlbeans/wsdl/hello_world.wsdl | 161 -------------------
12 files changed, 827 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/pom.xml b/distribution/src/main/release/samples/pom.xml
index ba10c15..3d50f42 100644
--- a/distribution/src/main/release/samples/pom.xml
+++ b/distribution/src/main/release/samples/pom.xml
@@ -66,7 +66,6 @@
<module>callback</module>
<module>wsdl_first_pure_xml</module>
<module>jaxws_dispatch_provider</module>
- <module>wsdl_first_xmlbeans</module>
<module>wsdl_first_soap12</module>
<module>wsdl_first_dynamic_client</module>
<module>jms_queue</module>
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt b/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt
deleted file mode 100644
index 4d304c4..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/README.txt
+++ /dev/null
@@ -1,72 +0,0 @@
-Hello World Demo using Document/Literal Style and XMLBeans
-==========================================================
-
-This demo illustrates the use of the JAX-WS APIs and with the XMLBeans data
-binding to run a simple client against a standalone server using SOAP 1.1 over
-HTTP.
-
-It also shows how CXF configuration can be used to enable schema validation
-on the client and/or server side: By default the message parameters would not
-be validated, but the presence of the cxf.xml configuration file on
-the classpath, and its content change this default behavior:
-The configuration file specifies that
-
-a) if a JAX-WS client proxy is created for port
-{http://apache.org/hello_world_soap_http}SoapPort it should have schema
-validation enabled.
-
-b) if a JAX-WS server endpoint is created for port
-{http://apache.org/hello_world_soap_http}SoapPort it should have schema
-validation enabled.
-
-The client's second greetMe invocation causes an exception (a marshalling
-error) on the client side, i.e. before the request with the invalid parameter
-goes on the wire.
-
-After commenting the definition of the <jaxws:client> element in cxf.xml you
-will notice that the client's second greetMe invocation still throws an
-exception, but that this time the exception is caused by an unmarshalling
-error on the server side.
-
-Commenting both elements, or renaming/removing the cfg.xml file, and thus
-restoring the default behavior, results in the second greetMe invocation
-not causing an exception.
-
-Please review the README in the samples directory before continuing.
-
-Building and running the demo using Maven
----------------------------------------
-
-From the base directory of this sample (i.e., where this README file is
-located), the pom.xml file is used to build and run the demo.
-
-Using either UNIX or Windows:
-
- mvn install (builds the demo)
- mvn -Pserver (from one command line window)
- mvn -Pclient (from a second command line window)
-
-To remove the code generated from the WSDL file and the .class
-files, run "mvn clean".
-
-
-Schema Validation Exception
-----------------------------
-When running the client with mvn -Pclient, you may see exceptions like
-org.apache.xmlbeans.impl.values.XmlValueOutOfRangeException: string length (67)
-is greater than maxLength facet (30) for MyStringType in namespace
-http://apache.org/hello_world_soap_http/types
-This is to be expected because in the wsdl we include restrictions such as
- <simpleType name="MyStringType">
- <restriction base="string">
- <maxLength value="30" />
- </restriction>
- </simpleType>
-for the greetMe request message,
-and we're also enabling schema validation in our cxf.xml
- <jaxws:properties>
- <entry key="schema-validation-enabled" value="true" />
- </jaxws:properties>
-so if the greetMe request length is bigger than 30 characters, we will see
-this exception.
-
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/cxf.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/cxf.xml b/distribution/src/main/release/samples/wsdl_first_xmlbeans/cxf.xml
deleted file mode 100644
index c781f79..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/cxf.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xmlns:cxf="http://cxf.apache.org/core" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
- <!-- comment this bean to disable schema validation in the client -->
- <jaxws:client name="{http://apache.org/hello_world_soap_http}SoapPort" createdFromAPI="true">
- <jaxws:properties>
- <entry key="schema-validation-enabled" value="true"/>
- </jaxws:properties>
- <jaxws:dataBinding>
- <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding"/>
- </jaxws:dataBinding>
- </jaxws:client>
- <jaxws:endpoint name="{http://apache.org/hello_world_soap_http}SoapPort" wsdlLocation="wsdl/hello_world.wsdl" createdFromAPI="true">
- <jaxws:properties>
- <entry key="schema-validation-enabled" value="true"/>
- </jaxws:properties>
- <jaxws:dataBinding>
- <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding"/>
- </jaxws:dataBinding>
- </jaxws:endpoint>
-</beans>
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml b/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml
deleted file mode 100644
index 6524231..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/pom.xml
+++ /dev/null
@@ -1,150 +0,0 @@
-<?xml version="1.0"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>wsdl_first_xmlbeans</artifactId>
- <name>WSDL first demo using Document/Literal Style and XMLBeans DataBinding</name>
- <description>WSDL first demo using Document/Literal Style and XMLBeans DataBinding</description>
- <parent>
- <groupId>org.apache.cxf.samples</groupId>
- <artifactId>cxf-samples</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- </parent>
- <properties>
- <cxf.version>${project.version}</cxf.version>
- </properties>
- <build>
- <resources>
- <resource>
- <targetPath>schemaorg_apache_xmlbeans</targetPath>
- <directory>target/generated-sources/cxf/schemaorg_apache_xmlbeans</directory>
- <includes>
- <include> **/*.xsb </include>
- <include> **/*.class </include>
- </includes>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-codegen-plugin</artifactId>
- <version>${project.version}</version>
- <dependencies>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.1.1</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>generate-sources</id>
- <phase>generate-sources</phase>
- <configuration>
- <wsdlOptions>
- <wsdlOption>
- <wsdl>${basedir}/wsdl/hello_world.wsdl</wsdl>
- <dataBinding>xmlbeans</dataBinding>
- <faultSerialVersionUID>1</faultSerialVersionUID>
- </wsdlOption>
- </wsdlOptions>
- </configuration>
- <goals>
- <goal>wsdl2java</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <profiles>
- <profile>
- <id>server</id>
- <build>
- <defaultGoal>test</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>test</phase>
- <goals>
- <goal>java</goal>
- </goals>
- <configuration>
- <mainClass>demo.hw.server.Server</mainClass>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>client</id>
- <build>
- <defaultGoal>test</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>test</phase>
- <goals>
- <goal>java</goal>
- </goals>
- <configuration>
- <mainClass>demo.hw.client.Client</mainClass>
- <arguments>
- <argument>${basedir}/wsdl/hello_world.wsdl</argument>
- </arguments>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- </dependency>
- <!-- Jetty is needed if you're using the CXFServlet -->
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-transports-http-jetty</artifactId>
- <version>3.2.0-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.springframework</groupId>
- <artifactId>spring-context</artifactId>
- </dependency>
- </dependencies>
-</project>
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/Client.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/Client.java b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/Client.java
deleted file mode 100644
index 9544813..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/Client.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package demo.hw.client;
-
-import java.io.File;
-import java.net.URL;
-import javax.xml.namespace.QName;
-import javax.xml.ws.WebServiceException;
-import org.apache.helloWorldSoapHttp.types.FaultDetailDocument;
-import org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail;
-import org.apache.hello_world_soap_http.Greeter;
-import org.apache.hello_world_soap_http.PingMeFault;
-import org.apache.hello_world_soap_http.SOAPService;
-
-public final class Client {
-
- private static final QName SERVICE_NAME
- = new QName("http://apache.org/hello_world_soap_http", "SOAPService");
-
-
- private Client() {
- }
-
- public static void main(String args[]) throws Exception {
-
- if (args.length == 0) {
- System.out.println("please specify wsdl");
- System.exit(1);
- }
-
- URL wsdlURL;
- File wsdlFile = new File(args[0]);
- if (wsdlFile.exists()) {
- wsdlURL = wsdlFile.toURI().toURL();
- } else {
- wsdlURL = new URL(args[0]);
- }
-
- System.out.println(wsdlURL);
- SOAPService ss = new SOAPService(wsdlURL, SERVICE_NAME);
- Greeter port = ss.getSoapPort();
- String resp;
-
- System.out.println("Invoking sayHi...");
- resp = port.sayHi();
- System.out.println("Server responded with: " + resp);
- System.out.println();
-
- System.out.println("Invoking greetMe...");
- resp = port.greetMe(System.getProperty("user.name"));
- System.out.println("Server responded with: " + resp);
- System.out.println();
-
- System.out.println("Invoking greetMe with invalid length string, expecting exception...");
- try {
- resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
- } catch (WebServiceException ex) {
- System.out.println("Caught expected WebServiceException:");
- System.out.println(" " + ex.getMessage());
- }
-
- System.out.println();
-
- System.out.println("Invoking greetMeOneWay...");
- port.greetMeOneWay(System.getProperty("user.name"));
- System.out.println("No response from server as method is OneWay");
- System.out.println();
-
- try {
- System.out.println("Invoking pingMe, expecting exception...");
- port.pingMe();
- } catch (PingMeFault ex) {
- System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage());
- FaultDetailDocument detailDocument = ex.getFaultInfo();
- FaultDetail detail = detailDocument.getFaultDetail();
- System.out.println("FaultDetail major:" + detail.getMajor());
- System.out.println("FaultDetail minor:" + detail.getMinor());
- }
- System.exit(0);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/SpringClient.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/SpringClient.java b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/SpringClient.java
deleted file mode 100644
index 5d013b5..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/SpringClient.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package demo.hw.client;
-
-
-import javax.xml.ws.WebServiceException;
-
-import org.apache.helloWorldSoapHttp.types.FaultDetailDocument;
-import org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail;
-import org.apache.hello_world_soap_http.Greeter;
-import org.apache.hello_world_soap_http.PingMeFault;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-
-public final class SpringClient {
-
- private SpringClient() {
- }
-
- public static void main(String args[]) throws Exception {
- // START SNIPPET: client
- ClassPathXmlApplicationContext context
- = new ClassPathXmlApplicationContext(new String[] {"/demo/hw/client/client-beans.xml"});
-
- Greeter port = (Greeter)context.getBean("client");
-
- String resp;
-
- System.out.println("Invoking sayHi...");
- resp = port.sayHi();
- System.out.println("Server responded with: " + resp);
- System.out.println();
-
- System.out.println("Invoking greetMe...");
- resp = port.greetMe(System.getProperty("user.name"));
- System.out.println("Server responded with: " + resp);
- System.out.println();
-
- System.out.println("Invoking greetMe with invalid length string, expecting exception...");
- try {
- resp = port.greetMe("Invoking greetMe with invalid length string, expecting exception...");
- } catch (WebServiceException ex) {
- System.out.println("Caught expected WebServiceException:");
- System.out.println(" " + ex.getMessage());
- }
-
- System.out.println();
-
- System.out.println("Invoking greetMeOneWay...");
- port.greetMeOneWay(System.getProperty("user.name"));
- System.out.println("No response from server as method is OneWay");
- System.out.println();
-
- try {
- System.out.println("Invoking pingMe, expecting exception...");
- port.pingMe();
- } catch (PingMeFault ex) {
- System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage());
- FaultDetailDocument detailDocument = ex.getFaultInfo();
- FaultDetail detail = detailDocument.getFaultDetail();
- System.out.println("FaultDetail major:" + detail.getMajor());
- System.out.println("FaultDetail minor:" + detail.getMinor());
- }
-
- System.exit(0);
- // END SNIPPET: client
- }
-}
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/client-beans.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/client-beans.xml b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/client-beans.xml
deleted file mode 100644
index 58ccf77..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/client/client-beans.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
- <jaxws:client xmlns:s="http://apache.org/hello_world_soap_http" id="client" serviceClass="org.apache.hello_world_soap_http.Greeter" serviceName="s:SOAPService" endpointName="s:SoapPort" wsdlLocation="wsdl/hello_world.wsdl" address="http://localhost:9000/SoapContext/SoapPort">
- <jaxws:properties>
- <entry key="schema-validation-enabled" value="true"/>
- </jaxws:properties>
- <jaxws:dataBinding>
- <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding"/>
- </jaxws:dataBinding>
- </jaxws:client>
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/GreeterImpl.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/GreeterImpl.java b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/GreeterImpl.java
deleted file mode 100644
index 16b805e..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/GreeterImpl.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package demo.hw.server;
-
-import java.util.logging.Logger;
-import org.apache.helloWorldSoapHttp.types.FaultDetailDocument;
-import org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail;
-import org.apache.hello_world_soap_http.Greeter;
-import org.apache.hello_world_soap_http.PingMeFault;
-
-@javax.jws.WebService(portName = "SoapPort", serviceName = "SOAPService",
- targetNamespace = "http://apache.org/hello_world_soap_http",
- endpointInterface = "org.apache.hello_world_soap_http.Greeter")
-
-public class GreeterImpl implements Greeter {
-
- private static final Logger LOG =
- Logger.getLogger(GreeterImpl.class.getPackage().getName());
-
- /* (non-Javadoc)
- * @see org.apache.hello_world_soap_http.Greeter#greetMe(java.lang.String)
- */
- public String greetMe(String me) {
- LOG.info("Executing operation greetMe");
- System.out.println("Executing operation greetMe");
- System.out.println("Message received: " + me + "\n");
- return "Hello " + me;
- }
-
- /* (non-Javadoc)
- * @see org.apache.hello_world_soap_http.Greeter#greetMeOneWay(java.lang.String)
- */
- public void greetMeOneWay(String me) {
- LOG.info("Executing operation greetMeOneWay");
- System.out.println("Executing operation greetMeOneWay\n");
- System.out.println("Hello there " + me);
- }
-
- /* (non-Javadoc)
- * @see org.apache.hello_world_soap_http.Greeter#sayHi()
- */
- public String sayHi() {
- LOG.info("Executing operation sayHi");
- System.out.println("Executing operation sayHi\n");
- return "Bonjour";
- }
-
- public void pingMe() throws PingMeFault {
- // here we need to put the FaultDetail into the FaultDetailDocument
- FaultDetailDocument faultDocument
- = org.apache.helloWorldSoapHttp.types.FaultDetailDocument.Factory.newInstance();
- FaultDetail faultDetail = faultDocument.addNewFaultDetail();
- faultDetail.setMajor((short)2);
- faultDetail.setMinor((short)1);
- LOG.info("Executing operation pingMe, throwing PingMeFault exception");
- System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
- throw new PingMeFault("PingMeFault raised by server", faultDocument);
- }
-
-
-}
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/Server.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/Server.java b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/Server.java
deleted file mode 100644
index 66a2db5..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/Server.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package demo.hw.server;
-
-import javax.xml.ws.Endpoint;
-
-public class Server {
-
- protected Server() throws Exception {
- System.out.println("Starting Server");
- Object implementor = new GreeterImpl();
- String address = "http://localhost:9000/SoapContext/SoapPort";
- Endpoint.publish(address, implementor);
- }
-
- public static void main(String args[]) throws Exception {
- new Server();
- System.out.println("Server ready...");
-
- Thread.sleep(5 * 60 * 1000);
- System.out.println("Server exiting");
- System.exit(0);
- }
-}
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/SpringServer.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/SpringServer.java b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/SpringServer.java
deleted file mode 100644
index cd4de60..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/SpringServer.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package demo.hw.server;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class SpringServer {
- ClassPathXmlApplicationContext context;
-
- protected SpringServer() throws Exception {
- System.out.println("Starting Server");
- context = new ClassPathXmlApplicationContext(new String[] {"/demo/hw/server/server-beans.xml"});
- }
-
- public static void main(String args[]) throws Exception {
- new SpringServer();
- System.out.println("Server ready...");
-
- Thread.sleep(5 * 60 * 1000);
- System.out.println("Server exiting");
- System.exit(0);
- }
-}
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/server-beans.xml
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/server-beans.xml b/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/server-beans.xml
deleted file mode 100644
index f0ccdee..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/src/main/java/demo/hw/server/server-beans.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.2.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
- <jaxws:endpoint id="server" implementor="demo.hw.server.GreeterImpl" address="http://localhost:9000/SoapContext/SoapPort" wsdlLocation="wsdl/hello_world.wsdl">
- <jaxws:properties>
- <entry key="schema-validation-enabled" value="true"/>
- </jaxws:properties>
- <jaxws:dataBinding>
- <bean class="org.apache.cxf.xmlbeans.XmlBeansDataBinding"/>
- </jaxws:dataBinding>
- </jaxws:endpoint>
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/cxf/blob/333632ee/distribution/src/main/release/samples/wsdl_first_xmlbeans/wsdl/hello_world.wsdl
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/wsdl_first_xmlbeans/wsdl/hello_world.wsdl b/distribution/src/main/release/samples/wsdl_first_xmlbeans/wsdl/hello_world.wsdl
deleted file mode 100644
index e93abfc..0000000
--- a/distribution/src/main/release/samples/wsdl_first_xmlbeans/wsdl/hello_world.wsdl
+++ /dev/null
@@ -1,161 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://apache.org/hello_world_soap_http" xmlns:x1="http://apache.org/hello_world_soap_http/types" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloWorld" targetNamespace="http://apache.org/hello_world_soap_http">
- <wsdl:types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://apache.org/hello_world_soap_http/types" targetNamespace="http://apache.org/hello_world_soap_http/types" elementFormDefault="qualified">
- <simpleType name="MyStringType">
- <restriction base="string">
- <maxLength value="30"/>
- </restriction>
- </simpleType>
- <element name="sayHi">
- <complexType/>
- </element>
- <element name="sayHiResponse">
- <complexType>
- <sequence>
- <element name="responseType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMe">
- <complexType>
- <sequence>
- <element name="requestType" type="tns:MyStringType"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMeResponse">
- <complexType>
- <sequence>
- <element name="responseType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="greetMeOneWay">
- <complexType>
- <sequence>
- <element name="requestType" type="string"/>
- </sequence>
- </complexType>
- </element>
- <element name="pingMe">
- <complexType/>
- </element>
- <element name="pingMeResponse">
- <complexType/>
- </element>
- <element name="faultDetail">
- <complexType>
- <sequence>
- <element name="minor" type="short"/>
- <element name="major" type="short"/>
- </sequence>
- </complexType>
- </element>
- </schema>
- </wsdl:types>
- <wsdl:message name="sayHiRequest">
- <wsdl:part element="x1:sayHi" name="in"/>
- </wsdl:message>
- <wsdl:message name="sayHiResponse">
- <wsdl:part element="x1:sayHiResponse" name="out"/>
- </wsdl:message>
- <wsdl:message name="greetMeRequest">
- <wsdl:part element="x1:greetMe" name="in"/>
- </wsdl:message>
- <wsdl:message name="greetMeResponse">
- <wsdl:part element="x1:greetMeResponse" name="out"/>
- </wsdl:message>
- <wsdl:message name="greetMeOneWayRequest">
- <wsdl:part element="x1:greetMeOneWay" name="in"/>
- </wsdl:message>
- <wsdl:message name="pingMeRequest">
- <wsdl:part name="in" element="x1:pingMe"/>
- </wsdl:message>
- <wsdl:message name="pingMeResponse">
- <wsdl:part name="out" element="x1:pingMeResponse"/>
- </wsdl:message>
- <wsdl:message name="pingMeFault">
- <wsdl:part name="faultDetail" element="x1:faultDetail"/>
- </wsdl:message>
- <wsdl:portType name="Greeter">
- <wsdl:operation name="sayHi">
- <wsdl:input message="tns:sayHiRequest" name="sayHiRequest"/>
- <wsdl:output message="tns:sayHiResponse" name="sayHiResponse"/>
- </wsdl:operation>
- <wsdl:operation name="greetMe">
- <wsdl:input message="tns:greetMeRequest" name="greetMeRequest"/>
- <wsdl:output message="tns:greetMeResponse" name="greetMeResponse"/>
- </wsdl:operation>
- <wsdl:operation name="greetMeOneWay">
- <wsdl:input message="tns:greetMeOneWayRequest" name="greetMeOneWayRequest"/>
- </wsdl:operation>
- <wsdl:operation name="pingMe">
- <wsdl:input name="pingMeRequest" message="tns:pingMeRequest"/>
- <wsdl:output name="pingMeResponse" message="tns:pingMeResponse"/>
- <wsdl:fault name="pingMeFault" message="tns:pingMeFault"/>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="Greeter_SOAPBinding" type="tns:Greeter">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="sayHi">
- <soap:operation soapAction="" style="document"/>
- <wsdl:input name="sayHiRequest">
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="sayHiResponse">
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="greetMe">
- <soap:operation soapAction="" style="document"/>
- <wsdl:input name="greetMeRequest">
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="greetMeResponse">
- <soap:body use="literal"/>
- </wsdl:output>
- </wsdl:operation>
- <wsdl:operation name="greetMeOneWay">
- <soap:operation soapAction="" style="document"/>
- <wsdl:input name="greetMeOneWayRequest">
- <soap:body use="literal"/>
- </wsdl:input>
- </wsdl:operation>
- <wsdl:operation name="pingMe">
- <soap:operation style="document"/>
- <wsdl:input>
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="pingMeFault">
- <soap:fault name="pingMeFault" use="literal"/>
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="SOAPService">
- <wsdl:port binding="tns:Greeter_SOAPBinding" name="SoapPort">
- <soap:address location="http://localhost:9000/SoapContext/SoapPort"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>