From 6d685c8e138af8d18bc71181ec630ccb9a17bdd9 Mon Sep 17 00:00:00 2001 From: nash Date: Wed, 6 Apr 2011 22:03:35 +0000 Subject: Tag for 1.6.2-RC1 git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1089647 13f79535-47bb-0310-9956-ffa450edef68 --- sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/pom.xml | 212 ++++++++++ .../services/accountdata/AccountDataService.java | 95 +++++ .../accountdata/AccountDataServiceImpl.java | 91 +++++ .../accountdata/AccountServiceClientImpl.java | 77 ++++ .../services/accountdata/Component2aImpl.java | 77 ++++ .../services/accountdata/Component2bImpl.java | 77 ++++ .../services/accountdata/Component3aImpl.java | 77 ++++ .../services/accountdata/Component3bImpl.java | 77 ++++ .../services/accountdata/CustomerIdService.java | 98 +++++ .../src/main/java/helloworld/HelloWorldImpl.java | 44 ++ .../main/java/helloworld/HelloWorldService.java | 31 ++ .../helloworld/HelloWorldServiceComponent.java | 47 +++ .../apache/tuscany/sca/itest/Component2aImpl.java | 43 ++ .../apache/tuscany/sca/itest/Component2bImpl.java | 42 ++ .../apache/tuscany/sca/itest/Component3aImpl.java | 42 ++ .../apache/tuscany/sca/itest/Component3bImpl.java | 43 ++ .../wsdlless/src/main/java/service/AnObject.java | 62 +++ .../src/main/java/service/MoreComplexObject.java | 53 +++ .../src/main/java/service/SomeService.java | 31 ++ .../src/main/java/service/SomeServiceImpl.java | 42 ++ .../src/main/resources/SDOWSDLTest.composite | 321 +++++++++++++++ .../wsdlless/src/main/resources/WSDLTest.composite | 350 ++++++++++++++++ .../wsdlless/src/main/resources/some.composite | 33 ++ .../src/main/resources/wsdl/AccountService.wsdl | 453 +++++++++++++++++++++ .../src/main/resources/wsdl/helloworld.wsdl | 131 ++++++ .../apache/tuscany/sca/itest/SDOWSDLTestCase.java | 173 ++++++++ .../org/apache/tuscany/sca/itest/WSDLTestCase.java | 150 +++++++ .../test/java/service/SomeComponentTestCase.java | 82 ++++ .../src/test/java/service/generated/AnObject.java | 100 +++++ .../generated/GetUsingMoreComplexObject.java | 79 ++++ .../GetUsingMoreComplexObjectResponse.java | 79 ++++ .../java/service/generated/GetUsingString.java | 79 ++++ .../service/generated/GetUsingStringResponse.java | 79 ++++ .../java/service/generated/MoreComplexObject.java | 126 ++++++ .../test/java/service/generated/ObjectFactory.java | 141 +++++++ .../test/java/service/generated/SomeService.java | 65 +++ .../java/service/generated/SomeServiceService.java | 81 ++++ .../test/java/service/generated/package-info.java | 21 + 38 files changed, 3904 insertions(+) create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/pom.xml create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataService.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountServiceClientImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2aImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2bImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3aImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3bImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/CustomerIdService.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/helloworld/HelloWorldImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/helloworld/HelloWorldService.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/helloworld/HelloWorldServiceComponent.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component2aImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component2bImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component3aImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/org/apache/tuscany/sca/itest/Component3bImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/service/AnObject.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/service/MoreComplexObject.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/service/SomeService.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/service/SomeServiceImpl.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/SDOWSDLTest.composite create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/WSDLTest.composite create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/some.composite create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/AccountService.wsdl create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/helloworld.wsdl create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/SDOWSDLTestCase.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/WSDLTestCase.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/SomeComponentTestCase.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/AnObject.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObject.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObjectResponse.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingString.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingStringResponse.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/MoreComplexObject.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/ObjectFactory.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeService.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeServiceService.java create mode 100644 sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/package-info.java (limited to 'sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless') diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/pom.xml b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/pom.xml new file mode 100644 index 0000000000..1da9bc1d79 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/pom.xml @@ -0,0 +1,212 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 1.6.2 + ../pom.xml + + itest-wsdlless + Apache Tuscany SCA iTest WSDLless Support + + + + java.net + java.net Maven 1.x Repository + http://download.java.net/maven/1 + legacy + + + java.net2 + java.net Maven 2.x Repository + http://download.java.net/maven/2 + + + + + + org.apache.tuscany.sca + tuscany-host-embedded + 1.6.2 + + + + org.apache.tuscany.sca + tuscany-implementation-java-runtime + 1.6.2 + runtime + + + + org.apache.tuscany.sca + tuscany-interface-wsdl + 1.6.2 + runtime + + + + org.apache.tuscany.sca + tuscany-binding-ws-axis2 + 1.6.2 + runtime + + + + org.apache.tuscany.sca + tuscany-databinding-sdo + 1.6.2 + runtime + + + + org.apache.tuscany.sca + tuscany-databinding-axiom + 1.6.2 + runtime + + + + org.apache.tuscany.sca + tuscany-host-jetty + 1.6.2 + runtime + + + + org.apache.tuscany.sdo + tuscany-sdo-impl + 1.1.1 + compile + + + + + org.apache.geronimo.specs + geronimo-jaxws_2.1_spec + 1.0 + test + + + + com.sun.xml.ws + jaxws-rt + 2.1.4 + test + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy + generate-sources + + copy + + + + + javax.xml.bind + jaxb-api + 2.1 + jar + + + javax.xml.ws + jaxws-api + 2.1 + jar + + + + ${project.build.directory}/endorsed + false + true + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + -Djava.endorsed.dirs=target/endorsed + + + + org.codehaus.mojo + build-helper-maven-plugin + 1.0 + + + add-source + generate-sources + + add-source + + + + target/sdo-source + + + + + + + + org.apache.tuscany.sdo + tuscany-sdo-plugin + 1.1.1 + + + generate-sdo + generate-sources + + ${basedir}/src/main/resources/wsdl/AccountService.wsdl + com.bigbank.account + Account + true + true + true + + + generate + + + + + + + diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataService.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataService.java new file mode 100644 index 0000000000..5886ebc6ff --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataService.java @@ -0,0 +1,95 @@ +/* + * 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 bigbank.account.services.accountdata; + +import javax.jws.WebService; +import javax.xml.ws.ResponseWrapper; +import org.osoa.sca.annotations.AllowsPassByReference; +import org.osoa.sca.annotations.Remotable; + +@Remotable +@AllowsPassByReference +@WebService(targetNamespace="http://www.bigbank.com/account") +public interface AccountDataService { + + /** + * Auto generated method signatures + * + * @param param0* + * @param param1* + * @param param2 + */ + public com.bigbank.account.StockSummary purchaseStock(int param0, com.bigbank.account.StockSummary parm1); + + /** + * Auto generated method signatures + * + * @param param4 + */ + public com.bigbank.account.CustomerProfileData getCustomerProfile(java.lang.String param4); + + /** + * Auto generated method signatures + * + * @param param6* + * @param param7 + */ + public float deposit(java.lang.String param6, float param7); + + /** + * Auto generated method signatures + * + * @param param9* + * @param param10* + * @param param11 + */ + public com.bigbank.account.CustomerProfileData createAccount(com.bigbank.account.CustomerProfileData param9, boolean param10, boolean param11); + + /** + * Auto generated method signatures + * + * @param param13* + * @param param14 + */ + @ResponseWrapper(localName="purchaseStockResponse") + public com.bigbank.account.StockSummary sellStock(int param13, int param14); + + /** + * Auto generated method signatures + * + * @param param16* + * @param param17 + */ + public float withdraw(java.lang.String param16, float param17); + + /** + * Auto generated method signatures + * + * @param param19 + */ + public com.bigbank.account.AccountReport getAccountReport(int param19); + + /** + * Auto generated method signatures + * + * @param param0 + */ + public com.bigbank.account.AccountLog getAccountLog(int param0); + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataServiceImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataServiceImpl.java new file mode 100644 index 0000000000..df658428fd --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountDataServiceImpl.java @@ -0,0 +1,91 @@ +/* + * 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 bigbank.account.services.accountdata; + +import org.osoa.sca.annotations.Service; + +import com.bigbank.account.AccountFactory; +import com.bigbank.account.AccountLog; +import com.bigbank.account.AccountReport; +import com.bigbank.account.AccountSummary; +import com.bigbank.account.CustomerProfileData; +import com.bigbank.account.StockSummary; + +@Service(AccountDataService.class) +public class AccountDataServiceImpl implements AccountDataService { + + public CustomerProfileData getCustomerProfile(String logonID) { + + return null; + } + + public AccountReport getAccountReport(int customerID) { + + AccountReport report =AccountFactory.INSTANCE.createAccountReport(); + AccountSummary summary1 = AccountFactory.INSTANCE.createAccountSummary(); + summary1.setAccountNumber("123"); + summary1.setAccountType("checking"); + summary1.setBalance(1000.0f); + report.getAccountSummaries().add(summary1); + AccountSummary summary2 = AccountFactory.INSTANCE.createAccountSummary(); + summary2.setAccountNumber("456"); + summary2.setAccountType("savings"); + summary2.setBalance(2000.0f); + report.getAccountSummaries().add(summary2); + + return report; + } + + public CustomerProfileData createAccount(CustomerProfileData customerProfile, boolean createSavings, boolean createCheckings) + { + CustomerProfileData data = AccountFactory.INSTANCE.createCustomerProfileData(); + data.setLoginID(customerProfile.getLoginID()); + data.setAddress(customerProfile.getAddress()); + data.setEmail(customerProfile.getEmail()); + data.setFirstName(customerProfile.getFirstName()); + data.setId(customerProfile.getId()); + data.setLastName(customerProfile.getLastName()); + data.setPassword(customerProfile.getPassword()); + return data; + } + + public float deposit(String param6, float param7) { + + return 0; + } + + public StockSummary purchaseStock(int param0, StockSummary stock) { + + return null; + } + + public StockSummary sellStock(int param13, int param14) { + + return null; + } + + public float withdraw(String param16, float param17) { + + return 0; + } + + public AccountLog getAccountLog(final int customerID) { + throw new IllegalStateException("This method should not be called"); + } +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountServiceClientImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountServiceClientImpl.java new file mode 100644 index 0000000000..d39df8c00e --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/AccountServiceClientImpl.java @@ -0,0 +1,77 @@ +/* + * 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 bigbank.account.services.accountdata; + +import org.osoa.sca.annotations.Reference; + +import com.bigbank.account.AccountLog; +import com.bigbank.account.AccountReport; +import com.bigbank.account.CustomerProfileData; +import com.bigbank.account.StockSummary; + +public class AccountServiceClientImpl implements AccountDataService { + + AccountDataService accountService; + + @Reference + public void setAccountService(AccountDataService accountService) { + this.accountService = accountService; + } + + public CustomerProfileData createAccount(CustomerProfileData param9, boolean param10, boolean param11) { + return accountService.createAccount(param9, param10, param11); + } + + public float deposit(String param6, float param7) { + + return 0; + } + + public AccountLog getAccountLog(int param0) { + + return null; + } + + public AccountReport getAccountReport(int param19) { + + return accountService.getAccountReport(param19); + } + + public CustomerProfileData getCustomerProfile(String param4) { + + return null; + } + + public StockSummary purchaseStock(int param0, StockSummary parm1) { + + return null; + } + + public StockSummary sellStock(int param13, int param14) { + + return null; + } + + public float withdraw(String param16, float param17) { + + return 0; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2aImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2aImpl.java new file mode 100644 index 0000000000..d4a06780c3 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2aImpl.java @@ -0,0 +1,77 @@ +/* + * 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 bigbank.account.services.accountdata; + +import org.osoa.sca.annotations.Reference; + +import com.bigbank.account.AccountLog; +import com.bigbank.account.AccountReport; +import com.bigbank.account.CustomerProfileData; +import com.bigbank.account.StockSummary; + +public class Component2aImpl implements AccountDataService { + + AccountDataService accountService; + + @Reference + public void setAccountService(AccountDataService accountService) { + this.accountService = accountService; + } + + public CustomerProfileData createAccount(CustomerProfileData param9, boolean param10, boolean param11) { + return accountService.createAccount(param9, param10, param11); + } + + public float deposit(String param6, float param7) { + + return 0; + } + + public AccountLog getAccountLog(int param0) { + + return null; + } + + public AccountReport getAccountReport(int param19) { + + return accountService.getAccountReport(param19); + } + + public CustomerProfileData getCustomerProfile(String param4) { + + return null; + } + + public StockSummary purchaseStock(int param0, StockSummary parm1) { + + return null; + } + + public StockSummary sellStock(int param13, int param14) { + + return null; + } + + public float withdraw(String param16, float param17) { + + return 0; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2bImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2bImpl.java new file mode 100644 index 0000000000..6dc46c60b5 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component2bImpl.java @@ -0,0 +1,77 @@ +/* + * 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 bigbank.account.services.accountdata; + +import org.osoa.sca.annotations.Reference; + +import com.bigbank.account.AccountLog; +import com.bigbank.account.AccountReport; +import com.bigbank.account.CustomerProfileData; +import com.bigbank.account.StockSummary; + +public class Component2bImpl implements AccountDataService { + + AccountDataService accountService; + + @Reference + public void setAccountService(AccountDataService accountService) { + this.accountService = accountService; + } + + public CustomerProfileData createAccount(CustomerProfileData param9, boolean param10, boolean param11) { + return accountService.createAccount(param9, param10, param11); + } + + public float deposit(String param6, float param7) { + + return 0; + } + + public AccountLog getAccountLog(int param0) { + + return null; + } + + public AccountReport getAccountReport(int param19) { + + return accountService.getAccountReport(param19); + } + + public CustomerProfileData getCustomerProfile(String param4) { + + return null; + } + + public StockSummary purchaseStock(int param0, StockSummary parm1) { + + return null; + } + + public StockSummary sellStock(int param13, int param14) { + + return null; + } + + public float withdraw(String param16, float param17) { + + return 0; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3aImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3aImpl.java new file mode 100644 index 0000000000..8471000152 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3aImpl.java @@ -0,0 +1,77 @@ +/* + * 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 bigbank.account.services.accountdata; + +import org.osoa.sca.annotations.Reference; + +import com.bigbank.account.AccountLog; +import com.bigbank.account.AccountReport; +import com.bigbank.account.CustomerProfileData; +import com.bigbank.account.StockSummary; + +public class Component3aImpl implements AccountDataService { + + AccountDataService accountService; + + @Reference + public void setAccountService(AccountDataService accountService) { + this.accountService = accountService; + } + + public CustomerProfileData createAccount(CustomerProfileData param9, boolean param10, boolean param11) { + return accountService.createAccount(param9, param10, param11); + } + + public float deposit(String param6, float param7) { + + return 0; + } + + public AccountLog getAccountLog(int param0) { + + return null; + } + + public AccountReport getAccountReport(int param19) { + + return accountService.getAccountReport(param19); + } + + public CustomerProfileData getCustomerProfile(String param4) { + + return null; + } + + public StockSummary purchaseStock(int param0, StockSummary parm1) { + + return null; + } + + public StockSummary sellStock(int param13, int param14) { + + return null; + } + + public float withdraw(String param16, float param17) { + + return 0; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3bImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3bImpl.java new file mode 100644 index 0000000000..859c61a724 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/Component3bImpl.java @@ -0,0 +1,77 @@ +/* + * 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 bigbank.account.services.accountdata; + +import org.osoa.sca.annotations.Reference; + +import com.bigbank.account.AccountLog; +import com.bigbank.account.AccountReport; +import com.bigbank.account.CustomerProfileData; +import com.bigbank.account.StockSummary; + +public class Component3bImpl implements AccountDataService { + + AccountDataService accountService; + + @Reference + public void setAccountService(AccountDataService accountService) { + this.accountService = accountService; + } + + public CustomerProfileData createAccount(CustomerProfileData param9, boolean param10, boolean param11) { + return accountService.createAccount(param9, param10, param11); + } + + public float deposit(String param6, float param7) { + + return 0; + } + + public AccountLog getAccountLog(int param0) { + + return null; + } + + public AccountReport getAccountReport(int param19) { + + return accountService.getAccountReport(param19); + } + + public CustomerProfileData getCustomerProfile(String param4) { + + return null; + } + + public StockSummary purchaseStock(int param0, StockSummary parm1) { + + return null; + } + + public StockSummary sellStock(int param13, int param14) { + + return null; + } + + public float withdraw(String param16, float param17) { + + return 0; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/CustomerIdService.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/CustomerIdService.java new file mode 100644 index 0000000000..e747eb041f --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/bigbank/account/services/accountdata/CustomerIdService.java @@ -0,0 +1,98 @@ +/* + * 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 bigbank.account.services.accountdata; + +import java.rmi.RemoteException; + +/** + * This interface allows access to a customer's id from the data service. + */ +public interface CustomerIdService { + + /* + * Return -1 if purchaseLotNumber not found + */ + public int getCustomerIdByPurchaseLotNumber(int purchaseLotNumber) throws RemoteException; + + /* + * Return -1 if account not found + */ + public int getCustomerIdByAccount(String account) throws RemoteException; + + // TODO (isilval) Fix this !!! + // Apparently, configuration can't deal with extends so I am adding the contents of AccountDataService here + + /** + * Auto generated method signatures + * + * @param param0* + * @param param1* + * @param param2 + */ + public com.bigbank.account.StockSummary purchaseStock(int param0, com.bigbank.account.StockSummary parm1) throws java.rmi.RemoteException; + + /** + * Auto generated method signatures + * + * @param param4 + */ + public com.bigbank.account.CustomerProfileData getCustomerProfile(java.lang.String param4) throws java.rmi.RemoteException; + + /** + * Auto generated method signatures + * + * @param param6* + * @param param7 + */ + public float deposit(java.lang.String param6, float param7) throws java.rmi.RemoteException; + + /** + * Auto generated method signatures + * + * @param param9* + * @param param10* + * @param param11 + */ + public com.bigbank.account.CustomerProfileData createAccount(com.bigbank.account.CustomerProfileData param9, boolean param10, boolean param11) + throws java.rmi.RemoteException; + + /** + * Auto generated method signatures + * + * @param param13* + * @param param14 + */ + public com.bigbank.account.StockSummary sellStock(int param13, int param14) throws java.rmi.RemoteException; + + /** + * Auto generated method signatures + * + * @param param16* + * @param param17 + */ + public float withdraw(java.lang.String param16, float param17) throws java.rmi.RemoteException; + + /** + * Auto generated method signatures + * + * @param param19 + */ + public com.bigbank.account.AccountReport getAccountReport(int param19) throws java.rmi.RemoteException; + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/helloworld/HelloWorldImpl.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/helloworld/HelloWorldImpl.java new file mode 100644 index 0000000000..ca7c25f3fa --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/java/helloworld/HelloWorldImpl.java @@ -0,0 +1,44 @@ +/* + * 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 helloworld; + +import org.osoa.sca.annotations.Service; + +/** + * This class implements the HelloWorld service. + */ +@Service(HelloWorldService.class) +public class HelloWorldImpl implements HelloWorldService { + + public String getGreetings(String name) { + return "Hi " + name; + } + + public String[] getMultipleGreetings(String[] names) { + if(names==null) { + return null; + } + String[] greetings = new String[names.length]; + for(int i=0; i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/WSDLTest.composite b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/WSDLTest.composite new file mode 100644 index 0000000000..e69cdbc282 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/WSDLTest.composite @@ -0,0 +1,350 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/some.composite b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/some.composite new file mode 100644 index 0000000000..1b099239d1 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/some.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/AccountService.wsdl b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/AccountService.wsdl new file mode 100644 index 0000000000..73f9ed4bfc --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/AccountService.wsdl @@ -0,0 +1,453 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/helloworld.wsdl b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/helloworld.wsdl new file mode 100644 index 0000000000..bc6fe0e89a --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/main/resources/wsdl/helloworld.wsdl @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/SDOWSDLTestCase.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/SDOWSDLTestCase.java new file mode 100644 index 0000000000..33f541b21b --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/SDOWSDLTestCase.java @@ -0,0 +1,173 @@ +/* + * 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 org.apache.tuscany.sca.itest; + +import static junit.framework.Assert.assertEquals; + +import java.rmi.RemoteException; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +import bigbank.account.services.accountdata.AccountDataService; + +import com.bigbank.account.AccountFactory; +import com.bigbank.account.AccountReport; +import com.bigbank.account.AccountSummary; +import com.bigbank.account.CustomerProfileData; + +/** + * Tests all the combinations of wiring services, components, and references + * which use either interface.java or interface.wsdl. + * + * The tests use a service (1) wired to a components (2) wired to another + * component (3) wired to a reference (4). Each of those uses either + * interface.java (a) or interface.wsdl (b). This results in 16 different + * combinations 1a2a3a4a thru 1b2b3b4b. + */ +public class SDOWSDLTestCase { + + private static SCADomain domain; + + @Test + public void testClient1a2a3a4a() throws RemoteException { + doit("Client1a2a3a4a"); + } + + @Test + public void testClient1a2a3a4b() throws RemoteException { + doit("Client1a2a3a4b"); + } + + @Test + public void testClient1a2a3b4a() throws RemoteException { + doit("Client1a2a3b4a"); + } + + @Test + public void testClient1a2a3b4b() throws RemoteException { + doit("Client1a2a3b4b"); + } + + @Test + public void testClient1a2b3a4a() throws RemoteException { + doit("Client1a2b3a4a"); + } + + @Test + public void testClient1a2b3a4b() throws RemoteException { + doit("Client1a2b3a4b"); + } + + @Test + public void testClient1a2b3b4a() throws RemoteException { + doit("Client1a2b3b4a"); + } + + @Test + public void testClient1a2b3b4b() throws RemoteException { + doit("Client1a2b3b4b"); + } + + @Test + public void testClient1b2a3a4a() throws RemoteException { + doit("Client1b2a3a4a"); + } + + @Test + public void testClient1b2a3a4b() throws RemoteException { + doit("Client1b2a3a4b"); + } + + @Test + public void testClient1b2a3b4a() throws RemoteException { + doit("Client1b2a3b4a"); + } + + @Test + public void testClient1b2a3b4b() throws RemoteException { + doit("Client1b2a3b4b"); + } + + @Test + public void testClient1b2b3a4a() throws RemoteException { + doit("Client1b2b3a4a"); + } + + @Test + public void testClient1b2b3a4b() throws RemoteException { + doit("Client1b2b3a4b"); + } + + @Test + public void testClient1b2b3b4a() throws RemoteException { + doit("Client1b2b3b4a"); + } + + @Test + public void testClient1b2b3b4b() throws RemoteException { + doit("Client1b2b3b4b"); + } + + private void doit(String compName) throws RemoteException { + AccountDataService client = domain.getService(AccountDataService.class, compName); + CustomerProfileData dataIn = AccountFactory.INSTANCE.createCustomerProfileData(); + dataIn.setAddress("home"); + dataIn.setEmail("petra@home"); + dataIn.setFirstName("petra"); + dataIn.setId(1); + dataIn.setLastName("A"); + dataIn.setLoginID("petra"); + dataIn.setPassword("ant"); + + CustomerProfileData dataOut = client.createAccount(dataIn , false, false); + + assertEquals(dataIn.getAddress(), dataOut.getAddress()); + assertEquals(dataIn.getEmail(), dataOut.getEmail()); + assertEquals(dataIn.getFirstName(), dataOut.getFirstName()); + assertEquals(dataIn.getId(), dataOut.getId()); + assertEquals(dataIn.getLastName(), dataOut.getLastName()); + assertEquals(dataIn.getLoginID(), dataOut.getLoginID()); + assertEquals(dataIn.getPassword(), dataOut.getPassword()); + + AccountReport report = client.getAccountReport(12345); + AccountSummary summary1 = (AccountSummary)report.getAccountSummaries().get(0); + assertEquals(summary1.getAccountType(), "checking"); + AccountSummary summary2 = (AccountSummary)report.getAccountSummaries().get(1); + assertEquals(summary2.getBalance(), 2000.f); + } + + @BeforeClass + public static void setUp() throws Exception { + try { + domain = SCADomain.newInstance("SDOWSDLTest.composite"); + }catch(Throwable e) { + e.printStackTrace(); + } + } + + @AfterClass + public static void tearDown() throws Exception { + domain.close(); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/WSDLTestCase.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/WSDLTestCase.java new file mode 100644 index 0000000000..82bf7ce650 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/org/apache/tuscany/sca/itest/WSDLTestCase.java @@ -0,0 +1,150 @@ +/* + * 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 org.apache.tuscany.sca.itest; + +import static junit.framework.Assert.assertEquals; +import helloworld.HelloWorldService; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * Tests all the combinations of wiring services, components, and references + * which use either interface.java or interface.wsdl. The tests use a service + * (1) wired to a components (2) wired to another component (3) wired to a + * reference (4). Each of those uses either interface.java (a) or interface.wsdl + * (b). This results in 16 different combinations 1a2a3a4a thru 1b2b3b4b. + */ +public class WSDLTestCase { + + private static SCADomain domain; + + @Test + public void testClient1a2a3a4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2a3a4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + String[] greetings = client.getMultipleGreetings(new String[] {"John", "Smith"}); + assertEquals(2, greetings.length); + assertEquals("Hi John", greetings[0]); + assertEquals("Hi Smith", greetings[1]); + } + + @Test + public void testClient1a2a3a4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2a3a4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1a2a3b4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2a3b4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1a2a3b4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2a3b4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1a2b3a4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2b3a4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1a2b3a4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2b3a4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1a2b3b4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2b3b4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1a2b3b4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1a2b3b4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2a3a4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2a3a4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2a3a4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2a3a4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2a3b4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2a3b4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2a3b4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2a3b4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2b3a4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2b3a4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2b3a4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2b3a4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2b3b4a() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2b3b4a"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @Test + public void testClient1b2b3b4b() { + HelloWorldService client = domain.getService(HelloWorldService.class, "Client1b2b3b4b"); + assertEquals("Hi petra", client.getGreetings("petra")); + } + + @BeforeClass + public static void init() throws Throwable { + domain = SCADomain.newInstance("WSDLTest.composite"); + } + + @AfterClass + public static void destroy() throws Exception { + domain.close(); + } +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/SomeComponentTestCase.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/SomeComponentTestCase.java new file mode 100644 index 0000000000..95603ad0be --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/SomeComponentTestCase.java @@ -0,0 +1,82 @@ +/* + * 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 service; + +import static org.junit.Assert.assertEquals; + +import java.net.URL; + +import javax.xml.namespace.QName; + +import org.apache.tuscany.sca.host.embedded.SCADomain; +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +import service.generated.SomeServiceService; + +/** + * + */ +public class SomeComponentTestCase { + private static SCADomain scaDomain; + private static SomeService someService; + + @BeforeClass + public static void setUp() throws Exception { + scaDomain = SCADomain.newInstance("some.composite"); + someService = scaDomain.getService(SomeService.class, "SomeServicesComponent"); + } + + @AfterClass + public static void tearDown() throws Exception { + scaDomain.close(); + } + + @Test + public void testGetUsingMoreComplexObject() throws Exception { + String stringParam = "ABC"; + URL url = new URL("http://localhost:8085/SomeServices?wsdl"); + QName serviceQName = new QName("http://service/", "SomeServiceService"); + SomeServiceService service = new SomeServiceService(url, serviceQName); + service.generated.SomeService proxy = service.getSomeServicePort(); + service.generated.AnObject obj = proxy.getUsingString(stringParam); + assertEquals(stringParam + "123", obj.getSomeRetValue()); + + service.generated.MoreComplexObject obj2 = new service.generated.MoreComplexObject(); + obj2.setStringParam(stringParam); + obj2.setStringParam2("2"); + obj2.setIntParam(new Integer(0)); + + obj = proxy.getUsingMoreComplexObject(obj2); + assertEquals(stringParam + "123", obj.getSomeRetValue()); + } + + @Test + public void testLocal() { + String stringParam = "1234"; + MoreComplexObject moreComplexParam = new MoreComplexObject(); + moreComplexParam.setStringParam(stringParam); + + AnObject anObject = someService.getUsingMoreComplexObject(moreComplexParam); + + assertEquals(stringParam + "123", anObject.getSomeRetValue()); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/AnObject.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/AnObject.java new file mode 100644 index 0000000000..effeb3c701 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/AnObject.java @@ -0,0 +1,100 @@ +/* + * 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 service.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + +/** + *

