summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources')
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.bpel48
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.composite16
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/test-wsdl-import.composite31
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/jupiter.wsdl63
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import-nested.wsdl70
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import.wsdl55
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdata.xsd36
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdefs.xsd27
-rw-r--r--sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerinfo.xsd31
9 files changed, 377 insertions, 0 deletions
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.bpel b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.bpel
new file mode 100644
index 0000000000..0f145c705e
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.bpel
@@ -0,0 +1,48 @@
+<process name="Jupiter"
+ targetNamespace="http://jupiter.ptg.company.com/jupiter"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:tns="http://jupiter.ptg.company.com/jupiter"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:mw="http://jupiter.ptg.company.com/jupiter.wsdl"
+ queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
+ expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
+
+ <import location="wsdl/jupiter.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"
+ namespace="http://jupiter.ptg.company.com/jupiter.wsdl"/>
+
+ <partnerLinks>
+ <partnerLink name="jupiterPartnerLink" partnerLinkType="mw:JupiterPartnerLinkType" myRole="me" />
+ </partnerLinks>
+
+ <variables>
+ <variable name="myVar" messageType="mw:HelloMessage"/>
+ <variable name="tmpVar" type="xsd:string"/>
+ </variables>
+
+ <sequence>
+ <receive
+ name="start"
+ partnerLink="jupiterPartnerLink"
+ portType="mw:JupiterPortType"
+ operation="hello"
+ variable="myVar"
+ createInstance="yes"/>
+
+ <assign name="assign1">
+ <copy>
+ <from variable="myVar" part="TestPart"/>
+ <to variable="tmpVar"/>
+ </copy>
+ <copy>
+ <from>concat($tmpVar,' World')</from>
+ <to variable="myVar" part="TestPart"/>
+ </copy>
+ </assign>
+ <reply name="end"
+ partnerLink="jupiterPartnerLink"
+ portType="mw:JupiterPortType"
+ operation="hello"
+ variable="myVar"/>
+ </sequence>
+</process>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.composite b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.composite
new file mode 100644
index 0000000000..beebeee9a3
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/jupiter.composite
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://jupiter.ptg.company.com"
+ xmlns:mw="http://jupiter.ptg.company.com"
+ xmlns:hns="http://jupiter.ptg.company.com/jupiter"
+ name="jupiter">
+
+ <component name="BPELHelloWorldComponent">
+ <implementation.bpel process="hns:Jupiter"/>
+ <service name="jupiterPartnerLink">
+ <interface.wsdl interface="http://jupiter.ptg.company.com/jupiter.wsdl#wsdl.interface(JupiterPortType)" />
+ <binding.ws uri="http://localhost:8085/BPELHelloWorldComponent" />
+ </service>
+ </component>
+
+</composite>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/test-wsdl-import.composite b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/test-wsdl-import.composite
new file mode 100644
index 0000000000..1f810470b9
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/test-wsdl-import.composite
@@ -0,0 +1,31 @@
+<?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"
+ targetNamespace="http://accounts"
+ name="test-import">
+
+ <component name="Account">
+ <implementation.java class="wsdlgen.impl.AccountImpl" />
+ <service name="Account">
+ <binding.ws wsdlElement="http://account2#wsdl.port(AccountService/AccountSoapPort)" />
+ </service>
+ </component>
+
+</composite>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/jupiter.wsdl b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/jupiter.wsdl
new file mode 100644
index 0000000000..91e1ef279e
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/jupiter.wsdl
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<wsdl:definitions
+ targetNamespace="http://jupiter.ptg.company.com/jupiter.wsdl"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:tns="http://jupiter.ptg.company.com/jupiter.wsdl"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
+ xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
+
+ <wsdl:types>
+ <schema elementFormDefault="qualified"
+ targetNamespace="http://jupiter.ptg.company.com/jupiter.wsdl"
+ xmlns="http://www.w3.org/2001/XMLSchema">
+
+ <element name="hello">
+ <complexType>
+ <sequence>
+ <element name="message" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="HelloMessage">
+ <wsdl:part element="tns:hello" name="TestPart"/>
+ </wsdl:message>
+
+ <wsdl:portType name="JupiterPortType">
+ <wsdl:operation name="hello">
+ <wsdl:input message="tns:HelloMessage" name="TestIn"/>
+ <wsdl:output message="tns:HelloMessage" name="TestOut"/>
+ </wsdl:operation>
+ </wsdl:portType>
+
+
+ <wsdl:binding name="JupiterSoapBinding" type="tns:JupiterPortType">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <wsdl:operation name="hello">
+ <wsdlsoap:operation soapAction=""/>
+ <wsdl:input name="TestIn">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output name="TestOut">
+ <wsdlsoap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="JupiterService">
+ <wsdl:port name="JupiterPort" binding="tns:JupiterSoapBinding">
+ <soap:address location="http://localhost:8085/ode/processes/helloWorld"/>
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="JupiterPartnerLinkType">
+ <plnk:role name="me" portType="tns:JupiterPortType"/>
+ <plnk:role name="you" portType="tns:JupiterPortType"/>
+ </plnk:partnerLinkType>
+</wsdl:definitions> \ No newline at end of file
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import-nested.wsdl b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import-nested.wsdl
new file mode 100644
index 0000000000..842ac1b756
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import-nested.wsdl
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<wsdl:definitions targetNamespace="http://account3"
+ xmlns:tns="http://account3"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ name="test-import-nested">
+
+ <wsdl:types>
+ <xsd:schema elementFormDefault="qualified"
+ targetNamespace="http://account3"
+ xmlns:account="http://accounts"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:import namespace="http://accounts" schemaLocation="/xsd/customerdefs.xsd" />
+
+ <xsd:element name="getCustomerProfile">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="loginID" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ <xsd:element name="getCustomerProfileResponse">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="customerProfile"
+ type="account:CustomerProfileData" />
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="getCustomerProfileRequest">
+ <wsdl:part element="tns:getCustomerProfile" name="parameters" />
+ </wsdl:message>
+
+ <wsdl:message name="getCustomerProfileResponse">
+ <wsdl:part element="tns:getCustomerProfileResponse" name="parameters" />
+ </wsdl:message>
+
+ <wsdl:portType name="Account">
+ <wsdl:operation name="getCustomerProfile">
+ <wsdl:input message="tns:getCustomerProfileRequest" name="getCustomerProfileRequest" />
+ <wsdl:output message="tns:getCustomerProfileResponse" name="getCustomerProfileResponse" />
+ </wsdl:operation>
+ </wsdl:portType>
+
+</wsdl:definitions>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import.wsdl b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import.wsdl
new file mode 100644
index 0000000000..f3446c427e
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/wsdl/test-import.wsdl
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<wsdl:definitions targetNamespace="http://account2"
+ xmlns:tns="http://account2"
+ xmlns:account3="http://account3"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/"
+ name="test-import">
+
+ <wsdl:import namespace="http://account3" location="/wsdl/test-import-nested.wsdl" />
+
+ <wsdl:binding name="AccountSoapBinding" type="account3:Account">
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="getCustomerProfile">
+ <wsdlsoap:operation soapAction="" />
+ <wsdl:input name="getCustomerProfileRequest">
+ <wsdlsoap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="getCustomerProfileResponse">
+ <wsdlsoap:body use="literal" />
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="AccountService">
+ <wsdl:port binding="tns:AccountSoapBinding" name="AccountSoapPort">
+ <wsdlsoap:address location="http://localhost:8086/AccountService" />
+ </wsdl:port>
+ </wsdl:service>
+
+ <plnk:partnerLinkType name="AccountPartnerLinkType">
+ <plnk:role name="me" portType="account3:Account" />
+ <plnk:role name="you" portType="account3:Account" />
+ </plnk:partnerLinkType>
+
+</wsdl:definitions>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdata.xsd b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdata.xsd
new file mode 100644
index 0000000000..f09ed09b6a
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdata.xsd
@@ -0,0 +1,36 @@
+<?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.
+-->
+<xsd:schema elementFormDefault="qualified"
+ targetNamespace="http://accounts"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:complexType name="CustomerProfileData">
+ <xsd:sequence>
+ <xsd:element name="firstName" type="xsd:string" />
+ <xsd:element name="lastName" type="xsd:string" />
+ <xsd:element name="address" type="xsd:string" />
+ <xsd:element name="email" type="xsd:string" />
+ <xsd:element name="loginID" type="xsd:string" />
+ <xsd:element name="password" type="xsd:string" />
+ <xsd:element name="id" type="xsd:int" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+</xsd:schema>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdefs.xsd b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdefs.xsd
new file mode 100644
index 0000000000..f312920b7c
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerdefs.xsd
@@ -0,0 +1,27 @@
+<?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.
+-->
+<xsd:schema elementFormDefault="qualified"
+ targetNamespace="http://accounts"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:include schemaLocation="customerdata.xsd" />
+ <xsd:include schemaLocation="/xsd/customerinfo.xsd" />
+
+</xsd:schema>
diff --git a/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerinfo.xsd b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerinfo.xsd
new file mode 100644
index 0000000000..7c903c6394
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/wsdlgen-runtime/src/main/resources/xsd/customerinfo.xsd
@@ -0,0 +1,31 @@
+<?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.
+-->
+<xsd:schema elementFormDefault="qualified"
+ targetNamespace="http://accounts"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:complexType name="CustomerProfileInfo">
+ <xsd:sequence>
+ <xsd:element name="firstName" type="xsd:string" />
+ <xsd:element name="lastName" type="xsd:string" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+</xsd:schema>