Skip to content

Soap, rest, bpel, and logging #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: WS
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 24 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/bin
/nbproject/private/
/dist/
/dist/
/WSGen_Bpel_REST/build/
/WSC-Gen_BPEL/nbproject/private/
/WSGen_composite_SOAP/src/jbiServiceUnits/
/WSGen_Bpel/build/
/WSC-Gen_composite_SOAP/nbproject/private/
/WSC-Gen_composite_SOAP/src/jbiServiceUnits/
/WSC-Gen_composite_SOAP/build/
/WSC-Gen_composite_SOAP/dist/
/WSC-Gen_composite_SOAP/test/results/
/WSC-Gen_BPEL/build/
/Generator_SOAP_composite/nbproject/private/
/WSC-Gen_SOAP_composite/nbproject/private/
/WSC-Gen_SOAP_composite/src/jbiServiceUnits/
/WSC-Gen_SOAP_composite/build/
/WSC-Gen_SOAP_composite/dist/
/WSC-Gen_SOAP_composite/test/results/
/WSC-Gen_BPEL_REST/nbproject/private/
/WSC-Gen_BPEL_REST/build/
/WSC-Gen_REST_composite/nbproject/private/
/WSC-Gen_REST_composite/src/jbiServiceUnits/
/WSC-Gen_REST_composite/build/
/WSC-Gen_REST_composite/dist/
/WSC-Gen_REST_composite/test/results/
22 changes: 22 additions & 0 deletions WSC-Gen_BPEL/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="" default="default" basedir="." xmlns:web="http://www.netbeans.org/ns/j2ee-ejbjarproject/1">
<import file="nbproject/build-impl.xml"/>
<target name="init-esb-cli" unless="netbeans.home">
<property name="from.commandline" value="true"/>
<property name="netbeans.dir" value="${esb.netbeans.home}"/>
<property name="netbeans.user" value="${esb.netbeans.user}"/>
<property file="${basedir}/nbproject/private/private.properties"/>
<path id="path.classpath">
<pathelement location="${netbeans.dir}/soa/ant/nblib/org-netbeans-modules-bpel-project.jar"/>
</path>
<taskdef name="copy-path-properties" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliCopyPathFileTask">
<classpath refid="path.classpath"/>
</taskdef>
<copy-path-properties nbprojectDirectory="${basedir}/nbproject"/>
<property file="${basedir}/nbproject/path.properties"/>
<path id="ant.project.classpath">
<pathelement path="${netbeans.classpath}"/>
</path>
</target>
<target name="pre-init" depends="init-esb-cli"/>
</project>
6 changes: 6 additions & 0 deletions WSC-Gen_BPEL/catalog.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<nextCatalog catalog="nbproject/private/retriever/catalog.xml"/>
<system systemId="http://localhost:8080/WSC-Gen/GeneratorWSService?WSDL" uri="src/localhost_8080/WSC-Gen/GeneratorWSService.wsdl"/>
<system systemId="http://localhost:8080/WSC-Gen/GeneratorWSService?xsd=1" uri="src/localhost_8080/WSC-Gen/GeneratorWSService.xsd_1.xsd"/>
</catalog>
98 changes: 98 additions & 0 deletions WSC-Gen_BPEL/nbproject/build-impl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
*** GENERATED FROM project.xml - DO NOT EDIT ***
*** EDIT ../build.xml INSTEAD ***
-->
<project name="WSC-Gen_BPEL-impl" default="default" basedir="..">
<target name="default" depends="dist_se"/>
<!--
INITIALIZATION SECTION
-->
<target name="pre-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="init-private" depends="pre-init">
<property file="nbproject/private/private.properties"/>
</target>
<target name="init-userdir" depends="pre-init,init-private">
<property name="user.properties.file" location="${netbeans.user}/build.properties"/>
</target>
<target name="init-user" depends="pre-init,init-private,init-userdir">
<property file="${user.properties.file}"/>
</target>
<target name="init-project" depends="pre-init,init-private,init-userdir,init-user">
<property file="nbproject/project.properties"/>
</target>
<target name="do-init" depends="pre-init,init-private,init-userdir,init-user,init-project">
<available file="${src.dir}/../retrieved" property="retrieved.exists"/>
</target>
<target name="post-init">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="init-check" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init">
<fail unless="src.dir">Must set src.dir</fail>
<fail unless="build.dir">Must set build.dir</fail>
<fail unless="dist.dir">Must set dist.dir</fail>
<fail unless="dist.jar">Must set dist.jar</fail>
</target>
<target name="init-taskdefs" if="from.commandline">
<taskdef name="validate-project" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliValidateBpelProjectTask">
<classpath refid="ant.project.classpath"/>
</taskdef>
<taskdef name="generate-catalog-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateCatalogTask">
<classpath refid="ant.project.classpath"/>
</taskdef>
<taskdef name="generate-jbi-xml" classname="org.netbeans.modules.bpel.project.anttasks.cli.CliGenerateJbiDescriptorTask">
<classpath refid="ant.project.classpath"/>
</taskdef>
</target>
<target name="init" depends="pre-init,init-private,init-userdir,init-user,init-project,do-init,post-init,init-check,init-taskdefs"/>
<!--
DIST BUILDING SECTION
-->
<target name="pre-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="deps-jar-dist" depends="init" unless="${no.dependencies}"/>
<target name="do-dist" depends="init,pre-dist">
<mkdir dir="${build.dir}"/>
<validate-project buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}" allowBuildWithError="${allow.build.with.error}" validation="${validation}"/>
<copy todir="${build.dir}" preservelastmodified="true">
<fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" dir="${src.dir}"/>
</copy>
<generate-catalog-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}"/>
<generate-jbi-xml buildDirectory="${basedir}/${build.dir}" sourceDirectory="${basedir}/${src.dir}"/>
<jar compress="${jar.compress}" jarfile="${build.dir}/SEDeployment.jar">
<fileset includes="**/*.bpel,**/*.wsdl,**/*.xsd, **/*.xsl, **/*.xslt, **/*.jar" excludes="SEDeployment.jar" dir="${basedir}/${build.dir}"/>
<fileset dir="${basedir}/${build.dir}">
<include name="**/jbi.xml"/>
<include name="**/catalog.xml"/>
</fileset>
</jar>
</target>
<target name="post-dist">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="dist_se" depends="init,pre-dist,deps-jar-dist,do-dist,post-dist"/>
<!--
CLEANUP SECTION
-->
<target name="pre-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="deps-clean" depends="init" unless="${no.dependencies}"/>
<target name="do-clean" depends="init,pre-clean">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="post-clean">
<!-- Empty placeholder for easier customization. -->
<!-- You can override this target in the ../build.xml file. -->
</target>
<target name="clean" depends="init,pre-clean,deps-clean,do-clean,post-clean"/>
</project>
8 changes: 8 additions & 0 deletions WSC-Gen_BPEL/nbproject/genfiles.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
build.xml.data.CRC32=9ec22904
build.xml.script.CRC32=72d0d1ff
[email protected]
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=9ec22904
nbproject/build-impl.xml.script.CRC32=743dd89d
nbproject/[email protected]
28 changes: 28 additions & 0 deletions WSC-Gen_BPEL/nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
allow.build.with.error=false
bcdeployment.jar=${build.dir}/BCDeployment.jar
build.classes.dir=${build.dir}/jar
build.classes.excludes=**/*.java,**/*.form,**/.nbattrs
build.dir=build
build.generated.dir=${build.dir}/generated
com.sun.jbi.ui.devtool.jbi.description.application-sub-assembly=Represents this Service Unit
com.sun.jbi.ui.devtool.jbi.setype.prefix=sun-bpel-engine
debug.classpath=${javac.classpath}:${build.classes.dir}
dist.dir=dist
dist.jar=${dist.dir}/WSC-Gen_BPEL.zip
dist.javadoc.dir=${dist.dir}/javadoc
jar.compress=false
jar.name=WSC-Gen_BPEL.jar
javac.debug=true
javac.deprecation=false
javac.source=1.4
javac.target=1.4
jbi.se.type=sun-bpel-engine
jbi.service-unit.description=Represents this Service Unit
meta.inf=${source.root}/conf
platform.active=default_platform
resource.dir=setup
sedeployment.jar=${build.dir}/SEDeployment.jar
source.encoding=UTF-8
source.root=src
src.dir=${source.root}
wsdl.classpath=
10 changes: 10 additions & 0 deletions WSC-Gen_BPEL/nbproject/project.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.bpel.project</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2ee-bpelpro/1">
<name>WSC-Gen_BPEL</name>
<minimum-ant-version>1.6</minimum-ant-version>
</data>
</configuration>
</project>
46 changes: 46 additions & 0 deletions WSC-Gen_BPEL/src/BPEL_SOAP_Client.wsdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="BPEL_SOAP_Client" targetNamespace="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" xmlns:ns="http://soap.ws.gipsy.cse.concordia.ca/" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client">
<xsd:import namespace="http://soap.ws.gipsy.cse.concordia.ca/" schemaLocation="http://localhost:8080/WSC-Gen/GeneratorWSService?xsd=1"/>
</xsd:schema>
</types>
<message name="BPEL_SOAP_ClientOperationRequest">
<part name="SOAPInput" type="ns:start"/>
</message>
<message name="BPEL_SOAP_ClientOperationResponse">
<part name="SOAPOutput" type="ns:startResponse"/>
</message>
<portType name="BPEL_SOAP_ClientPortType">
<operation name="BPEL_SOAP_ClientOperation">
<input name="input1" message="tns:BPEL_SOAP_ClientOperationRequest"/>
<output name="output1" message="tns:BPEL_SOAP_ClientOperationResponse"/>
</operation>
</portType>
<binding name="BPEL_SOAP_ClientBinding" type="tns:BPEL_SOAP_ClientPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="BPEL_SOAP_ClientOperation">
<soap:operation/>
<input name="input1">
<soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client"/>
</input>
<output name="output1">
<soap:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client"/>
</output>
</operation>
</binding>
<service name="BPEL_SOAP_ClientService">
<port name="BPEL_SOAP_ClientPort" binding="tns:BPEL_SOAP_ClientBinding">
<soap:address location="http://localhost:${HttpDefaultPort}/BPEL_SOAP_ClientService/BPEL_SOAP_ClientPort"/>
</port>
</service>
<plnk:partnerLinkType name="BPEL_SOAP_Client">
<!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.
In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
<plnk:role name="BPEL_SOAP_ClientPortTypeRole" portType="tns:BPEL_SOAP_ClientPortType"/>
</plnk:partnerLinkType>
</definitions>
12 changes: 12 additions & 0 deletions WSC-Gen_BPEL/src/GeneratorWSServiceWrapper.wsdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>

