Hi Dasarath,

thanks for committing the first patch stage. Seems we finally gear up and things get going! :-))


I guess I missed two important files in the first file: as you mentioned, I accidentally skipped the maven.xml; and second, the patch ran against an older version of an added WSDL file.

The attached patch is rather small to correct these issues:
* maven.xml
* correct namespaces in InitiatorProtocol.wsdl


The maven.xml includes two changes:

1. Copy the classpath libraries to target/lib before compiling
(Makes a troubleshooter's life much easier when you see what libraries maven exactly pulls in)

2. Add new tasks to autogenerate the WS-BA classes.


Good night,

        -hannes
Index: maven.xml
===================================================================
--- maven.xml   (revision 541116)
+++ maven.xml   (working copy)
@@ -15,11 +15,12 @@
        <ant:mkdir dir="${basedir}/target/lib"/>
        <deploy:copy-deps todir="${basedir}/target/lib"/>
     </postGoal>
-    
+
     <preGoal name="java:compile">
-    
+
        <mkdir dir="${maven.build.dir}/stubs/src"/>
-               
+       <deploy:copy-deps todir="${basedir}/target/lib"/>
+
        <java 
classname="org.apache.axis.message.addressing.tools.wsdl.WSDL2Java"
                failonerror="true" fork="yes">
                <classpath>
@@ -36,25 +37,57 @@
                failonerror="true" fork="yes">
                <classpath>
                        <path refid="maven.dependency.classpath"/>
-               </classpath>                            
+               </classpath>
                <arg value="-o${maven.build.dir}/stubs/src"/>
                <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/08/addressing=org.apache.axis.message.addressing"/>
                <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wsat=org.apache.kandula.wsat"/>
-               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wscoor=org.apache.kandula.wscoor"/>
    
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wscoor=org.apache.kandula.wscoor"/>
                <arg 
value="-xhttp://schemas.xmlsoap.org/ws/2004/08/addressing"/>
                <arg value="${basedir}/src/schema/wsat.wsdl"/>
        </java>
 
+               <!-- HE 2006-03-24 generate WSBA stubs and stuff -->
+       <java 
classname="org.apache.axis.message.addressing.tools.wsdl.WSDL2Java"
+               failonerror="true" fork="yes">
+               <classpath>
+                       <path refid="maven.dependency.classpath"/>
+               </classpath>
+               <arg value="-o${maven.build.dir}/stubs/src"/>
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/08/addressing=org.apache.axis.message.addressing"/>
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wsba=org.apache.kandula.wsba"/>
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wscoor=org.apache.kandula.wscoor"/>
+               <arg 
value="-xhttp://schemas.xmlsoap.org/ws/2004/08/addressing"/>
+               <arg value="${basedir}/src/schema/wsba.wsdl"/>
+       </java>
+
+               <!-- HE 2006-03-24 generate WS-BA-I stubs and stuff -->
+       <java 
classname="org.apache.axis.message.addressing.tools.wsdl.WSDL2Java"
+               failonerror="true" fork="yes">
+               <classpath>
+                       <path refid="maven.dependency.classpath"/>
+               </classpath>
+               <arg value="-s" />
+               <arg value="-o${maven.build.dir}/stubs/src"/>
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/08/addressing=org.apache.axis.message.addressing"/>
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wsba=org.apache.kandula.wsba"/>
+               <arg 
value="-Nhttp://schemas.xmlsoap.org/ws/2004/10/wscoor=org.apache.kandula.wscoor"/>
+               <arg 
value="-xhttp://schemas.xmlsoap.org/ws/2004/08/addressing"/>
+               <arg value="-xhttp://schemas.xmlsoap.org/ws/2004/10/wsba"/>
+               <arg value="-xhttp://schemas.xmlsoap.org/ws/2004/10/wscoor"/>
+               <arg value="${basedir}/src/schema/InitiatorProtocol.wsdl"/>
+       </java>
+
+
        <ant:path
                id="stubs.src.dir"
-               location="${maven.build.dir}/stubs/src"/>               
-               
+               location="${maven.build.dir}/stubs/src"/>
+
        <maven:addPath
                id="maven.compile.src.set"
-               refid="stubs.src.dir"/>  
-       
+               refid="stubs.src.dir"/>
+
     </preGoal>
-    
+
     <goal name="build-samples">
        <ant:ant antfile="build.xml" inheritall="true" inheritrefs="true" 
dir="src/samples/"/>
     </goal>
Index: src/schema/InitiatorProtocol.wsdl
===================================================================
--- src/schema/InitiatorProtocol.wsdl   (revision 541116)
+++ src/schema/InitiatorProtocol.wsdl   (working copy)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <wsdl:definitions
-       xmlns="http://big.tuwien.ac.at/xxx";
+       xmlns="http://www.big.tuwien.ac.at/projects/WS-BAI/";
        xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
        xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
        xmlns:wsba="http://schemas.xmlsoap.org/ws/2004/10/wsba";
@@ -8,11 +8,11 @@
        xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
        xmlns:xs="http://www.w3.org/2001/XMLSchema";
        name="TellMeWhatToDoDemoService"
-       targetNamespace="http://big.tuwien.ac.at/xxx";
-       xmlns:tns="http://big.tuwien.ac.at/xxx";
+       targetNamespace="http://www.big.tuwien.ac.at/projects/WS-BAI/";
+       xmlns:tns="http://www.big.tuwien.ac.at/projects/WS-BAI/";
 >
   <wsdl:types>
-        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://big.tuwien.ac.at/xxx";>
+        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
targetNamespace="http://www.big.tuwien.ac.at/projects/WS-BAI/";>
              <xs:import namespace="http://schemas.xmlsoap.org/ws/2004/10/wsba"; 
schemaLocation="../schema/wsba.xsd"/>
              <xs:import 
namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"; 
schemaLocation="../schema/addr.xsd"/>
              <xs:import 
namespace="http://schemas.xmlsoap.org/ws/2004/10/wscoor"; 
schemaLocation="../schema/wscoor.xsd" />
@@ -159,7 +159,7 @@
                <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
 
                <wsdl:operation name="getCoordinationContextWithMatchcode">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#getCoordinationContextWithMatchcode"; />
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#getCoordinationContextWithMatchcode";
 />
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -169,7 +169,7 @@
                </wsdl:operation>
 
                <wsdl:operation name="listParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#listParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#listParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -179,7 +179,7 @@
                </wsdl:operation>
 
                <wsdl:operation name="completeParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#completeParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#completeParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -190,7 +190,7 @@
 
 
                <wsdl:operation name="cancelParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#cancelParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#cancelParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -200,7 +200,7 @@
                </wsdl:operation>
 
                <wsdl:operation name="closeParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#cancelParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#cancelParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -210,7 +210,7 @@
                </wsdl:operation>
 
                <wsdl:operation name="compensateParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#cancelParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#cancelParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -224,7 +224,7 @@
                <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
 
                <wsdl:operation name="getCoordinationContextWithMatchcode">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#getCoordinationContextWithMatchcode"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#getCoordinationContextWithMatchcode"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -234,7 +234,7 @@
                </wsdl:operation>
 
                <wsdl:operation name="listParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#listParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#listParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -244,7 +244,7 @@
                </wsdl:operation>
 
                <wsdl:operation name="completeParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#completeParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#completeParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -255,7 +255,7 @@
 
 
                <wsdl:operation name="cancelOrCompensateAllParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#cancelAllParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#cancelAllParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>
@@ -264,7 +264,7 @@
                        </wsdl:output>
                </wsdl:operation>
                <wsdl:operation name="closeAllParticipants">
-                       <soap:operation 
soapAction="http://big.tuwien.ac.at/xxx/#closeAllParticipants"/>
+                       <soap:operation 
soapAction="http://www.big.tuwien.ac.at/projects/WS-BAI/#closeAllParticipants"/>
                        <wsdl:input>
                                <soap:body use="literal"/>
                        </wsdl:input>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to