diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-30 19:50:51 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-30 19:50:51 +0000 |
commit | 3a569a2f00bf172cddfd567149774ee808a2a242 (patch) | |
tree | 5b18450a44f7f33a4d3c56780393f15331150347 /sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources | |
parent | c1fc4bd1ac2a2133b870e4314424cfd050bef607 (diff) |
Create branch for 1.6.2
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1087059 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
5 files changed, 546 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..c7797931d2 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ +<?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. +--> +<contribution xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:hw="http://helloworld"> + <deployable composite="hw:helloworldws" /> +</contribution> diff --git a/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/definitions.xml b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/definitions.xml new file mode 100644 index 0000000000..e1b316dcc6 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/definitions.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="ASCII"?> +<!-- + * 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. +--> +<sca:definitions xmlns="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://www.osoa.org/xmlns/sca/1.0" + xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" + xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"> + + <sca:intent name="transport" + constrains="sca:binding.ws"> + <sca:description> + The general intent that a transport is available over which SOAP messages flow + </sca:description> + </sca:intent> + + <sca:intent name="transport.jms"> + <sca:description> + A JMS transport is required + </sca:description> + </sca:intent> + + <sca:intent name="transport.http"> + <sca:description> + An HTTP transport is required + </sca:description> + </sca:intent> + + <!-- + how does the following relate to confidentiality intents + does confidentiality become a profile intent? + --> + <sca:intent name="transport.https"> + <sca:description> + An HTTPS transport is required + </sca:description> + </sca:intent> + + <sca:policySet name="wsJMSTransportPolicy" + provides="transport.jms" + appliesTo="sca:binding.ws"> + <tuscany:wsConfigParam> + <parameter name="TuscanyQueueConnectionFactory"> + <parameter name="java.naming.factory.initial">org.apache.activemq.jndi.ActiveMQInitialContextFactory</parameter> + <parameter name="java.naming.provider.url">tcp://localhost:61982</parameter> + <parameter name="transport.jms.ConnectionFactoryJNDIName">QueueConnectionFactory</parameter> + </parameter> + </tuscany:wsConfigParam> + </sca:policySet> + + </sca:definitions>
\ No newline at end of file diff --git a/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/helloworld.composite b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..2b5d51b71e --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/helloworld.composite @@ -0,0 +1,71 @@ +<?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. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://helloworld" + xmlns:hw="http://helloworld" + name="helloworldws"> + + <component name="HelloWorldServiceComponent1"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <binding.ws uri="jms:/queue.sample?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:51293"/> + </service> + </component> + + <component name="HelloWorldServiceComponent2"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <interface.wsdl interface="http://helloworld/#wsdl.interface(HelloWorldService)" /> + <binding.ws uri="jms:/queue.sample?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:51293"/> + </service> + </component> + + <component name="HelloWorldServiceComponent3"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <binding.ws uri="jms:/queue.sample?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:51293" + wsdlElement="http://helloworld/#wsdl.binding(HelloWorldJmsBinding)"/> + </service> + </component> + + <component name="HelloWorldServiceComponent4"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <binding.ws wsdlElement="http://helloworld/#wsdl.port(HelloWorldService/HelloWorldJmsPort)"/> + </service> + </component> + + <component name="HelloWorldServiceComponent5"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <binding.ws wsdlElement="http://helloworld/#wsdl.service(HelloWorldService)"/> + </service> + </component> + + + <component name="HelloWorldServiceComponent10"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <binding.ws/> + </service> + </component> + +</composite> diff --git a/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/helloworld1.composite b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/helloworld1.composite new file mode 100644 index 0000000000..3bd84f34d9 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/helloworld1.composite @@ -0,0 +1,43 @@ +<?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. +--> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" + xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" + targetNamespace="http://helloworld" + xmlns:hw="http://helloworld" + name="helloworldws"> + + <component name="HelloWorldClientComponent1"> + <implementation.java class="helloworld.HelloWorldClientImpl" /> + <service name="HelloWorldService"> + <binding.sca/> + </service> + <reference name="hwService"> + <binding.ws uri="http://localhost:8085/HelloWorldServiceComponent1"/> + </reference> + </component> + + <component name="HelloWorldServiceComponent1"> + <implementation.java class="helloworld.HelloWorldImpl" /> + <service name="HelloWorldService"> + <binding.ws uri="http://localhost:8085/HelloWorldServiceComponent1"/> + </service> + </component> + +</composite> diff --git a/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/wsdl/HelloWorldService_TuscanyGen.wsdl b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/wsdl/HelloWorldService_TuscanyGen.wsdl new file mode 100644 index 0000000000..185aa2c649 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-1.6.2/itest/wsdlgen/src/main/resources/wsdl/HelloWorldService_TuscanyGen.wsdl @@ -0,0 +1,343 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes"?> + <!-- + * 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. + --> + + <!-- + Generated by pointing a browser at + http://l3aw203:8085/HelloWorldServiceComponent1?wsdl + --> + <!-- but with manual changes to introduce the JMS configuration --> + +<wsdl:definitions name="HelloWorldServiceService" + targetNamespace="http://helloworld/" xmlns="http://helloworld/" + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" + xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/"> + <wsdl:types> + <xs:schema attributeFormDefault="qualified" + elementFormDefault="unqualified" targetNamespace="http://helloworld/" + xmlns:ns0="http://test" xmlns:tns="http://helloworld/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:import namespace="http://test" /> + <xs:element name="getGreetingsBean"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" nillable="true" + type="ns0:aBean" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsDBean"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" nillable="true" + type="tns:dBean" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetings"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsCBean"> + <xs:complexType> + <xs:sequence/> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsDBeanResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsCBeanResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsBBean"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" nillable="true" + type="tns:bBean" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsBeanResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsBeanArrayResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsBBeanResponse"> + <xs:complexType> + <xs:sequence> + <xs:element minOccurs="0" name="return" nillable="true" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="getGreetingsBeanArray"> + <xs:complexType> + <xs:sequence> + <xs:element maxOccurs="unbounded" minOccurs="0" name="arg0" + nillable="true" type="ns0:aBean" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:complexType name="bBean"> + <xs:sequence> + <xs:element minOccurs="0" name="field1" type="xs:string" /> + <xs:element minOccurs="0" name="field2" type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="dBean"> + <xs:sequence> + <xs:element minOccurs="0" name="field1" type="xs:string" /> + <xs:element minOccurs="0" name="field2" type="xs:string" /> + <xs:element minOccurs="0" name="field3" type="tns:bBean" /> + </xs:sequence> + </xs:complexType> + </xs:schema> + <xs:schema targetNamespace="http://test" version="1.0" + xmlns:__nnns="http://helloworld/" xmlns:tns="http://test" + xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:import namespace="http://helloworld/" /> + <xs:complexType name="aBean"> + <xs:sequence> + <xs:element minOccurs="0" name="field1" type="xs:string" /> + <xs:element minOccurs="0" name="field2" type="xs:string" /> + <xs:element minOccurs="0" name="field3" type="__nnns:bBean" /> + </xs:sequence> + </xs:complexType> + <xs:complexType final="#all" name="aBeanArray"> + <xs:sequence> + <xs:element maxOccurs="unbounded" minOccurs="0" name="item" + nillable="true" type="tns:aBean" /> + </xs:sequence> + </xs:complexType> + </xs:schema> + </wsdl:types> + <wsdl:message name="getGreetingsBean"> + <wsdl:part name="getGreetingsBean" element="getGreetingsBean"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsDBean"> + <wsdl:part name="getGreetingsDBean" element="getGreetingsDBean"> + + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetings"> + <wsdl:part name="getGreetings" element="getGreetings"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsCBean"> + <wsdl:part name="getGreetingsCBean" element="getGreetingsCBean"> + </wsdl:part> + + </wsdl:message> + <wsdl:message name="getGreetingsDBeanResponse"> + <wsdl:part name="getGreetingsDBeanResponse" element="getGreetingsDBeanResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsCBeanResponse"> + <wsdl:part name="getGreetingsCBeanResponse" element="getGreetingsCBeanResponse"> + </wsdl:part> + </wsdl:message> + + <wsdl:message name="getGreetingsBBean"> + <wsdl:part name="getGreetingsBBean" element="getGreetingsBBean"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsResponse"> + <wsdl:part name="getGreetingsResponse" element="getGreetingsResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsBeanResponse"> + + <wsdl:part name="getGreetingsBeanResponse" element="getGreetingsBeanResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsBeanArrayResponse"> + <wsdl:part name="getGreetingsBeanArrayResponse" element="getGreetingsBeanArrayResponse"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsBBeanResponse"> + <wsdl:part name="getGreetingsBBeanResponse" element="getGreetingsBBeanResponse"> + + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsBeanArray"> + <wsdl:part name="getGreetingsBeanArray" element="getGreetingsBeanArray"> + </wsdl:part> + </wsdl:message> + <wsdl:portType name="HelloWorldService"> + <wsdl:operation name="getGreetings"> + <wsdl:input message="getGreetings"> + + </wsdl:input> + <wsdl:output message="getGreetingsResponse"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="getGreetingsDBean"> + <wsdl:input message="getGreetingsDBean"> + </wsdl:input> + <wsdl:output message="getGreetingsDBeanResponse"> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsBean"> + <wsdl:input message="getGreetingsBean"> + </wsdl:input> + <wsdl:output message="getGreetingsBeanResponse"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="getGreetingsBeanArray"> + <wsdl:input message="getGreetingsBeanArray"> + + </wsdl:input> + <wsdl:output message="getGreetingsBeanArrayResponse"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="getGreetingsBBean"> + <wsdl:input message="getGreetingsBBean"> + </wsdl:input> + <wsdl:output message="getGreetingsBBeanResponse"> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsCBean"> + <wsdl:input message="getGreetingsCBean"> + </wsdl:input> + <wsdl:output message="getGreetingsCBeanResponse"> + </wsdl:output> + </wsdl:operation> + </wsdl:portType> + <wsdl:binding name="HelloWorldServiceBinding" type="HelloWorldService"> + + <SOAP:binding style="document" + transport="http://schemas.xmlsoap.org/soap/http" /> + <wsdl:operation name="getGreetings"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsDBean"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsBean"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsBeanArray"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsBBean"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + + </wsdl:operation> + <wsdl:operation name="getGreetingsCBean"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + + </wsdl:operation> + </wsdl:binding> + + <wsdl:binding name="HelloWorldJmsBinding" type="HelloWorldService"> + <SOAP:binding style="document" transport="http://schemas.xmlsoap.org/soap/jms" /> + <wsdl:operation name="getGreetings"> + <SOAP:operation /> + <wsdl:input> + <SOAP:body use="literal" /> + </wsdl:input> + + <wsdl:output> + <SOAP:body use="literal" /> + </wsdl:output> + </wsdl:operation> + + </wsdl:binding> + + <wsdl:service name="HelloWorldService"> + <wsdl:port name="HelloWorldJmsPort" binding="HelloWorldJmsBinding"> + <SOAP:address + location="jms:/queue.sample?transport.jms.ConnectionFactoryJNDIName=QueueConnectionFactory&java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory&java.naming.provider.url=tcp://localhost:51293" /> + </wsdl:port> + <wsdl:port name="HelloWorldServicePort" binding="HelloWorldServiceBinding"> + <SOAP:address location="http://localhost:8085/HelloWorldServiceComponent1" /> + </wsdl:port> + </wsdl:service> +</wsdl:definitions> |