<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="GeneratorWSServiceWrapper" targetNamespace="http://enterprise.netbeans.org/bpel/GeneratorWSServiceWrapper" xmlns:tns="http://enterprise.netbeans.org/bpel/GeneratorWSServiceWrapper" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:ns="http://soap.ws.gipsy.cse.concordia.ca/">
<import location="http://localhost:8080/WSC-Gen/GeneratorWSService?WSDL" namespace="http://soap.ws.gipsy.cse.concordia.ca/"/>
<plnk:partnerLinkType name="GeneratorWSLinkType">
<plnk:role name="GeneratorWSRole" portType="ns:GeneratorWS"/>
</plnk:partnerLinkType>
</definitions>
43 changes: 43 additions & 0 deletions WSC-Gen_BPEL/src/WSC-Gen_BPEL.bpel
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8" ?>
<process
name="WSC-Gen_BPEL"
targetNamespace="http://enterprise.netbeans.org/bpel/WSC-Gen_BPEL/WSC-Gen_BPEL"
xmlns:tns="http://enterprise.netbeans.org/bpel/WSC-Gen_BPEL/WSC-Gen_BPEL"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor2"
xmlns:sxat="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Attachment"
xmlns:sxeh="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/ErrorHandling">
<import namespace="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" location="BPEL_SOAP_Client.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://enterprise.netbeans.org/bpel/GeneratorWSServiceWrapper" location="GeneratorWSServiceWrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://soap.ws.gipsy.cse.concordia.ca/" location="http://localhost:8080/WSC-Gen/GeneratorWSService?WSDL" importType="http://schemas.xmlsoap.org/wsdl/"/>
<partnerLinks>
<partnerLink name="WSC-GenWS" xmlns:tns="http://enterprise.netbeans.org/bpel/GeneratorWSServiceWrapper" partnerLinkType="tns:GeneratorWSLinkType" partnerRole="GeneratorWSRole"/>
<partnerLink name="Client" xmlns:tns="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" partnerLinkType="tns:BPEL_SOAP_Client" myRole="BPEL_SOAP_ClientPortTypeRole"/>
</partnerLinks>
<variables>
<variable name="StartOut" xmlns:tns="http://soap.ws.gipsy.cse.concordia.ca/" messageType="tns:startResponse"/>
<variable name="StartIn" xmlns:tns="http://soap.ws.gipsy.cse.concordia.ca/" messageType="tns:start"/>
<variable name="ClientOutput" xmlns:tns="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" messageType="tns:BPEL_SOAP_ClientOperationResponse"/>
<variable name="ClientInput" xmlns:tns="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" messageType="tns:BPEL_SOAP_ClientOperationRequest"/>
</variables>
<sequence>
<receive name="Receive1" createInstance="yes" partnerLink="Client" operation="BPEL_SOAP_ClientOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" portType="tns:BPEL_SOAP_ClientPortType" variable="ClientInput"/>
<assign name="Assign1">
<copy>
<from variable="ClientInput" part="SOAPInput"/>
<to variable="StartIn" part="parameters"/>
</copy>
</assign>
<invoke name="Invoke1" partnerLink="WSC-GenWS" operation="start" xmlns:tns="http://soap.ws.gipsy.cse.concordia.ca/" portType="tns:GeneratorWS" inputVariable="StartIn" outputVariable="StartOut"/>
<assign name="Assign2">
<copy>
<from>$StartOut.parameters/return</from>
<to>$ClientOutput.SOAPOutput/return</to>
</copy>
</assign>
<reply name="Reply1" partnerLink="Client" operation="BPEL_SOAP_ClientOperation" xmlns:tns="http://j2ee.netbeans.org/wsdl/WSC-Gen_BPEL/src/BPEL_SOAP_Client" portType="tns:BPEL_SOAP_ClientPortType" variable="ClientOutput"/>
</sequence>
</process>
Loading