diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-29 11:06:51 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-29 11:06:51 +0000 |
commit | 80187c2196b29f7fff41252d71ea807b42ae49f1 (patch) | |
tree | 6f0c9248101fd233034754669d8838df7c3519e9 /branches/sca-java-1.x/itest/wsdlgen/src/main/resources | |
parent | c873aa270ae11f4c690ecec13fdc597c515c2b15 (diff) |
TUSCANY-3283 - add test case to look in more detail at how POJOs are converted to schema during WSDL generation
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@819885 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/itest/wsdlgen/src/main/resources')
-rw-r--r-- | branches/sca-java-1.x/itest/wsdlgen/src/main/resources/helloworld1.composite | 33 | ||||
-rw-r--r-- | branches/sca-java-1.x/itest/wsdlgen/src/main/resources/wsdl/helloworld.wsdl | 234 |
2 files changed, 183 insertions, 84 deletions
diff --git a/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/helloworld1.composite b/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/helloworld1.composite new file mode 100644 index 0000000000..12ef393521 --- /dev/null +++ b/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/helloworld1.composite @@ -0,0 +1,33 @@ +<?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/> + </service> + </component> + +</composite> diff --git a/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/wsdl/helloworld.wsdl b/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/wsdl/helloworld.wsdl index c76ed7b338..35dfe95359 100644 --- a/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/wsdl/helloworld.wsdl +++ b/branches/sca-java-1.x/itest/wsdlgen/src/main/resources/wsdl/helloworld.wsdl @@ -15,83 +15,121 @@ governing permissions and limitations * under the License. --> <wsdl:definitions name="HelloWorldServiceService" - targetNamespace="http://helloworld/" - xmlns:tns="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/"> + targetNamespace="http://helloworld/" xmlns:tns="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 targetNamespace="http://test" version="1.0" - xmlns:tns="http://test" xmlns:xs="http://www.w3.org/2001/XMLSchema"> - <xs:complexType name="aBean"> + <xs:schema targetNamespace="http://helloworld/" + version="1.0" xmlns:ns1="http://test" xmlns:tns="http://helloworld/" + xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:import namespace="http://test" /> + + <xs:element name="getGreetings" type="tns:getGreetings" /> + <xs:element name="getGreetingsBBean" type="tns:getGreetingsBBean" /> + <xs:element name="getGreetingsBBeanResponse" + type="tns:getGreetingsBBeanResponse" /> + <xs:element name="getGreetingsBean" type="tns:getGreetingsBean" /> + <xs:element name="getGreetingsBeanArray" type="tns:getGreetingsBeanArray" /> + <xs:element name="getGreetingsBeanArrayResponse" + type="tns:getGreetingsBeanArrayResponse" /> + <xs:element name="getGreetingsBeanResponse" type="tns:getGreetingsBeanResponse" /> + <xs:element name="getGreetingsCBean" type="tns:getGreetingsCBean" /> + <xs:element name="getGreetingsCBeanResponse" + type="tns:getGreetingsCBeanResponse" /> + + <xs:element name="getGreetingsResponse" type="tns:getGreetingsResponse" /> + <xs:complexType name="getGreetingsBBeanResponse"> <xs:sequence> - <xs:element minOccurs="0" name="field1" + <xs:element minOccurs="0" name="return" type="xs:string" /> - <xs:element minOccurs="0" name="field2" + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsCBeanResponse"> + <xs:sequence> + <xs:element minOccurs="0" name="return" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsBeanArrayResponse"> + <xs:sequence> + <xs:element minOccurs="0" name="return" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsResponse"> + <xs:sequence> + <xs:element minOccurs="0" name="return" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetings"> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" type="xs:string" /> </xs:sequence> </xs:complexType> - <xs:complexType final="#all" name="aBeanArray"> + <xs:complexType name="getGreetingsBeanResponse"> + <xs:sequence> + <xs:element minOccurs="0" name="return" + type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsBean"> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" + type="ns1:aBean" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsCBean"> + <xs:sequence> + <xs:element minOccurs="0" name="arg0"> + <xs:complexType> + <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:element> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsBBean"> + <xs:sequence> + <xs:element minOccurs="0" name="arg0" + type="tns:bBean" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="getGreetingsBeanArray"> <xs:sequence> <xs:element maxOccurs="unbounded" - minOccurs="0" name="item" nillable="true" type="tns:aBean" /> + minOccurs="0" name="arg0" nillable="true" type="ns1:aBean" /> + </xs:sequence> + </xs:complexType> + + <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:schema> - <xs:schema attributeFormDefault="qualified" - elementFormDefault="unqualified" targetNamespace="http://helloworld/" - xmlns:ns0="http://test" 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="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="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="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:schema targetNamespace="http://test" version="1.0" + xmlns:__nnns="http://helloworld/" 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:schema> </wsdl:types> <wsdl:message name="getGreetingsBean"> @@ -101,12 +139,27 @@ <wsdl:message name="getGreetings"> <wsdl:part name="getGreetings" element="tns:getGreetings"> </wsdl:part> + + </wsdl:message> + <wsdl:message name="getGreetingsCBean"> + <wsdl:part name="getGreetingsCBean" element="tns:getGreetingsCBean"> + </wsdl:part> + </wsdl:message> + <wsdl:message name="getGreetingsCBeanResponse"> + <wsdl:part name="getGreetingsCBeanResponse" element="tns:getGreetingsCBeanResponse"> + </wsdl:part> + </wsdl:message> + + <wsdl:message name="getGreetingsBBean"> + <wsdl:part name="getGreetingsBBean" element="tns:getGreetingsBBean"> + </wsdl:part> </wsdl:message> <wsdl:message name="getGreetingsResponse"> <wsdl:part name="getGreetingsResponse" element="tns:getGreetingsResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="getGreetingsBeanResponse"> + <wsdl:part name="getGreetingsBeanResponse" element="tns:getGreetingsBeanResponse"> </wsdl:part> </wsdl:message> @@ -115,6 +168,11 @@ element="tns:getGreetingsBeanArrayResponse"> </wsdl:part> </wsdl:message> + <wsdl:message name="getGreetingsBBeanResponse"> + <wsdl:part name="getGreetingsBBeanResponse" element="tns:getGreetingsBBeanResponse"> + + </wsdl:part> + </wsdl:message> <wsdl:message name="getGreetingsBeanArray"> <wsdl:part name="getGreetingsBeanArray" element="tns:getGreetingsBeanArray"> </wsdl:part> @@ -122,6 +180,7 @@ <wsdl:portType name="HelloWorldService"> <wsdl:operation name="getGreetings"> <wsdl:input message="tns:getGreetings"> + </wsdl:input> <wsdl:output message="tns:getGreetingsResponse"> </wsdl:output> @@ -131,6 +190,7 @@ </wsdl:input> <wsdl:output message="tns:getGreetingsBeanResponse"> </wsdl:output> + </wsdl:operation> <wsdl:operation name="getGreetingsBeanArray"> <wsdl:input message="tns:getGreetingsBeanArray"> @@ -138,64 +198,70 @@ <wsdl:output message="tns:getGreetingsBeanArrayResponse"> </wsdl:output> </wsdl:operation> + <wsdl:operation name="getGreetingsBBean"> + <wsdl:input message="tns:getGreetingsBBean"> + + </wsdl:input> + <wsdl:output message="tns:getGreetingsBBeanResponse"> + </wsdl:output> + </wsdl:operation> + <wsdl:operation name="getGreetingsCBean"> + <wsdl:input message="tns:getGreetingsCBean"> + </wsdl:input> + <wsdl:output message="tns:getGreetingsCBeanResponse"> + </wsdl:output> + + </wsdl:operation> </wsdl:portType> <wsdl:binding name="HelloWorldJmsBinding" type="tns:HelloWorldService"> <SOAP:binding style="document" - transport="http://schemas.xmlsoap.org/soap/jms" /> + transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="getGreetings"> - <SOAP:operation soapAction="urn:getGreetings" /> + <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 soapAction="urn: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 soapAction="urn:getGreetingsBeanArray" /> - <wsdl:input> - <SOAP:body use="literal" /> - </wsdl:input> - <wsdl:output> - <SOAP:body use="literal" /> - </wsdl:output> - </wsdl:operation> - </wsdl:binding> - <wsdl:binding name="HelloWorldWSBinding" type="tns: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="getGreetingsBean"> + <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="getGreetingsBeanArray"> + <wsdl:operation name="getGreetingsCBean"> <SOAP:operation /> <wsdl:input> <SOAP:body use="literal" /> </wsdl:input> + <wsdl:output> <SOAP:body use="literal" /> </wsdl:output> |