Java class for anObject complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="anObject">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="someOtherRetValue" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="someRetValue" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "anObject", namespace = "", propOrder = {"someOtherRetValue", "someRetValue"}) +public class AnObject { + + protected Integer someOtherRetValue; + protected String someRetValue; + + /** + * Gets the value of the someOtherRetValue property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getSomeOtherRetValue() { + return someOtherRetValue; + } + + /** + * Sets the value of the someOtherRetValue property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSomeOtherRetValue(Integer value) { + this.someOtherRetValue = value; + } + + /** + * Gets the value of the someRetValue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSomeRetValue() { + return someRetValue; + } + + /** + * Sets the value of the someRetValue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSomeRetValue(String value) { + this.someRetValue = value; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObject.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObject.java new file mode 100644 index 0000000000..284e961788 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObject.java @@ -0,0 +1,79 @@ +/* + * 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 service.generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="arg0" type="{}moreComplexObject" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = {"arg0"}) +@XmlRootElement(name = "getUsingMoreComplexObject", namespace = "http://service/") +public class GetUsingMoreComplexObject { + + @XmlElementRef(name = "arg0", type = JAXBElement.class) + protected JAXBElement arg0; + + /** + * Gets the value of the arg0 property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link MoreComplexObject }{@code >} + * + */ + public JAXBElement getArg0() { + return arg0; + } + + /** + * Sets the value of the arg0 property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link MoreComplexObject }{@code >} + * + */ + public void setArg0(JAXBElement value) { + this.arg0 = ((JAXBElement)value); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObjectResponse.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObjectResponse.java new file mode 100644 index 0000000000..4113aa1a0a --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingMoreComplexObjectResponse.java @@ -0,0 +1,79 @@ +/* + * 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 service.generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="return" type="{}anObject" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = {"_return"}) +@XmlRootElement(name = "getUsingMoreComplexObjectResponse", namespace = "http://service/") +public class GetUsingMoreComplexObjectResponse { + + @XmlElementRef(name = "return", type = JAXBElement.class) + protected JAXBElement _return; + + /** + * Gets the value of the return property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link AnObject }{@code >} + * + */ + public JAXBElement getReturn() { + return _return; + } + + /** + * Sets the value of the return property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link AnObject }{@code >} + * + */ + public void setReturn(JAXBElement value) { + this._return = ((JAXBElement)value); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingString.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingString.java new file mode 100644 index 0000000000..532b948b47 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingString.java @@ -0,0 +1,79 @@ +/* + * 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 service.generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = {"arg0"}) +@XmlRootElement(name = "getUsingString", namespace = "http://service/") +public class GetUsingString { + + @XmlElementRef(name = "arg0", type = JAXBElement.class) + protected JAXBElement arg0; + + /** + * Gets the value of the arg0 property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public JAXBElement getArg0() { + return arg0; + } + + /** + * Sets the value of the arg0 property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + */ + public void setArg0(JAXBElement value) { + this.arg0 = ((JAXBElement)value); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingStringResponse.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingStringResponse.java new file mode 100644 index 0000000000..82bfb2d2aa --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/GetUsingStringResponse.java @@ -0,0 +1,79 @@ +/* + * 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 service.generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="return" type="{}anObject" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = {"_return"}) +@XmlRootElement(name = "getUsingStringResponse", namespace = "http://service/") +public class GetUsingStringResponse { + + @XmlElementRef(name = "return", type = JAXBElement.class) + protected JAXBElement _return; + + /** + * Gets the value of the return property. + * + * @return + * possible object is + * {@link JAXBElement }{@code <}{@link AnObject }{@code >} + * + */ + public JAXBElement getReturn() { + return _return; + } + + /** + * Sets the value of the return property. + * + * @param value + * allowed object is + * {@link JAXBElement }{@code <}{@link AnObject }{@code >} + * + */ + public void setReturn(JAXBElement value) { + this._return = ((JAXBElement)value); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/MoreComplexObject.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/MoreComplexObject.java new file mode 100644 index 0000000000..61c7c6cb19 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/MoreComplexObject.java @@ -0,0 +1,126 @@ +/* + * 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 service.generated; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + +/** + *

Java class for moreComplexObject complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="moreComplexObject">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="intParam" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
+ *         <element name="stringParam" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="stringParam2" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "moreComplexObject", namespace = "", propOrder = {"intParam", "stringParam", "stringParam2"}) +public class MoreComplexObject { + + protected Integer intParam; + protected String stringParam; + protected String stringParam2; + + /** + * Gets the value of the intParam property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIntParam() { + return intParam; + } + + /** + * Sets the value of the intParam property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIntParam(Integer value) { + this.intParam = value; + } + + /** + * Gets the value of the stringParam property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStringParam() { + return stringParam; + } + + /** + * Sets the value of the stringParam property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStringParam(String value) { + this.stringParam = value; + } + + /** + * Gets the value of the stringParam2 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStringParam2() { + return stringParam2; + } + + /** + * Sets the value of the stringParam2 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStringParam2(String value) { + this.stringParam2 = value; + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/ObjectFactory.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/ObjectFactory.java new file mode 100644 index 0000000000..1ba0c497d9 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/ObjectFactory.java @@ -0,0 +1,141 @@ +/* + * 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 service.generated; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the service.jaxws package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _GetUsingMoreComplexObjectArg0_QNAME = new QName("", "arg0"); + private final static QName _GetUsingStringResponseReturn_QNAME = new QName("", "return"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: service.jaxws + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link AnObject } + * + */ + public AnObject createAnObject() { + return new AnObject(); + } + + /** + * Create an instance of {@link GetUsingStringResponse } + * + */ + public GetUsingStringResponse createGetUsingStringResponse() { + return new GetUsingStringResponse(); + } + + /** + * Create an instance of {@link GetUsingMoreComplexObjectResponse } + * + */ + public GetUsingMoreComplexObjectResponse createGetUsingMoreComplexObjectResponse() { + return new GetUsingMoreComplexObjectResponse(); + } + + /** + * Create an instance of {@link GetUsingString } + * + */ + public GetUsingString createGetUsingString() { + return new GetUsingString(); + } + + /** + * Create an instance of {@link GetUsingMoreComplexObject } + * + */ + public GetUsingMoreComplexObject createGetUsingMoreComplexObject() { + return new GetUsingMoreComplexObject(); + } + + /** + * Create an instance of {@link MoreComplexObject } + * + */ + public MoreComplexObject createMoreComplexObject() { + return new MoreComplexObject(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link MoreComplexObject }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "arg0", scope = GetUsingMoreComplexObject.class) + public JAXBElement createGetUsingMoreComplexObjectArg0(MoreComplexObject value) { + return new JAXBElement(_GetUsingMoreComplexObjectArg0_QNAME, MoreComplexObject.class, + GetUsingMoreComplexObject.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AnObject }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "return", scope = GetUsingStringResponse.class) + public JAXBElement createGetUsingStringResponseReturn(AnObject value) { + return new JAXBElement(_GetUsingStringResponseReturn_QNAME, AnObject.class, + GetUsingStringResponse.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link AnObject }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "return", scope = GetUsingMoreComplexObjectResponse.class) + public JAXBElement createGetUsingMoreComplexObjectResponseReturn(AnObject value) { + return new JAXBElement(_GetUsingStringResponseReturn_QNAME, AnObject.class, + GetUsingMoreComplexObjectResponse.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "", name = "arg0", scope = GetUsingString.class) + public JAXBElement createGetUsingStringArg0(String value) { + return new JAXBElement(_GetUsingMoreComplexObjectArg0_QNAME, String.class, GetUsingString.class, value); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeService.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeService.java new file mode 100644 index 0000000000..4a584a8da2 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeService.java @@ -0,0 +1,65 @@ +/* + * 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 service.generated; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.ws.RequestWrapper; +import javax.xml.ws.ResponseWrapper; + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.1 in JDK 6 + * Generated source version: 2.1 + * + */ +@WebService(name = "SomeService", targetNamespace = "http://service/") +@XmlSeeAlso( {ObjectFactory.class}) +public interface SomeService { + + /** + * + * @param arg0 + * @return + * returns service.generated.AnObject + */ + @WebMethod + @WebResult(targetNamespace = "") + @RequestWrapper(localName = "getUsingMoreComplexObject", targetNamespace = "http://service/", className = "service.generated.GetUsingMoreComplexObject") + @ResponseWrapper(localName = "getUsingMoreComplexObjectResponse", targetNamespace = "http://service/", className = "service.generated.GetUsingMoreComplexObjectResponse") + public AnObject getUsingMoreComplexObject(@WebParam(name = "arg0", targetNamespace = "") + MoreComplexObject arg0); + + /** + * + * @param arg0 + * @return + * returns service.generated.AnObject + */ + @WebMethod + @WebResult(targetNamespace = "") + @RequestWrapper(localName = "getUsingString", targetNamespace = "http://service/", className = "service.generated.GetUsingString") + @ResponseWrapper(localName = "getUsingStringResponse", targetNamespace = "http://service/", className = "service.generated.GetUsingStringResponse") + public AnObject getUsingString(@WebParam(name = "arg0", targetNamespace = "") + String arg0); + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeServiceService.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeServiceService.java new file mode 100644 index 0000000000..44c2b67256 --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/SomeServiceService.java @@ -0,0 +1,81 @@ +/* + * 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 service.generated; + +import java.net.MalformedURLException; +import java.net.URL; + +import javax.xml.namespace.QName; +import javax.xml.ws.Service; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; + +/** + * This class was generated by the JAX-WS RI. + * JAX-WS RI 2.1.1 in JDK 6 + * Generated source version: 2.1 + * + */ +@WebServiceClient(name = "SomeServiceService", targetNamespace = "http://service/", wsdlLocation = "file:/C:/Tuscany/java/sca/itest/wsdlless/src/main/resources/some.wsdl") +public class SomeServiceService extends Service { + + private final static URL SOMESERVICESERVICE_WSDL_LOCATION; + + static { + URL url = null; + try { + url = new URL("file:/C:/Tuscany/java/sca/itest/wsdlless/src/main/resources/some.wsdl"); + } catch (MalformedURLException e) { + e.printStackTrace(); + } + SOMESERVICESERVICE_WSDL_LOCATION = url; + } + + public SomeServiceService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public SomeServiceService() { + super(SOMESERVICESERVICE_WSDL_LOCATION, new QName("http://service/", "SomeServiceService")); + } + + /** + * + * @return + * returns SomeService + */ + @WebEndpoint(name = "SomeServicePort") + public SomeService getSomeServicePort() { + return (SomeService)super.getPort(new QName("http://service/", "SomeServicePort"), SomeService.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns SomeService + */ + @WebEndpoint(name = "SomeServicePort") + public SomeService getSomeServicePort(WebServiceFeature... features) { + return (SomeService)super.getPort(new QName("http://service/", "SomeServicePort"), SomeService.class, features); + } + +} diff --git a/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/package-info.java b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/package-info.java new file mode 100644 index 0000000000..d7b3fef82e --- /dev/null +++ b/sca-java-1.x/tags/1.6.2-RC1/itest/wsdlless/src/test/java/service/generated/package-info.java @@ -0,0 +1,21 @@ +/* + * 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. + */ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://service/") +package service.generated; + -- cgit v1.2.3