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 2009/12/03 23:27:02 UTC
svn commit: r886957 [1/5] - in /cxf/trunk:
api/src/test/java/org/apache/cxf/databinding/
distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/
distribution/src/main/release/samples/wsdl_first/src/main/java/c...
Author: dkulp
Date: Thu Dec 3 22:26:58 2009
New Revision: 886957
URL: http://svn.apache.org/viewvc?rev=886957&view=rev
Log:
Set svn properties on everything to get svn:eol-style and such correct
Modified:
cxf/trunk/api/src/test/java/org/apache/cxf/databinding/AbstractDataBindingTest.java (props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl (contents, props changed)
cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml (contents, props changed)
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/BindingFileHelper.java (contents, props changed)
cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/WsdlArtifact.java (contents, props changed)
cxf/trunk/maven-plugins/codegen-plugin/src/test/java/org/apache/cxf/maven_plugin/BindingFileHelperTest.java (contents, props changed)
cxf/trunk/maven-plugins/codegen-plugin/src/test/resources/bindingWithWsdlLocation.xml (props changed)
cxf/trunk/maven-plugins/codegen-plugin/src/test/resources/bindingWithoutWsdlLocation.xml (props changed)
cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/ParameterizedTypeFactory.java (props changed)
cxf/trunk/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/SimpleParameterizedType.java (props changed)
cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/inheritance/ws1/WS1.aegis.xml (props changed)
cxf/trunk/rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/jaxws/AegisJaxwsGetTest.java (props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/LogLevel.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/LogRecord.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/LogRecordsList.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushBean.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngine.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushEngineConfigurator.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/AtomPushHandler.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/LoggingThread.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/converter/Converter.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/converter/StandardConverter.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/deliverer/Deliverer.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/deliverer/FireAndForgetDeliverer.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/deliverer/RetryingDeliverer.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/deliverer/WebClientDeliverer.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/atom/package-info.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/logging/package-info.java (contents, props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/PrefixCollectingXMLStreamWriter.java (props changed)
cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/provider/PrefixRespectingMappedNamespaceConvention.java (props changed)
cxf/trunk/rt/frontend/jaxrs/src/test/resources/org/apache/cxf/jaxrs/provider/jsonCases.xml (props changed)
cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/JaxWsWebServicePublisherBeanPostProcessor.java (props changed)
cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/spring/Messages.properties (props changed)
cxf/trunk/rt/transports/http-osgi/pom.xml (props changed)
cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/cxf/osgi/cxf-extension-osgi.xml (props changed)
cxf/trunk/rt/transports/http-osgi/src/main/resources/META-INF/spring/cxf-transport-osgi.xml (props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookServerResourceJacksonSpringProviders.java (props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSClientServerResourceJacksonSpringProviderTest.java (props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSLoggingAtomPushSpringTest.java (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSLoggingAtomPushTest.java (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/resources/logging_atompush.properties (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/resources/logging_atompush_atompub.properties (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/resources/logging_atompush_batch.properties (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/resources/logging_atompush_disabled.properties (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_jackson_provider/WEB-INF/beans.xml (props changed)
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_jackson_provider/WEB-INF/web.xml (props changed)
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_logging_atompush/WEB-INF/beans.xml (contents, props changed)
cxf/trunk/systests/jaxrs/src/test/resources/jaxrs_logging_atompush/WEB-INF/web.xml (contents, props changed)
cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/beanpostprocessor/BeanPostProcessorTest.java (props changed)
cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/beanpostprocessor/CustomizedfBeanPostProcessorTest.java (props changed)
cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/beanpostprocessor/IWebServiceRUs.java (props changed)
cxf/trunk/systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/beanpostprocessor/WebServiceRUs.java (props changed)
cxf/trunk/systests/jaxws/src/test/resources/org/apache/cxf/systest/jaxws/beanpostprocessor/context.xml (props changed)
cxf/trunk/systests/jaxws/src/test/resources/org/apache/cxf/systest/jaxws/beanpostprocessor/customized-context.xml (props changed)
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/SpringAutoPublishServletTest.java (props changed)
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/spring-auto-launch.xml (props changed)
cxf/trunk/systests/transports/src/test/java/org/apache/cxf/systest/servlet/web-spring-auto-launch.xml (props changed)
cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/clustering/FailoverAddressOverrideTest.java (props changed)
cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/clustering/failover_address_override.xml (props changed)
cxf/trunk/systests/uncategorized/src/test/java/org/apache/cxf/systest/management/persistent-id.xml (props changed)
cxf/trunk/systests/wsdl_maven/codegen/pom.xml (contents, props changed)
cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml (contents, props changed)
cxf/trunk/systests/wsdl_maven/java2ws/pom.xml (contents, props changed)
cxf/trunk/systests/wsdl_maven/java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java (props changed)
cxf/trunk/systests/wsdl_maven/java2ws/src/main/webapp/WEB-INF/beans.xml (props changed)
cxf/trunk/systests/wsdl_maven/java2ws/src/main/webapp/WEB-INF/web.xml (props changed)
cxf/trunk/systests/wsdl_maven/pom.xml (contents, props changed)
Propchange: cxf/trunk/api/src/test/java/org/apache/cxf/databinding/AbstractDataBindingTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java Thu Dec 3 22:26:58 2009
@@ -1,40 +1,40 @@
-/**
- * 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 com.example.customerservice.client;
-
-import com.example.customerservice.CustomerService;
-import com.example.customerservice.CustomerServiceService;
-import com.example.customerservice.NoSuchCustomerException;
-
-public class CustomerServiceClient {
- protected CustomerServiceClient() {
- }
-
- public static void main(String args[]) throws NoSuchCustomerException {
- // Create the service client with its default wsdlurl
- CustomerServiceService customerServiceService = new CustomerServiceService();
- CustomerService customerService = customerServiceService.getCustomerServicePort();
-
- // Initialize the test class and call the tests
- CustomerServiceTester client = new CustomerServiceTester();
- client.setCustomerService(customerService);
- client.testCustomerService();
- System.exit(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 com.example.customerservice.client;
+
+import com.example.customerservice.CustomerService;
+import com.example.customerservice.CustomerServiceService;
+import com.example.customerservice.NoSuchCustomerException;
+
+public class CustomerServiceClient {
+ protected CustomerServiceClient() {
+ }
+
+ public static void main(String args[]) throws NoSuchCustomerException {
+ // Create the service client with its default wsdlurl
+ CustomerServiceService customerServiceService = new CustomerServiceService();
+ CustomerService customerService = customerServiceService.getCustomerServicePort();
+
+ // Initialize the test class and call the tests
+ CustomerServiceTester client = new CustomerServiceTester();
+ client.setCustomerService(customerService);
+ client.testCustomerService();
+ System.exit(0);
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java Thu Dec 3 22:26:58 2009
@@ -1,39 +1,39 @@
-/**
- * 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 com.example.customerservice.client;
-
-
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public final class CustomerServiceSpringClient {
-
- private CustomerServiceSpringClient() {
- }
-
- public static void main(String args[]) throws Exception {
- // Initialize the spring context and fetch our test client
- ClassPathXmlApplicationContext context
- = new ClassPathXmlApplicationContext(new String[] {"classpath:client-applicationContext.xml"});
- CustomerServiceTester client = (CustomerServiceTester)context.getBean("tester");
-
- client.testCustomerService();
- System.exit(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 com.example.customerservice.client;
+
+
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public final class CustomerServiceSpringClient {
+
+ private CustomerServiceSpringClient() {
+ }
+
+ public static void main(String args[]) throws Exception {
+ // Initialize the spring context and fetch our test client
+ ClassPathXmlApplicationContext context
+ = new ClassPathXmlApplicationContext(new String[] {"classpath:client-applicationContext.xml"});
+ CustomerServiceTester client = (CustomerServiceTester)context.getBean("tester");
+
+ client.testCustomerService();
+ System.exit(0);
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceSpringClient.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java Thu Dec 3 22:26:58 2009
@@ -1,75 +1,75 @@
-/**
- * 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 com.example.customerservice.client;
-
-import java.util.List;
-
-import junit.framework.Assert;
-
-import com.example.customerservice.Customer;
-import com.example.customerservice.CustomerService;
-import com.example.customerservice.NoSuchCustomerException;
-
-public final class CustomerServiceTester {
-
- // The CustomerService proxy will be injected either by spring or by a direct call to the setter
- CustomerService customerService;
-
- public CustomerService getCustomerService() {
- return customerService;
- }
-
- public void setCustomerService(CustomerService customerService) {
- this.customerService = customerService;
- }
-
- public void testCustomerService() throws NoSuchCustomerException {
- List<Customer> customers = null;
-
- // First we test the positive case where customers are found and we retreive
- // a list of customers
- System.out.println("Sending request for customers named Smith");
- customers = customerService.getCustomersByName("Smith");
- System.out.println("Response received");
- Assert.assertEquals(2, customers.size());
- Assert.assertEquals("Smith", customers.get(0).getName());
-
- // Then we test for an unknown Customer name and expect the NoSuchCustomerException
- try {
- customers = customerService.getCustomersByName("None");
- Assert.fail("We should get a NoSuchCustomerException here");
- } catch (NoSuchCustomerException e) {
- System.out.println(e.getMessage());
- Assert.assertNotNull("FaultInfo must not be null", e.getFaultInfo());
- Assert.assertEquals("None", e.getFaultInfo().getCustomerName());
- System.out.println("NoSuchCustomer exception was received as expected");
- }
-
- // The implementation of updateCustomer is set to sleep for some seconds.
- // Still this method should return instantly as the method is declared
- // as a one way method in the WSDL
- Customer customer = new Customer();
- customer.setName("Smith");
- customerService.updateCustomer(customer);
-
- System.out.println("All calls were successful");
- }
-
-}
+/**
+ * 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 com.example.customerservice.client;
+
+import java.util.List;
+
+import junit.framework.Assert;
+
+import com.example.customerservice.Customer;
+import com.example.customerservice.CustomerService;
+import com.example.customerservice.NoSuchCustomerException;
+
+public final class CustomerServiceTester {
+
+ // The CustomerService proxy will be injected either by spring or by a direct call to the setter
+ CustomerService customerService;
+
+ public CustomerService getCustomerService() {
+ return customerService;
+ }
+
+ public void setCustomerService(CustomerService customerService) {
+ this.customerService = customerService;
+ }
+
+ public void testCustomerService() throws NoSuchCustomerException {
+ List<Customer> customers = null;
+
+ // First we test the positive case where customers are found and we retreive
+ // a list of customers
+ System.out.println("Sending request for customers named Smith");
+ customers = customerService.getCustomersByName("Smith");
+ System.out.println("Response received");
+ Assert.assertEquals(2, customers.size());
+ Assert.assertEquals("Smith", customers.get(0).getName());
+
+ // Then we test for an unknown Customer name and expect the NoSuchCustomerException
+ try {
+ customers = customerService.getCustomersByName("None");
+ Assert.fail("We should get a NoSuchCustomerException here");
+ } catch (NoSuchCustomerException e) {
+ System.out.println(e.getMessage());
+ Assert.assertNotNull("FaultInfo must not be null", e.getFaultInfo());
+ Assert.assertEquals("None", e.getFaultInfo().getCustomerName());
+ System.out.println("NoSuchCustomer exception was received as expected");
+ }
+
+ // The implementation of updateCustomer is set to sleep for some seconds.
+ // Still this method should return instantly as the method is declared
+ // as a one way method in the WSDL
+ Customer customer = new Customer();
+ customer.setName("Smith");
+ customerService.updateCustomer(customer);
+
+ System.out.println("All calls were successful");
+ }
+
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/CustomerServiceTester.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml Thu Dec 3 22:26:58 2009
@@ -1,39 +1,39 @@
-<?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.xsd
-http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
-
- <jaxws:client id="customerService"
- serviceClass="org.apache.hello_world_soap_http.Greeter"
- serviceName="s:SOAPService"
- endpointName="s:SoapPort"
- xmlns:s="http://apache.org/hello_world_soap_http"
- wsdlLocation="wsdl/hello_world.wsdl"
- address="http://localhost:9000/SoapContext/SoapPort"/>
- <bean id="client" class="com.example.customerservice.Client">
- <property name=""></property>
- </bean>
-</beans>
-<!-- END SNIPPET: beans -->
+<?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.xsd
+http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+ <jaxws:client id="customerService"
+ serviceClass="org.apache.hello_world_soap_http.Greeter"
+ serviceName="s:SOAPService"
+ endpointName="s:SoapPort"
+ xmlns:s="http://apache.org/hello_world_soap_http"
+ wsdlLocation="wsdl/hello_world.wsdl"
+ address="http://localhost:9000/SoapContext/SoapPort"/>
+ <bean id="client" class="com.example.customerservice.Client">
+ <property name=""></property>
+ </bean>
+</beans>
+<!-- END SNIPPET: beans -->
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/client/client-beans.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java Thu Dec 3 22:26:58 2009
@@ -1,80 +1,80 @@
-/**
- * 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 com.example.customerservice.server;
-
-import java.math.BigDecimal;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.GregorianCalendar;
-import java.util.List;
-
-import javax.annotation.Resource;
-import javax.xml.ws.WebServiceContext;
-
-import com.example.customerservice.Customer;
-import com.example.customerservice.CustomerService;
-import com.example.customerservice.CustomerType;
-import com.example.customerservice.NoSuchCustomer;
-import com.example.customerservice.NoSuchCustomerException;
-
-public class CustomerServiceImpl implements CustomerService {
-
- /**
- * The WebServiceContext can be used to retrieve special attributes like the
- * user principal. Normally it is not needed
- */
- @Resource
- WebServiceContext wsContext;
-
- public List<Customer> getCustomersByName(String name) throws NoSuchCustomerException {
- if ("None".equals(name)) {
- NoSuchCustomer noSuchCustomer = new NoSuchCustomer();
- noSuchCustomer.setCustomerName(name);
- throw new NoSuchCustomerException("Did not find any matching customer for name=" + name,
- noSuchCustomer);
- }
-
- List<Customer> customers = new ArrayList<Customer>();
- for (int c = 0; c < 2; c++) {
- Customer cust = new Customer();
- cust.setName(name);
- cust.getAddress().add("Pine Street 200");
- Date bDate = new GregorianCalendar(2009, 01, 01).getTime();
- cust.setBirthDate(bDate);
- cust.setNumOrders(1);
- cust.setRevenue(10000);
- cust.setTest(new BigDecimal(1.5));
- cust.setType(CustomerType.BUSINESS);
- customers.add(cust);
- }
-
- return customers;
- }
-
- public void updateCustomer(Customer customer) {
- System.out.println("update request was received");
- try {
- Thread.sleep(10000);
- } catch (InterruptedException e) {
- // Nothing to do here
- }
- System.out.println("Customer was updated");
- }
-
-}
+/**
+ * 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 com.example.customerservice.server;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.GregorianCalendar;
+import java.util.List;
+
+import javax.annotation.Resource;
+import javax.xml.ws.WebServiceContext;
+
+import com.example.customerservice.Customer;
+import com.example.customerservice.CustomerService;
+import com.example.customerservice.CustomerType;
+import com.example.customerservice.NoSuchCustomer;
+import com.example.customerservice.NoSuchCustomerException;
+
+public class CustomerServiceImpl implements CustomerService {
+
+ /**
+ * The WebServiceContext can be used to retrieve special attributes like the
+ * user principal. Normally it is not needed
+ */
+ @Resource
+ WebServiceContext wsContext;
+
+ public List<Customer> getCustomersByName(String name) throws NoSuchCustomerException {
+ if ("None".equals(name)) {
+ NoSuchCustomer noSuchCustomer = new NoSuchCustomer();
+ noSuchCustomer.setCustomerName(name);
+ throw new NoSuchCustomerException("Did not find any matching customer for name=" + name,
+ noSuchCustomer);
+ }
+
+ List<Customer> customers = new ArrayList<Customer>();
+ for (int c = 0; c < 2; c++) {
+ Customer cust = new Customer();
+ cust.setName(name);
+ cust.getAddress().add("Pine Street 200");
+ Date bDate = new GregorianCalendar(2009, 01, 01).getTime();
+ cust.setBirthDate(bDate);
+ cust.setNumOrders(1);
+ cust.setRevenue(10000);
+ cust.setTest(new BigDecimal(1.5));
+ cust.setType(CustomerType.BUSINESS);
+ customers.add(cust);
+ }
+
+ return customers;
+ }
+
+ public void updateCustomer(Customer customer) {
+ System.out.println("update request was received");
+ try {
+ Thread.sleep(10000);
+ } catch (InterruptedException e) {
+ // Nothing to do here
+ }
+ System.out.println("Customer was updated");
+ }
+
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java Thu Dec 3 22:26:58 2009
@@ -1,50 +1,50 @@
-/**
- * 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 com.example.customerservice.server;
-
-import javax.xml.ws.Endpoint;
-
-import com.example.customerservice.CustomerService;
-
-import org.apache.cxf.interceptor.LoggingInInterceptor;
-import org.apache.cxf.interceptor.LoggingOutInterceptor;
-import org.apache.cxf.jaxws.EndpointImpl;
-
-public class CustomerServiceServer {
-
- protected CustomerServiceServer() throws Exception {
- System.out.println("Starting Server");
- CustomerService implementor = new CustomerServiceImpl();
- EndpointImpl ep = (EndpointImpl)Endpoint.publish("http://localhost:9090/CustomerServicePort",
- implementor);
-
- // Adding logging for incoming and outgoing messages
- ep.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
- ep.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
- }
-
- public static void main(String args[]) throws Exception {
- new CustomerServiceServer();
- System.out.println("Server ready...");
- Thread.sleep(5 * 60 * 1000);
- System.out.println("Server exiting");
- System.exit(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 com.example.customerservice.server;
+
+import javax.xml.ws.Endpoint;
+
+import com.example.customerservice.CustomerService;
+
+import org.apache.cxf.interceptor.LoggingInInterceptor;
+import org.apache.cxf.interceptor.LoggingOutInterceptor;
+import org.apache.cxf.jaxws.EndpointImpl;
+
+public class CustomerServiceServer {
+
+ protected CustomerServiceServer() throws Exception {
+ System.out.println("Starting Server");
+ CustomerService implementor = new CustomerServiceImpl();
+ EndpointImpl ep = (EndpointImpl)Endpoint.publish("http://localhost:9090/CustomerServicePort",
+ implementor);
+
+ // Adding logging for incoming and outgoing messages
+ ep.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
+ ep.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
+ }
+
+ public static void main(String args[]) throws Exception {
+ new CustomerServiceServer();
+ System.out.println("Server ready...");
+ Thread.sleep(5 * 60 * 1000);
+ System.out.println("Server exiting");
+ System.exit(0);
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceServer.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java Thu Dec 3 22:26:58 2009
@@ -1,32 +1,32 @@
-/**
- * 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 com.example.customerservice.server;
-
-import org.springframework.context.support.ClassPathXmlApplicationContext;
-
-public class CustomerServiceSpringServer {
-
- protected CustomerServiceSpringServer() {
- }
-
- public static void main(String args[]) throws Exception {
- new ClassPathXmlApplicationContext("server-applicationContext.xml");
- System.in.read();
- }
-}
+/**
+ * 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 com.example.customerservice.server;
+
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class CustomerServiceSpringServer {
+
+ protected CustomerServiceSpringServer() {
+ }
+
+ public static void main(String args[]) throws Exception {
+ new ClassPathXmlApplicationContext("server-applicationContext.xml");
+ System.in.read();
+ }
+}
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/java/com/example/customerservice/server/CustomerServiceSpringServer.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml Thu Dec 3 22:26:58 2009
@@ -1,50 +1,50 @@
-<?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:context="http://www.springframework.org/schema/context"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:customer="http://customerservice.example.com/"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.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
-">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
-
- <!--
- Define a cxf endpoint based on client stub generated from a wsdl. It
- is important to provide serviceName and endpointName so the wsdl is
- not needed at runtime. As far as I know the serviceName and
- endpointName do not have to have a special convention but it is good
- practice to use the service namespace and Service Interface name in
- the names
- -->
- <jaxws:client id="customerService"
- serviceName="customer:CustomerServiceService"
- endpointName="customer:CustomerServiceEndpoint"
- address="http://localhost:9090/CustomerServicePort"
- serviceClass="com.example.customerservice.CustomerService">
- </jaxws:client>
-
- <bean id="tester" class="com.example.customerservice.client.CustomerServiceTester">
- <property name="customerService" ref="customerService"></property>
- </bean>
-</beans>
+<?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:context="http://www.springframework.org/schema/context"
+ xmlns:jaxws="http://cxf.apache.org/jaxws"
+ xmlns:customer="http://customerservice.example.com/"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.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
+">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
+
+ <!--
+ Define a cxf endpoint based on client stub generated from a wsdl. It
+ is important to provide serviceName and endpointName so the wsdl is
+ not needed at runtime. As far as I know the serviceName and
+ endpointName do not have to have a special convention but it is good
+ practice to use the service namespace and Service Interface name in
+ the names
+ -->
+ <jaxws:client id="customerService"
+ serviceName="customer:CustomerServiceService"
+ endpointName="customer:CustomerServiceEndpoint"
+ address="http://localhost:9090/CustomerServicePort"
+ serviceClass="com.example.customerservice.CustomerService">
+ </jaxws:client>
+
+ <bean id="tester" class="com.example.customerservice.client.CustomerServiceTester">
+ <property name="customerService" ref="customerService"></property>
+ </bean>
+</beans>
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/client-applicationContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml Thu Dec 3 22:26:58 2009
@@ -1,38 +1,38 @@
-<?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:soap="http://cxf.apache.org/bindings/soap"
- xsi:schemaLocation="
-http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
-http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
-http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
-
- <jaxws:endpoint
- id="hello_world"
- implementor="demo.hw.server.GreeterImpl"
- wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"
- address="/hello_world">
- <jaxws:features>
- <bean class="org.apache.cxf.feature.LoggingFeature"/>
- </jaxws:features>
- </jaxws:endpoint>
-</beans>
+<?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:soap="http://cxf.apache.org/bindings/soap"
+ xsi:schemaLocation="
+http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
+http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+ <jaxws:endpoint
+ id="hello_world"
+ implementor="demo.hw.server.GreeterImpl"
+ wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"
+ address="/hello_world">
+ <jaxws:features>
+ <bean class="org.apache.cxf.feature.LoggingFeature"/>
+ </jaxws:features>
+ </jaxws:endpoint>
+</beans>
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml Thu Dec 3 22:26:58 2009
@@ -1,40 +1,40 @@
-<?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"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
- http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.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
-">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
-
- <!-- HTTP Endpoint -->
- <jaxws:endpoint xmlns:customer="http://customerservice.example.com/"
- id="CustomerServiceHTTP" address="http://localhost:9090/CustomerServicePort"
- serviceName="customer:CustomerServiceService" endpointName="customer:CustomerServiceEndpoint"
- implementor="com.example.customerservice.server.CustomerServiceImpl">
- <jaxws:features>
- <bean class="org.apache.cxf.feature.LoggingFeature" />
- </jaxws:features>
- </jaxws:endpoint>
-
-</beans>
+<?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"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.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
+">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+
+ <!-- HTTP Endpoint -->
+ <jaxws:endpoint xmlns:customer="http://customerservice.example.com/"
+ id="CustomerServiceHTTP" address="http://localhost:9090/CustomerServicePort"
+ serviceName="customer:CustomerServiceService" endpointName="customer:CustomerServiceEndpoint"
+ implementor="com.example.customerservice.server.CustomerServiceImpl">
+ <jaxws:features>
+ <bean class="org.apache.cxf.feature.LoggingFeature" />
+ </jaxws:features>
+ </jaxws:endpoint>
+
+</beans>
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/server-applicationContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl Thu Dec 3 22:26:58 2009
@@ -1,123 +1,123 @@
-<?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 name="CustomerServiceService" targetNamespace="http://customerservice.example.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://customerservice.example.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
- <wsdl:types>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://customerservice.example.com/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://customerservice.example.com/">
-<xs:element name="getCustomersByName" type="tns:getCustomersByName"/>
-<xs:element name="getCustomersByNameResponse" type="tns:getCustomersByNameResponse"/>
-<xs:element name="updateCustomer" type="tns:updateCustomer"/>
-<xs:complexType name="updateCustomer">
-<xs:sequence>
-<xs:element minOccurs="0" name="customer" type="tns:customer"/>
-</xs:sequence>
-</xs:complexType>
-<xs:complexType name="customer">
-<xs:sequence>
-<xs:element name="customerId" type="xs:int"/>
-<xs:element minOccurs="0" name="name" type="xs:string"/>
-<xs:element maxOccurs="unbounded" minOccurs="0" name="address" nillable="true" type="xs:string"/>
-<xs:element minOccurs="0" name="numOrders" type="xs:int"/>
-<xs:element name="revenue" type="xs:double"/>
-<xs:element minOccurs="0" name="test" type="xs:decimal"/>
-<xs:element minOccurs="0" name="birthDate" type="xs:date"/>
-<xs:element minOccurs="0" name="type" type="tns:customerType"/>
-</xs:sequence>
-</xs:complexType>
-<xs:complexType name="getCustomersByName">
-<xs:sequence>
-<xs:element minOccurs="0" name="name" type="xs:string"/>
-</xs:sequence>
-</xs:complexType>
-<xs:complexType name="getCustomersByNameResponse">
-<xs:sequence>
-<xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:customer"/>
-</xs:sequence>
-</xs:complexType>
-<xs:simpleType name="customerType">
-<xs:restriction base="xs:string">
-<xs:enumeration value="PRIVATE"/>
-<xs:enumeration value="BUSINESS"/>
-</xs:restriction>
-</xs:simpleType>
-<xs:element name="NoSuchCustomer" type="tns:NoSuchCustomer"/>
-<xs:complexType name="NoSuchCustomer">
-<xs:sequence>
-<xs:element name="customerName" nillable="true" type="xs:string"/>
-</xs:sequence>
-</xs:complexType>
-</xs:schema>
- </wsdl:types>
- <wsdl:message name="getCustomersByNameResponse">
- <wsdl:part name="parameters" element="tns:getCustomersByNameResponse">
- </wsdl:part>
- </wsdl:message>
- <wsdl:message name="getCustomersByName">
- <wsdl:part name="parameters" element="tns:getCustomersByName">
- </wsdl:part>
- </wsdl:message>
- <wsdl:message name="updateCustomer">
- <wsdl:part name="parameters" element="tns:updateCustomer">
- </wsdl:part>
- </wsdl:message>
- <wsdl:message name="NoSuchCustomerException">
- <wsdl:part name="NoSuchCustomerException" element="tns:NoSuchCustomer">
- </wsdl:part>
- </wsdl:message>
- <wsdl:portType name="CustomerService">
- <wsdl:operation name="updateCustomer">
- <wsdl:input name="updateCustomer" message="tns:updateCustomer">
- </wsdl:input>
- </wsdl:operation>
- <wsdl:operation name="getCustomersByName">
- <wsdl:input name="getCustomersByName" message="tns:getCustomersByName">
- </wsdl:input>
- <wsdl:output name="getCustomersByNameResponse" message="tns:getCustomersByNameResponse">
- </wsdl:output>
- <wsdl:fault name="NoSuchCustomerException" message="tns:NoSuchCustomerException">
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="CustomerServiceServiceSoapBinding" type="tns:CustomerService">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
- <wsdl:operation name="updateCustomer">
- <soap:operation soapAction="" style="document"/>
- <wsdl:input name="updateCustomer">
- <soap:body use="literal"/>
- </wsdl:input>
- </wsdl:operation>
- <wsdl:operation name="getCustomersByName">
- <soap:operation soapAction="" style="document"/>
- <wsdl:input name="getCustomersByName">
- <soap:body use="literal"/>
- </wsdl:input>
- <wsdl:output name="getCustomersByNameResponse">
- <soap:body use="literal"/>
- </wsdl:output>
- <wsdl:fault name="NoSuchCustomerException">
- <soap:fault name="NoSuchCustomerException" use="literal"/>
- </wsdl:fault>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="CustomerServiceService">
- <wsdl:port name="CustomerServicePort" binding="tns:CustomerServiceServiceSoapBinding">
- <soap:address location="http://localhost:9090/CustomerServicePort"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
+<?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 name="CustomerServiceService" targetNamespace="http://customerservice.example.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://customerservice.example.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ <wsdl:types>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://customerservice.example.com/" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://customerservice.example.com/">
+<xs:element name="getCustomersByName" type="tns:getCustomersByName"/>
+<xs:element name="getCustomersByNameResponse" type="tns:getCustomersByNameResponse"/>
+<xs:element name="updateCustomer" type="tns:updateCustomer"/>
+<xs:complexType name="updateCustomer">
+<xs:sequence>
+<xs:element minOccurs="0" name="customer" type="tns:customer"/>
+</xs:sequence>
+</xs:complexType>
+<xs:complexType name="customer">
+<xs:sequence>
+<xs:element name="customerId" type="xs:int"/>
+<xs:element minOccurs="0" name="name" type="xs:string"/>
+<xs:element maxOccurs="unbounded" minOccurs="0" name="address" nillable="true" type="xs:string"/>
+<xs:element minOccurs="0" name="numOrders" type="xs:int"/>
+<xs:element name="revenue" type="xs:double"/>
+<xs:element minOccurs="0" name="test" type="xs:decimal"/>
+<xs:element minOccurs="0" name="birthDate" type="xs:date"/>
+<xs:element minOccurs="0" name="type" type="tns:customerType"/>
+</xs:sequence>
+</xs:complexType>
+<xs:complexType name="getCustomersByName">
+<xs:sequence>
+<xs:element minOccurs="0" name="name" type="xs:string"/>
+</xs:sequence>
+</xs:complexType>
+<xs:complexType name="getCustomersByNameResponse">
+<xs:sequence>
+<xs:element maxOccurs="unbounded" minOccurs="0" name="return" type="tns:customer"/>
+</xs:sequence>
+</xs:complexType>
+<xs:simpleType name="customerType">
+<xs:restriction base="xs:string">
+<xs:enumeration value="PRIVATE"/>
+<xs:enumeration value="BUSINESS"/>
+</xs:restriction>
+</xs:simpleType>
+<xs:element name="NoSuchCustomer" type="tns:NoSuchCustomer"/>
+<xs:complexType name="NoSuchCustomer">
+<xs:sequence>
+<xs:element name="customerName" nillable="true" type="xs:string"/>
+</xs:sequence>
+</xs:complexType>
+</xs:schema>
+ </wsdl:types>
+ <wsdl:message name="getCustomersByNameResponse">
+ <wsdl:part name="parameters" element="tns:getCustomersByNameResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="getCustomersByName">
+ <wsdl:part name="parameters" element="tns:getCustomersByName">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="updateCustomer">
+ <wsdl:part name="parameters" element="tns:updateCustomer">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="NoSuchCustomerException">
+ <wsdl:part name="NoSuchCustomerException" element="tns:NoSuchCustomer">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="CustomerService">
+ <wsdl:operation name="updateCustomer">
+ <wsdl:input name="updateCustomer" message="tns:updateCustomer">
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getCustomersByName">
+ <wsdl:input name="getCustomersByName" message="tns:getCustomersByName">
+ </wsdl:input>
+ <wsdl:output name="getCustomersByNameResponse" message="tns:getCustomersByNameResponse">
+ </wsdl:output>
+ <wsdl:fault name="NoSuchCustomerException" message="tns:NoSuchCustomerException">
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CustomerServiceServiceSoapBinding" type="tns:CustomerService">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="updateCustomer">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="updateCustomer">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ </wsdl:operation>
+ <wsdl:operation name="getCustomersByName">
+ <soap:operation soapAction="" style="document"/>
+ <wsdl:input name="getCustomersByName">
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="getCustomersByNameResponse">
+ <soap:body use="literal"/>
+ </wsdl:output>
+ <wsdl:fault name="NoSuchCustomerException">
+ <soap:fault name="NoSuchCustomerException" use="literal"/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="CustomerServiceService">
+ <wsdl:port name="CustomerServicePort" binding="tns:CustomerServiceServiceSoapBinding">
+ <soap:address location="http://localhost:9090/CustomerServicePort"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/CustomerService.wsdl
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Thu Dec 3 22:26:58 2009
@@ -1 +1 @@
-text/plain
+text/xml
Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml?rev=886957&r1=886956&r2=886957&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml Thu Dec 3 22:26:58 2009
@@ -1,17 +1,17 @@
-<jaxws:bindings wsdlLocation="CustomerService.wsdl"
- xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
- <!-- <jaxws:enableAsyncMapping>true</jaxws:enableAsyncMapping> -->
- <jaxws:bindings node="wsdl:definitions/wsdl:types/xs:schema">
- <jxb:globalBindings>
- <jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
- parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime"
- printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/>
- <jxb:javaType name="java.util.Date" xmlType="xs:date"
- parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDate"
- printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDate"/>
- </jxb:globalBindings>
- </jaxws:bindings>
+<jaxws:bindings wsdlLocation="CustomerService.wsdl"
+ xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <!-- <jaxws:enableAsyncMapping>true</jaxws:enableAsyncMapping> -->
+ <jaxws:bindings node="wsdl:definitions/wsdl:types/xs:schema">
+ <jxb:globalBindings>
+ <jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
+ parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime"
+ printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/>
+ <jxb:javaType name="java.util.Date" xmlType="xs:date"
+ parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDate"
+ printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDate"/>
+ </jxb:globalBindings>
+ </jaxws:bindings>
</jaxws:bindings>
\ No newline at end of file
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange: cxf/trunk/distribution/src/main/release/samples/wsdl_first/wsdl/binding.xml
------------------------------------------------------------------------------
--- svn:mime-type (original)
+++ svn:mime-type Thu Dec 3 22:26:58 2009
@@ -1 +1 @@
-text/plain
+text/xml