You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Asaf Lahav <as...@primagrid.com> on 2006/02/13 21:12:47 UTC

WSRF ant generate problem

Hi all,

 

While initiating the WSDL2JAVA using the ANT GENERATE (according to the WSRF
user guide) the process fails.

 

The output from the ANT is:

 

Buildfile: build.xml

 

init:

     [echo] Using webapp dir: C:\Tomcat 5.5/webapps/wsrf

 

generate:

     [copy] Copying 1 file to C:\Tomcat 5.5\webapps\wsrf\_tmp_

[wsdl2Java] Processing WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...

[wsdl2Java] Retrieving document at 'C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.

[wsdl2Java] Retrieving schema at 'WS-ResourceProperties-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-ResourceLifetime-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-MetadataExchange-2004_09.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2004_08_10.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.xsd'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...

[wsdl2Java] Found existing generated xmlbean jar in the classpath at
location:
C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\Calculat
orWSRF-xbeans.jar ...This will be removed from the classpath sent to Scomp
in order to regenerate all imports.

[wsdl2Java] Loading wsdl file C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl

[wsdl2Java] Processing 1 schema(s) in C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl

[wsdl2Java] Processing WSRF WSDL port "Calculator"...

[wsdl2Java] Processing WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl"...

[wsdl2Java] Retrieving document at 'C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-ResourceProperties-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-ResourceLifetime-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-MetadataExchange-2004_09.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl"...

[wsdl2Java] Found existing generated xmlbean jar in the classpath at
location:
C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\MySample
-xbeans.jar ...This will be removed from the classpath sent to Scomp in
order to regenerate all imports.

[wsdl2Java] Loading wsdl file C:\Tomcat 5.5\webapps\wsrf\_tmp_\MySample.wsdl

[wsdl2Java] Processing 1 schema(s) in C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl

 

The WSDL file as I wrote according to the Template provided from the WSRF
user guide:

 

<?xml version="1.0"?>

 

<definitions name="CalculatorDefinition"

 
targetNamespace="http://www.primagrid.com/resource/example/calculator"

            xmlns="http://schemas.xmlsoap.org/wsdl/"

            xmlns:tns="http://www.primagrid.com/resource/example/calculator"

            xmlns:xsd="http://www.w3.org/2001/XMLSchema"

            xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

 
xmlns:wsrp="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperti
es-1.2-draft-01.xsd"

 
xmlns:wsrpw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourcePropert
ies-1.2-draft-01.wsdl"

 
xmlns:wsrlw="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetim
e-1.2-draft-01.wsdl"

            xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex"

            xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing">

 

  <import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourcePropertie
s-1.2-draft-01.wsdl"

          location="../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl"/>

 

  <import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-
1.2-draft-01.wsdl"

          location="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl"/>

 

  <import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex"

          location="../spec/wsx/WS-MetadataExchange-2004_09.wsdl"/>

 

  <types>

     <schema elementFormDefault="qualified"

 
targetNamespace="http://www.primagrid.com/resource/example/calculator"

             xmlns="http://www.w3.org/2001/XMLSchema"

             xmlns:xsd="http://www.w3.org/2001/XMLSchema"

 
xmlns:wsrl="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime
-1.2-draft-01.xsd"

 
xmlns:wsbf="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-d
raft-01.xsd">

 

        <xsd:import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-dr
aft-01.xsd"

 
schemaLocation="../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd"/>

 

        <xsd:import
namespace="http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-
1.2-draft-01.xsd"

 
schemaLocation="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd"/>

 

        <!-- *** Add your custom resource property element definitions here
*** -->

        

                                    <element name="LeftSide"
type="xsd:int"/>

                                    <element name="RightSide"
type="xsd:int"/>

                                    <element name="Result" type="xsd:int"/>

        

        <!-- Resource Properties Document Schema -->        

        <element name="ResourceProperties">

           <complexType>

              <sequence>

              

                 <!-- *** If you wish to implement the
wsrl:ScheduledResourceTermination portType,

                           uncomment the below two lines *** -->

                 

                 <element ref="wsrl:CurrentTime" />

                 <element ref="wsrl:TerminationTime" />

                 

 

                 <!-- *** Add element refs for each of your custom resource
property elements here *** -->

                                                 <element
ref="tns:LeftSide"/>

                                                 <element
ref="tns:RightSide"/>                                     

                                                 <element ref="tns:Result"/>

                 

                 <!-- *** Uncomment the below any element if you want to
permit resource property elements 

                          with arbitrary names (not generally recommended)
*** -->

                 <!--

                 <any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax" />

                 -->

                 

              </sequence>

           </complexType>

        </element>

 

        <!-- *** Add element definitions for custom request/response/fault
types here *** -->         

                        <element name="Execute">

                                    <complexType />

                        </element>

                        <element name="ExecuteResponse">

                                    <complexType />

                        </element>

                        <element name="ExecuteFailedFault">

                                    <complexType>

                                                <complexContent>

                                                <extension
base="wsbf:BaseFaultType" />

                                                </complexContent>

                                    </complexType>

                        </element>

                                    

     </schema>

  </types>

 

  <!-- *** Add message definitions for custom request/response/fault types
here *** -->         

 

            <message name="ExecuteRequest">

                        <part name="ExecuteRequest" element="tns:Execute"/>

            </message>

            

            <message name="ExecuteResponse">

                        <part name="ExecuteResponse"
element="tns:ExecuteResponse"/>

            </message>

            

            <message name="ExecuteFailedFault">

                        <part name="ExecuteFailedFault"
element="tns:ExecuteFailedFault"/>

            </message>

  

  

  

  <portType name="CalculatorPortType"
wsrp:ResourceProperties="tns:ResourceProperties">

        

     <operation name="GetResourceProperty">

        <input name="GetResourcePropertyRequest"
message="wsrpw:GetResourcePropertyRequest"/>

        <output name="GetResourcePropertyResponse"
message="wsrpw:GetResourcePropertyResponse"/>

        <fault name="ResourceUnknownFault"
message="wsrpw:ResourceUnknownFault"/>

        <fault name="InvalidResourcePropertyQNameFault"
message="wsrpw:InvalidResourcePropertyQNameFault"/>

     </operation>

 

     <!-- *** If you wish to implement the WSRP
GetMultipleResourceProperties portType,

              uncomment the below operation block *** -->

     

     <operation name="GetMultipleResourceProperties">

        <input name="GetMultipleResourcePropertiesRequest"
message="wsrpw:GetMultipleResourcePropertiesRequest"/>

        <output name="GetMultipleResourcePropertiesResponse"
message="wsrpw:GetMultipleResourcePropertiesResponse"/>

        <fault name="ResourceUnknownFault"
message="wsrpw:ResourceUnknownFault"/>

        <fault name="InvalidResourcePropertyQNameFault"
message="wsrpw:InvalidResourcePropertyQNameFault"/>

     </operation>

     

 

     <!-- *** If you wish to implement the WSRP SetResourceProperties
portType,

              uncomment the below operation block *** -->

     

     <operation name="SetResourceProperties">

        <input name="SetResourcePropertiesRequest"
message="wsrpw:SetResourcePropertiesRequest"/>

        <output name="SetResourcePropertiesResponse"
message="wsrpw:SetResourcePropertiesResponse"/>

        <fault name="ResourceUnknownFault"
message="wsrpw:ResourceUnknownFault"/>

        <fault name="InvalidResourcePropertyQNameFault"
message="wsrpw:InvalidResourcePropertyQNameFault"/>

        <fault name="InvalidSetResourcePropertiesRequestContentFault"
message="wsrpw:InvalidSetResourcePropertiesRequestContentFault"/>

        <fault name="UnableToModifyResourcePropertyFault"
message="wsrpw:UnableToModifyResourcePropertyFault"/>

        <fault name="SetResourcePropertyRequestFailedFault"
message="wsrpw:SetResourcePropertyRequestFailedFault"/>

     </operation>

     

 

     <!-- *** If you wish to implement the WSRP QueryResourceProperties
portType,

              uncomment the below operation block *** -->

     

     <operation name="QueryResourceProperties">

        <input name="QueryResourcePropertiesRequest"
message="wsrpw:QueryResourcePropertiesRequest"/>

        <output name="QueryResourcePropertiesResponse"
message="wsrpw:QueryResourcePropertiesResponse"/>

        <fault name="ResourceUnknownFault"
message="wsrpw:ResourceUnknownFault"/>

        <fault name="InvalidResourcePropertyQNameFault"
message="wsrpw:InvalidResourcePropertyQNameFault"/>

        <fault name="UnknownQueryExpressionDialectFault"
message="wsrpw:UnknownQueryExpressionDialectFault"/>

        <fault name="InvalidQueryExpressionFault"
message="wsrpw:InvalidQueryExpressionFault"/>

        <fault name="QueryEvaluationErrorFault"
message="wsrpw:QueryEvaluationErrorFault"/>

     </operation>

     

 

     <!-- *** If you wish to implement the WSRL ImmediateResourceTermination
portType,

              uncomment the below operation block *** -->

     

     <operation name="Destroy">

        <input message="wsrlw:DestroyRequest"/>

        <output message="wsrlw:DestroyResponse"/>

        <fault name="ResourceUnknownFault"
message="wsrlw:ResourceUnknownFault"/>

        <fault name="ResourceNotDestroyedFault"
message="wsrlw:ResourceNotDestroyedFault"/>

     </operation>

     

 

     <!-- *** If you wish to implement the WSRL ScheduledResourceTermination
portType,

              uncomment the below operation block *** -->

     

     <operation name="SetTerminationTime">

        <input message="wsrlw:SetTerminationTimeRequest"/>

        <output message="wsrlw:SetTerminationTimeResponse"/>

        <fault name="ResourceUnknownFault"
message="wsrlw:ResourceUnknownFault"/>

        <fault name="UnableToSetTerminationTimeFault"
message="wsrlw:UnableToSetTerminationTimeFault"/>

        <fault name="TerminationTimeChangeRejectedFault"
message="wsrlw:TerminationTimeChangeRejectedFault"/>

     </operation>

     

     

     <!-- *** If you wish to implement the WS-MetadataExchange
MetadataExchange portType,

              uncomment the below operation block *** -->

     

     <operation name="GetMetadata" >

        <input message="mex:GetMetadataMsg"

 
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Request"
/>

        <output message="mex:GetMetadataResponseMsg"

 
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata/Response
" />

     </operation>

     <operation name="Get" >

        <input message="mex:GetMsg"

 
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Request" />

        <output message="mex:GetResponseMsg"

 
wsa04:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/Get/Response" />

     </operation>

     

     

     <!-- *** Add operation blocks for custom operations here *** -->


                        <operation name="Execute">

                                    <input name="ExecuteRequest"
message="tns:ExecuteRequest"/>

                                    <output name="ExecuteResponse"
message="tns:ExecuteResponse"/>

                                    <fault name="ExecuteFailedFault"
message="tns:ExecuteFailedFault"/>

                        </operation>

  

 

  </portType>

 

  <binding name="CalculatorSoapHttpBinding" type="tns:CalculatorPortType">

 

     <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>

  

     <operation name="GetResourceProperty">

        <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ResourceUnknownFault">

           <soap:fault name="ResourceUnknownFault" use="literal"/>

        </fault>

        <fault name="InvalidResourcePropertyQNameFault">

           <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>

        </fault>

     </operation>

 

     <!-- *** If you wish to implement the WSRP
GetMultipleResourceProperties portType,

              uncomment the below operation block *** -->

     

     <operation name="GetMultipleResourceProperties">

        <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ResourceUnknownFault">

           <soap:fault name="ResourceUnknownFault" use="literal"/>

        </fault>

        <fault name="InvalidResourcePropertyQNameFault">

           <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>

        </fault>

     </operation>

     

 

     <!-- *** If you wish to implement the WSRP SetResourceProperties
portType,

              uncomment the below operation block *** -->

     

     <operation name="SetResourceProperties">

        <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ResourceUnknownFault">

           <soap:fault name="ResourceUnknownFault" use="literal"/>

        </fault>

        <fault name="InvalidResourcePropertyQNameFault">

           <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>

        </fault>

        <fault name="UnableToModifyResourcePropertyFault">

           <soap:fault name="UnableToModifyResourcePropertyFault"
use="literal"/>

        </fault>

        <fault name="InvalidSetResourcePropertiesRequestContentFault">

           <soap:fault
name="InvalidSetResourcePropertiesRequestContentFault" use="literal"/>

        </fault>

        <fault name="SetResourcePropertyRequestFailedFault">

           <soap:fault name="SetResourcePropertyRequestFailedFault"
use="literal"/>

        </fault>

     </operation>

     

 

     <!-- *** If you wish to implement the WSRP QueryResourceProperties
portType,

              uncomment the below operation block *** -->

     

     <operation name="QueryResourceProperties">

        <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ResourceUnknownFault">

           <soap:fault name="ResourceUnknownFault" use="literal"/>

        </fault>

        <fault name="InvalidResourcePropertyQNameFault">

           <soap:fault name="InvalidResourcePropertyQNameFault"
use="literal"/>

        </fault>

        <fault name="UnknownQueryExpressionDialectFault">

           <soap:fault name="UnknownQueryExpressionDialectFault"
use="literal"/>

        </fault>

        <fault name="InvalidQueryExpressionFault">

           <soap:fault name="InvalidQueryExpressionFault" use="literal"/>

        </fault>

        <fault name="QueryEvaluationErrorFault">

           <soap:fault name="QueryEvaluationErrorFault" use="literal"/>

        </fault>

     </operation>

     

     

     <!-- *** If you wish to implement the WSRL ImmediateResourceTermination
portType,

              uncomment the below operation block *** -->

     

     <operation name="Destroy">

        <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ResourceUnknownFault">

           <soap:fault name="ResourceUnknownFault" use="literal"/>

        </fault>

        <fault name="ResourceNotDestroyedFault">

           <soap:fault name="ResourceNotDestroyedFault" use="literal"/>

        </fault>

     </operation>            

     

   

     <!-- *** If you wish to implement the WSRL ScheduledResourceTermination
portType,

              uncomment the below operation block *** -->

     

     <operation name="SetTerminationTime">

        <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ResourceUnknownFault">

           <soap:fault name="ResourceUnknownFault" use="literal"/>

        </fault>

        <fault name="UnableToSetTerminationTimeFault">

           <soap:fault name="UnableToSetTerminationTimeFault"
use="literal"/>

        </fault>

        <fault name="TerminationTimeChangeRejectedFault">

           <soap:fault name="TerminationTimeChangeRejectedFault"
use="literal"/>

        </fault>

     </operation>

     

 

     <!-- *** If you wish to implement the WS-MetadataExchange
MetadataExchange portType,

              uncomment the below operation block *** -->

     

     <operation name="GetMetadata" >

            <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

     </operation>

     <operation name="Get" >

            <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

     </operation>

     

 

     <!-- *** Add operation blocks for custom operations here *** -->


      <operation name="Execute" >

            <soap:operation style="document"/>

        <input>

           <soap:body use="literal"/>

        </input>

        <output>

           <soap:body use="literal"/>

        </output>

        <fault name="ExecuteFailedFault">

           <soap:fault name="ExecuteFailedFault" use="literal"/>

        </fault>

     </operation>

  </binding>

 

  <service name="CalculatorService">

     <!-- Note: the port name becomes the service name in the wsdd generated
by Wsdl2Java -->

     <!-- *** Change the port name and the soap:address location below to
reflect the desired endpoint URL *** -->

     <port name="Calculator" binding="tns:CalculatorSoapHttpBinding">

        <soap:address
location="http://localhost:8080/wsrf/services/Calculator" />

     </port>

  </service>

 

</definitions>

 

 

I have no idea of the cause of this.

Thanks in advance,

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



 


Re: WSRF ant generate problem

Posted by José Antonio Sánchez <ge...@gmail.com>.
I'm using Muse instead of WSRF so it may not be the same as you (since
you are using WSRF alone) but in the AbstractCalculatorService I get:

public org.xmlsoap.schemas.ws.x2004.x09.mex.AnyXmlType get()
{
   return new org.apache.ws.resource.metadataexchange.v2004_09.porttype.impl.MetadataExchangePortTypeImpl(
getResourceContext(  ) ).get();
}

org.apache.ws.resource.metadataexchange.v2004_09.porttype.impl.MetadataExchangePortTypeImpl
is the standard implementation of the Metadata Exchange.

2006/2/14, Asaf Lahav <as...@primagrid.com>:
>
>
>
> I agree it is supposed to have a standard implementation.
>
> The issue is that it doesn't.
>
>
>
> See the implementation of the Abstract.
>
> This is why I think it's a BUG in the WSDL2JAVA process.
>
>
>
> Asaf Lahav
>
>
>
> VP R&D, Prima Grid LTD.
>
>
>
> Cellular:  972-54-4717955
>
>
>
> Phone:   972-3-6540255
>
>
>
> Fax:       972-3-6540254
>
>
>
>
>
>
>
>
>
> -----Original Message-----
>  From: José Antonio Sánchez [mailto:getaceres@gmail.com]
>  Sent: Tuesday, February 14, 2006 12:24 PM
>  To: axis-user@ws.apache.org
>  Subject: Re: WSRF ant generate problem
>
>
>
>
> All that's defined in the Abstract___.java is part of the WSRF
>
> Standard and you don't have to override it. Just like you don't have
>
> to override the getResourceProperty method, you don't have to override
>
> the get method because it's defined in the WSRF standard:
>
>
>
> public org.xmlsoap.schemas.ws.x2004.x09.mex.AnyXmlType
> get()
>
> {
>
>    return new
> org.apache.ws.resource.metadataexchange.v2004_09.porttype.impl.MetadataExchangePortTypeImpl(
>
> getResourceContext(  ) ).get();
>
> }
>
>
>
> As you can see, get() is part of the metadata exchange part of WSRF so
>
> it has a standard implementation.
>
>
>
> 2006/2/14, Asaf Lahav <as...@primagrid.com>:
>
> >
>
> >
>
> >
>
> > I just found it&
>
> >
>
> > The problem was a temp directory which is created by the ANT GENERATE
> under
>
> > the TOMCAT_HOME\WSRF folder which had a temp WSDL file.
>
> >
>
> > As soon as I deleted this folder the generate process went fine.
>
> >
>
> >
>
> >
>
> >
>
> > Asaf Lahav
>
> >
>
> > VP R&D, Prima Grid LTD.
>
> >
>
> > Cellular:  972-54-4717955
>
> >
>
> > Phone:   972-3-6540255
>
> >
>
> > Fax:       972-3-6540254
>
> >
>
> >
>
> >
>
> >  ________________________________
>
> >
>
> >
>
> > From: José Antonio Sánchez [mailto:getaceres@gmail.com]
>
> >  Sent: Tuesday, February 14, 2006 12:02 AM
>
> >  To: axis-user@ws.apache.org
>
> >  Subject: Re: WSRF ant generate problem
>
> >
>
> >
>
> >
>
> >
>
> > I don't see any error message in the ant log you posted. What's the
> problem?
>
> >
>
> >
>
> > 2006/2/13, Asaf Lahav <as...@primagrid.com>:
>
> >
>
> >
>
> > Hi all,
>
> >
>
> >
>
> >
>
> > While initiating the WSDL2JAVA using the ANT GENERATE (according to the
> WSRF
>
> > user guide) the process fails.
>
> >
>
> >
>
> >
>
> > The output from the ANT is:
>
> >
>
> >
>
> >
>
> > Buildfile: build.xml
>
> >
>
> >
>
> >
>
> > init:
>
> >
>
> >      [echo] Using webapp dir: C:\Tomcat 5.5/webapps/wsrf
>
> >
>
> >
>
> >
>
> > generate:
>
> >
>
> >      [copy] Copying 1 file to C:\Tomcat 5.5\webapps\wsrf\_tmp_
>
> >
>
> > [wsdl2Java] Processing WSDL file "C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...
>
> >
>
> > [wsdl2Java] Retrieving document at 'C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving document at
>
> > '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl',
>
> > relative to 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../wsa/WS-Addressing-2003_03.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative
>
> > to 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../wsa/WS-Addressing-2003_03.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving document at
>
> > '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl',
>
> > relative to 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../wsa/WS-Addressing-2003_03.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving document at
>
> > '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative
> to
>
> > 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-MetadataExchange-2004_09.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../wsa/WS-Addressing-2004_08_10.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.xsd'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd',
>
> > relative to 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative
> to
>
> > 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> >
>
> > [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...
>
> >
>
> > [wsdl2Java] Found existing generated xmlbean jar in the classpath at
>
> > location:
>
> >
> C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\CalculatorWSRF-xbeans.jar
>
> > ...This will be removed from the classpath sent to Scomp in order to
>
> > regenerate all imports.
>
> >
>
> > [wsdl2Java] Loading wsdl file C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl
>
> >
>
> > [wsdl2Java] Processing 1 schema(s) in C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl
>
> >
>
> > [wsdl2Java] Processing WSRF WSDL port "Calculator"...
>
> >
>
> > [wsdl2Java] Processing WSDL file "C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...
>
> >
>
> > [wsdl2Java] Retrieving document at 'C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\MySample.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving document at
>
> > '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl',
>
> > relative to 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../wsa/WS-Addressing-2003_03.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving document at
>
> > '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl',
>
> > relative to 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../wsa/WS-Addressing-2003_03.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving document at
>
> > '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative
> to
>
> > 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > 'WS-MetadataExchange-2004_09.xsd', relative to
>
> > 'file:/C:/Tomcat
>
> >
> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd',
>
> > relative to 'file:/C:/Tomcat
>
> > 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> >
>
> > [wsdl2Java] Retrieving schema at
>
> > '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative
> to
>
> > 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> >
>
> > [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...
>
> >
>
> > [wsdl2Java] Found existing generated xmlbean jar in the classpath at
>
> > location:
>
> >
> C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\MySample-xbeans.jar
>
> > ...This will be removed from the classpath sent to Scomp in order to
>
> > regenerate all imports.
>
> >
>
> > [wsdl2Java] Loading wsdl file C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\MySample.wsdl
>
> >
>
> > [wsdl2Java] Processing 1 schema(s) in C:\Tomcat
>
> > 5.5\webapps\wsrf\_tmp_\MySample.wsdl
>
> >
>
> >
>
> >
>
> > The WSDL file as I wrote according to the Template provided from the WSRF
>
> > user guide:
>
> >
>
> >
>
> >
>
> > <?xml version="1.0"?>
>
> >
>
> >
>
> >
>
> > < definitions name =" CalculatorDefinition "
>
> >
>
> >             targetNamespace ="
>
> > http://www.primagrid.com/resource/example/calculator "
>
> >
>
> >             xmlns =" http://schemas.xmlsoap.org/wsdl/ "
>
> >
>
> >             xmlns:tns ="
>
> > http://www.primagrid.com/resource/example/calculator "
>
> >
>
> >             xmlns:xsd =" http://www.w3.org/2001/XMLSchema
> "
>
> >
>
> >             xmlns:soap ="
>
> > http://schemas.xmlsoap.org/wsdl/soap/ "
>
> >
>
> >             xmlns:wsrp ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd
>
> > "
>
> >
>
> >             xmlns:wsrpw ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
>
> > "
>
> >
>
> >             xmlns:wsrlw ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl
>
> > "
>
> >
>
> >             xmlns:mex ="
>
> > http://schemas.xmlsoap.org/ws/2004/09/mex "
>
> >
>
> >             xmlns:wsa04 ="
>
> > http://schemas.xmlsoap.org/ws/2004/08/addressing ">
>
> >
>
> >
>
> >
>
> >   < import namespace ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
>
> > "
>
> >
>
> >           location ="
>
> > ../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl "/>
>
> >
>
> >
>
> >
>
> >   < import namespace ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl
>
> > "
>
> >
>
> >           location ="
>
> > ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl "/>
>
> >
>
> >
>
> >
>
> >   < import namespace ="
>
> > http://schemas.xmlsoap.org/ws/2004/09/mex "
>
> >
>
> >           location ="
>
> > ../spec/wsx/WS-MetadataExchange-2004_09.wsdl "/>
>
> >
>
> >
>
> >
>
> >   < types >
>
> >
>
> >      < schema elementFormDefault =" qualified "
>
> >
>
> >              targetNamespace ="
>
> > http://www.primagrid.com/resource/example/calculator "
>
> >
>
> >              xmlns =" http://www.w3.org/2001/XMLSchema "
>
> >
>
> >              xmlns:xsd ="
> http://www.w3.org/2001/XMLSchema
>
> > "
>
> >
>
> >              xmlns:wsrl ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
>
> > "
>
> >
>
> >              xmlns:wsbf ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
>
> > ">
>
> >
>
> >
>
> >
>
> >         < xsd:import namespace ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
>
> > "
>
> >
>
> >                     schemaLocation ="
>
> > ../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd "/>
>
> >
>
> >
>
> >
>
> >          < xsd:import namespace ="
>
> >
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
>
> > "
>
> >
>
> >                     schemaLocation ="
>
> > ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd "/>
>
> ...
>
> [Mensaje recortado]


--
Saludos.
José Antonio Sánchez

RE: WSRF ant generate problem

Posted by Asaf Lahav <as...@primagrid.com>.
I agree it is supposed to have a standard implementation.

The issue is that it doesn't.

 

See the implementation of the Abstract.

This is why I think it’s a BUG in the WSDL2JAVA process.

 

Asaf Lahav

 

VP R&D, Prima Grid LTD.

 

Cellular:  972-54-4717955

 

Phone:   972-3-6540255

 

Fax:       972-3-6540254

 

 

 

 

-----Original Message-----
From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
Sent: Tuesday, February 14, 2006 12:24 PM
To: axis-user@ws.apache.org
Subject: Re: WSRF ant generate problem

 

All that's defined in the Abstract___.java is part of the WSRF

Standard and you don't have to override it. Just like you don't have

to override the getResourceProperty method, you don't have to override

the get method because it's defined in the WSRF standard:

 

public org.xmlsoap.schemas.ws.x2004.x09.mex.AnyXmlType get()

{

   return new
org.apache.ws.resource.metadataexchange.v2004_09.porttype.impl.MetadataExcha
ngePortTypeImpl(

getResourceContext(  ) ).get();

}

 

As you can see, get() is part of the metadata exchange part of WSRF so

it has a standard implementation.

 

2006/2/14, Asaf Lahav <as...@primagrid.com>:

> 

> 

> 

> I just found it&

> 

> The problem was a temp directory which is created by the ANT GENERATE
under

> the TOMCAT_HOME\WSRF folder which had a temp WSDL file.

> 

> As soon as I deleted this folder the generate process went fine.

> 

> 

> 

> 

> Asaf Lahav

> 

> VP R&D, Prima Grid LTD.

> 

> Cellular:  972-54-4717955

> 

> Phone:   972-3-6540255

> 

> Fax:       972-3-6540254

> 

> 

> 

>  ________________________________

> 

> 

> From: José Antonio Sánchez [mailto:getaceres@gmail.com]

>  Sent: Tuesday, February 14, 2006 12:02 AM

>  To: axis-user@ws.apache.org

>  Subject: Re: WSRF ant generate problem

> 

> 

> 

> 

> I don't see any error message in the ant log you posted. What's the
problem?

> 

> 

> 2006/2/13, Asaf Lahav <as...@primagrid.com>:

> 

> 

> Hi all,

> 

> 

> 

> While initiating the WSDL2JAVA using the ANT GENERATE (according to the
WSRF

> user guide) the process fails.

> 

> 

> 

> The output from the ANT is:

> 

> 

> 

> Buildfile: build.xml

> 

> 

> 

> init:

> 

>      [echo] Using webapp dir: C:\Tomcat 5.5/webapps/wsrf

> 

> 

> 

> generate:

> 

>      [copy] Copying 1 file to C:\Tomcat 5.5\webapps\wsrf\_tmp_

> 

> [wsdl2Java] Processing WSDL file "C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...

> 

> [wsdl2Java] Retrieving document at 'C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl'.

> 

> [wsdl2Java] Retrieving document at

> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl',

> relative to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../wsa/WS-Addressing-2003_03.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative

> to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.

> 

> [wsdl2Java] Retrieving schema at

> '../wsa/WS-Addressing-2003_03.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving document at

> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl',

> relative to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../wsa/WS-Addressing-2003_03.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving document at

> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-MetadataExchange-2004_09.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../wsa/WS-Addressing-2004_08_10.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.xsd'.

> 

> [wsdl2Java] Retrieving schema at

> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd',

> relative to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

> 

> [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...

> 

> [wsdl2Java] Found existing generated xmlbean jar in the classpath at

> location:

>
C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\Calculat
orWSRF-xbeans.jar

> ...This will be removed from the classpath sent to Scomp in order to

> regenerate all imports.

> 

> [wsdl2Java] Loading wsdl file C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl

> 

> [wsdl2Java] Processing 1 schema(s) in C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl

> 

> [wsdl2Java] Processing WSRF WSDL port "Calculator"...

> 

> [wsdl2Java] Processing WSDL file "C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...

> 

> [wsdl2Java] Retrieving document at 'C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\MySample.wsdl'.

> 

> [wsdl2Java] Retrieving document at

> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl',

> relative to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../wsa/WS-Addressing-2003_03.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving document at

> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl',

> relative to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../wsa/WS-Addressing-2003_03.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

> 

> [wsdl2Java] Retrieving document at

> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to

> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> 'WS-MetadataExchange-2004_09.xsd', relative to

> 'file:/C:/Tomcat

> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd',

> relative to 'file:/C:/Tomcat

> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

> 

> [wsdl2Java] Retrieving schema at

> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to

> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

> 

> [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...

> 

> [wsdl2Java] Found existing generated xmlbean jar in the classpath at

> location:

>
C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\MySample
-xbeans.jar

> ...This will be removed from the classpath sent to Scomp in order to

> regenerate all imports.

> 

> [wsdl2Java] Loading wsdl file C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\MySample.wsdl

> 

> [wsdl2Java] Processing 1 schema(s) in C:\Tomcat

> 5.5\webapps\wsrf\_tmp_\MySample.wsdl

> 

> 

> 

> The WSDL file as I wrote according to the Template provided from the WSRF

> user guide:

> 

> 

> 

> <?xml version="1.0"?>

> 

> 

> 

> < definitions name =" CalculatorDefinition "

> 

>             targetNamespace ="

> http://www.primagrid.com/resource/example/calculator "

> 

>             xmlns =" http://schemas.xmlsoap.org/wsdl/ "

> 

>             xmlns:tns ="

> http://www.primagrid.com/resource/example/calculator "

> 

>             xmlns:xsd =" http://www.w3.org/2001/XMLSchema "

> 

>             xmlns:soap ="

> http://schemas.xmlsoap.org/wsdl/soap/ "

> 

>             xmlns:wsrp ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft
-01.xsd

> "

> 

>             xmlns:wsrpw ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft
-01.wsdl

> "

> 

>             xmlns:wsrlw ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.wsdl

> "

> 

>             xmlns:mex ="

> http://schemas.xmlsoap.org/ws/2004/09/mex "

> 

>             xmlns:wsa04 ="

> http://schemas.xmlsoap.org/ws/2004/08/addressing ">

> 

> 

> 

>   < import namespace ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft
-01.wsdl

> "

> 

>           location ="

> ../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl "/>

> 

> 

> 

>   < import namespace ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.wsdl

> "

> 

>           location ="

> ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl "/>

> 

> 

> 

>   < import namespace ="

> http://schemas.xmlsoap.org/ws/2004/09/mex "

> 

>           location ="

> ../spec/wsx/WS-MetadataExchange-2004_09.wsdl "/>

> 

> 

> 

>   < types >

> 

>      < schema elementFormDefault =" qualified "

> 

>              targetNamespace ="

> http://www.primagrid.com/resource/example/calculator "

> 

>              xmlns =" http://www.w3.org/2001/XMLSchema "

> 

>              xmlns:xsd =" http://www.w3.org/2001/XMLSchema

> "

> 

>              xmlns:wsrl ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.xsd

> "

> 

>              xmlns:wsbf ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd

> ">

> 

> 

> 

>         < xsd:import namespace ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd

> "

> 

>                     schemaLocation ="

> ../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd "/>

> 

> 

> 

>          < xsd:import namespace ="

>
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.xsd

> "

> 

>                     schemaLocation ="

> ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd "/>

> 

> 

> 

>         <!-- *** Add your custom resource property element definitions
here

> *** -->

> 

> 

> 

>                                     < element name ="

> LeftSide " type =" xsd:int "/>

> 

>                                     < element name ="

> RightSide " type =" xsd:int "/>

> 

>                                     < element name ="

> Result " type =" xsd:int "/>

> 

> 

> 

>         <!-- Resource Properties Document Schema -->

> 

>         < element name =" ResourceProperties ">

> 

>            < complexType >

> 

>               < sequence >

> 

> 

> 

>                  <!-- *** If you wish to implement the

> wsrl:ScheduledResourceTermination portType,

> 

>                            uncomment the below two lines *** -->

> 

> 

> 

> ...

> 

> [Mensaje recortado]

 

 

--

Saludos.

José Antonio Sánchez


Re: WSRF ant generate problem

Posted by José Antonio Sánchez <ge...@gmail.com>.
All that's defined in the Abstract___.java is part of the WSRF
Standard and you don't have to override it. Just like you don't have
to override the getResourceProperty method, you don't have to override
the get method because it's defined in the WSRF standard:

public org.xmlsoap.schemas.ws.x2004.x09.mex.AnyXmlType get()
{
   return new org.apache.ws.resource.metadataexchange.v2004_09.porttype.impl.MetadataExchangePortTypeImpl(
getResourceContext(  ) ).get();
}

As you can see, get() is part of the metadata exchange part of WSRF so
it has a standard implementation.

2006/2/14, Asaf Lahav <as...@primagrid.com>:
>
>
>
> I just found it&
>
> The problem was a temp directory which is created by the ANT GENERATE under
> the TOMCAT_HOME\WSRF folder which had a temp WSDL file.
>
> As soon as I deleted this folder the generate process went fine.
>
>
>
>
> Asaf Lahav
>
> VP R&D, Prima Grid LTD.
>
> Cellular:  972-54-4717955
>
> Phone:   972-3-6540255
>
> Fax:       972-3-6540254
>
>
>
>  ________________________________
>
>
> From: José Antonio Sánchez [mailto:getaceres@gmail.com]
>  Sent: Tuesday, February 14, 2006 12:02 AM
>  To: axis-user@ws.apache.org
>  Subject: Re: WSRF ant generate problem
>
>
>
>
> I don't see any error message in the ant log you posted. What's the problem?
>
>
> 2006/2/13, Asaf Lahav <as...@primagrid.com>:
>
>
> Hi all,
>
>
>
> While initiating the WSDL2JAVA using the ANT GENERATE (according to the WSRF
> user guide) the process fails.
>
>
>
> The output from the ANT is:
>
>
>
> Buildfile: build.xml
>
>
>
> init:
>
>      [echo] Using webapp dir: C:\Tomcat 5.5/webapps/wsrf
>
>
>
> generate:
>
>      [copy] Copying 1 file to C:\Tomcat 5.5\webapps\wsrf\_tmp_
>
> [wsdl2Java] Processing WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...
>
> [wsdl2Java] Retrieving document at 'C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl',
> relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2003_03.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative
> to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.
>
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2003_03.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl',
> relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2003_03.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-MetadataExchange-2004_09.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2004_08_10.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.xsd'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...
>
> [wsdl2Java] Found existing generated xmlbean jar in the classpath at
> location:
> C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\CalculatorWSRF-xbeans.jar
> ...This will be removed from the classpath sent to Scomp in order to
> regenerate all imports.
>
> [wsdl2Java] Loading wsdl file C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl
>
> [wsdl2Java] Processing 1 schema(s) in C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl
>
> [wsdl2Java] Processing WSRF WSDL port "Calculator"...
>
> [wsdl2Java] Processing WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...
>
> [wsdl2Java] Retrieving document at 'C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl',
> relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2003_03.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceProperties-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl',
> relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../wsa/WS-Addressing-2003_03.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> 'WS-MetadataExchange-2004_09.xsd', relative to
> 'file:/C:/Tomcat
> 5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...
>
> [wsdl2Java] Found existing generated xmlbean jar in the classpath at
> location:
> C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\MySample-xbeans.jar
> ...This will be removed from the classpath sent to Scomp in order to
> regenerate all imports.
>
> [wsdl2Java] Loading wsdl file C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl
>
> [wsdl2Java] Processing 1 schema(s) in C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl
>
>
>
> The WSDL file as I wrote according to the Template provided from the WSRF
> user guide:
>
>
>
> <?xml version="1.0"?>
>
>
>
> < definitions name =" CalculatorDefinition "
>
>             targetNamespace ="
> http://www.primagrid.com/resource/example/calculator "
>
>             xmlns =" http://schemas.xmlsoap.org/wsdl/ "
>
>             xmlns:tns ="
> http://www.primagrid.com/resource/example/calculator "
>
>             xmlns:xsd =" http://www.w3.org/2001/XMLSchema "
>
>             xmlns:soap ="
> http://schemas.xmlsoap.org/wsdl/soap/ "
>
>             xmlns:wsrp ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd
> "
>
>             xmlns:wsrpw ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
> "
>
>             xmlns:wsrlw ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl
> "
>
>             xmlns:mex ="
> http://schemas.xmlsoap.org/ws/2004/09/mex "
>
>             xmlns:wsa04 ="
> http://schemas.xmlsoap.org/ws/2004/08/addressing ">
>
>
>
>   < import namespace ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
> "
>
>           location ="
> ../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl "/>
>
>
>
>   < import namespace ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl
> "
>
>           location ="
> ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl "/>
>
>
>
>   < import namespace ="
> http://schemas.xmlsoap.org/ws/2004/09/mex "
>
>           location ="
> ../spec/wsx/WS-MetadataExchange-2004_09.wsdl "/>
>
>
>
>   < types >
>
>      < schema elementFormDefault =" qualified "
>
>              targetNamespace ="
> http://www.primagrid.com/resource/example/calculator "
>
>              xmlns =" http://www.w3.org/2001/XMLSchema "
>
>              xmlns:xsd =" http://www.w3.org/2001/XMLSchema
> "
>
>              xmlns:wsrl ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
> "
>
>              xmlns:wsbf ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
> ">
>
>
>
>         < xsd:import namespace ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
> "
>
>                     schemaLocation ="
> ../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd "/>
>
>
>
>          < xsd:import namespace ="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
> "
>
>                     schemaLocation ="
> ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd "/>
>
>
>
>         <!-- *** Add your custom resource property element definitions here
> *** -->
>
>
>
>                                     < element name ="
> LeftSide " type =" xsd:int "/>
>
>                                     < element name ="
> RightSide " type =" xsd:int "/>
>
>                                     < element name ="
> Result " type =" xsd:int "/>
>
>
>
>         <!-- Resource Properties Document Schema -->
>
>         < element name =" ResourceProperties ">
>
>            < complexType >
>
>               < sequence >
>
>
>
>                  <!-- *** If you wish to implement the
> wsrl:ScheduledResourceTermination portType,
>
>                            uncomment the below two lines *** -->
>
>
>
> ...
>
> [Mensaje recortado]


--
Saludos.
José Antonio Sánchez

RE: WSRF ant generate problem

Posted by Asaf Lahav <as...@primagrid.com>.
I just found it…

The problem was a temp directory which is created by the ANT GENERATE under
the TOMCAT_HOME\WSRF folder which had a temp WSDL file.

As soon as I deleted this folder the generate process went fine.

 

Asaf Lahav

VP R&D, Prima Grid LTD.

Cellular:  972-54-4717955

Phone:   972-3-6540255

Fax:       972-3-6540254



  _____  

From: José Antonio Sánchez [mailto:getaceres@gmail.com] 
Sent: Tuesday, February 14, 2006 12:02 AM
To: axis-user@ws.apache.org
Subject: Re: WSRF ant generate problem

 

I don't see any error message in the ant log you posted. What's the problem?


2006/2/13, Asaf Lahav <as...@primagrid.com>: 

Hi all,

 

While initiating the WSDL2JAVA using the ANT GENERATE (according to the WSRF
user guide) the process fails.

 

The output from the ANT is:

 

Buildfile: build.xml 

 

init: 

     [echo] Using webapp dir: C:\Tomcat 5.5/webapps/wsrf

 

generate: 

     [copy] Copying 1 file to C:\Tomcat 5.5\webapps\wsrf\_tmp_

[wsdl2Java] Processing WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"... 

[wsdl2Java] Retrieving document at 'C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl'. 

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'. 

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'. 

[wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.

[wsdl2Java] Retrieving schema at 'WS-ResourceProperties-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'. 

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-ResourceLifetime-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-MetadataExchange-2004_09.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2004_08_10.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.xsd'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.

[wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"... 

[wsdl2Java] Found existing generated xmlbean jar in the classpath at
location:
C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\Calculat
orWSRF-xbeans.jar ...This will be removed from the classpath sent to Scomp
in order to regenerate all imports.

[wsdl2Java] Loading wsdl file C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl 

[wsdl2Java] Processing 1 schema(s) in C:\Tomcat
5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl 

[wsdl2Java] Processing WSRF WSDL port "Calculator"...

[wsdl2Java] Processing WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl"... 

[wsdl2Java] Retrieving document at 'C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl'. 

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'. 

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'. 

[wsdl2Java] Retrieving schema at 'WS-ResourceProperties-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'. 

[wsdl2Java] Retrieving document at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-ResourceLifetime-1_2-Draft_01.xsd',
relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.

[wsdl2Java] Retrieving document at
'../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at 'WS-MetadataExchange-2004_09.xsd', relative
to 'file:/C:/Tomcat
5.5/webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Retrieving schema at
'../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to 'file:/C:/Tomcat
5.5/webapps/wsrf/_tmp_/MySample.wsdl'.

[wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl"... 

[wsdl2Java] Found existing generated xmlbean jar in the classpath at
location:
C:\Downloads\wsrf-1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\MySample
-xbeans.jar ...This will be removed from the classpath sent to Scomp in
order to regenerate all imports.

[wsdl2Java] Loading wsdl file C:\Tomcat 5.5\webapps\wsrf\_tmp_\MySample.wsdl

[wsdl2Java] Processing 1 schema(s) in C:\Tomcat
5.5\webapps\wsrf\_tmp_\MySample.wsdl

 

The WSDL file as I wrote according to the Template provided from the WSRF
user guide:

 

<?xml version="1.0"?> 

 

< definitions name =" CalculatorDefinition " 

            targetNamespace ="
http://www.primagrid.com/resource/example/calculator " 

            xmlns =" http://schemas.xmlsoap.org/wsdl/ " 

            xmlns:tns ="
http://www.primagrid.com/resource/example/calculator " 

            xmlns:xsd =" http://www.w3.org/2001/XMLSchema " 

            xmlns:soap =" http://schemas.xmlsoap.org/wsdl/soap/ " 

            xmlns:wsrp ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft
-01.xsd " 

            xmlns:wsrpw ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft
-01.wsdl " 

            xmlns:wsrlw ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.wsdl " 

            xmlns:mex =" http://schemas.xmlsoap.org/ws/2004/09/mex " 

            xmlns:wsa04 =" http://schemas.xmlsoap.org/ws/2004/08/addressing
"> 

 

  < import namespace ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft
-01.wsdl " 

          location =" ../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl
"/> 

 

  < import namespace ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.wsdl " 

          location =" ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl "/>


 

  < import namespace =" http://schemas.xmlsoap.org/ws/2004/09/mex " 

          location =" ../spec/wsx/WS-MetadataExchange-2004_09.wsdl "/> 

 

  < types > 

     < schema elementFormDefault =" qualified " 

             targetNamespace ="
http://www.primagrid.com/resource/example/calculator " 

             xmlns =" http://www.w3.org/2001/XMLSchema " 

             xmlns:xsd =" http://www.w3.org/2001/XMLSchema " 

             xmlns:wsrl ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.xsd " 

             xmlns:wsbf ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
"> 

 

        < xsd:import namespace ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
" 

                    schemaLocation ="
../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd "/> 

 

         < xsd:import namespace ="
http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-0
1.xsd " 

                    schemaLocation ="
../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd "/> 

 

        <!-- *** Add your custom resource property element definitions here
*** --> 

        

                                    < element name =" LeftSide " type ="
xsd:int "/> 

                                    < element name =" RightSide " type ="
xsd:int "/> 

                                    < element name =" Result " type ="
xsd:int "/> 

        

        <!-- Resource Properties Document Schema -->         

        < element name =" ResourceProperties "> 

           < complexType > 

              < sequence > 

              

                 <!-- *** If you wish to implement the
wsrl:ScheduledResourceTermination portType,

                           uncomment the below two lines *** --> 

                 

                 < element ref =" wsrl:CurrentTime " /> 

                 < element ref =" wsrl:TerminationTime " /> 

                 

 

                 <!-- *** Add element refs for each of your custom resource
property elements here *** --> 

                                                  < element ref ="
tns:LeftSide "/> 

                                                  < element ref ="
tns:RightSide "/>                                      

                                                  < element ref ="
tns:Result "/> 

                 

                 <!-- *** Uncomment the below any element if you want to
permit resource property elements 

                          with arbitrary names (not generally recommended)
*** --> 

                 <!-- 

                 <any minOccurs="0" maxOccurs="unbounded"
namespace="##other" processContents="lax" />

                 --> 

                 

              </ sequence > 

           </ complexType > 

        </ element > 

 

        <!-- *** Add element definitions for custom request/response/fault
types here *** -->          

                        < element name =" Execute "> 

                                    < complexType /> 

                        </ element > 

                        < element name =" ExecuteResponse "> 

                                    < complexType /> 

                        </ element > 

                        < element name =" ExecuteFailedFault "> 

                                    < complexType > 

                                                < complexContent > 

                                                < extension base ="
wsbf:BaseFaultType " /> 

                                                </ complexContent > 

                                    </ complexType > 

                        </ element > 

                                    

     </ schema > 

  </ types > 

 

  <!-- *** Add message definitions for custom request/response/fault types
here *** -->          

 

            < message name =" ExecuteRequest "> 

                        < part name =" ExecuteRequest " element ="
tns:Execute "/> 

            </ message > 

            

            < message name =" ExecuteResponse "> 

                        < part name =" ExecuteResponse " element ="
tns:ExecuteResponse "/> 

            </ message > 

            

            < message name =" ExecuteFailedFault "> 

                        < part name =" ExecuteFailedFault " element ="
tns:ExecuteFailedFault "/> 

            </ message > 

  

  

  

  < portType name =" CalculatorPortType " wsrp:ResourceProperties ="
tns:ResourceProperties "> 

        

     < operation name =" GetResourceProperty "> 

        < input name =" GetResourcePropertyRequest " message ="
wsrpw:GetResourcePropertyRequest "/> 

        < output name =" GetResourcePropertyResponse " message ="
wsrpw:GetResourcePropertyResponse "/> 

        < fault name =" ResourceUnknownFault " message ="
wsrpw:ResourceUnknownFault "/> 

        < fault name =" InvalidResourcePropertyQNameFault " 

...

[Mensaje recortado]





-- 
Saludos.
José Antonio Sánchez 


Re: WSRF ant generate problem

Posted by José Antonio Sánchez <ge...@gmail.com>.
I don't see any error message in the ant log you posted. What's the problem?


2006/2/13, Asaf Lahav <as...@primagrid.com>:
>
>  Hi all,
>
>
>
> While initiating the WSDL2JAVA using the ANT GENERATE (according to the
> WSRF user guide) the process fails.
>
>
>
> The output from the ANT is:
>
>
>
> Buildfile: build.xml
>
>
>
> init:
>
>      [echo] Using webapp dir: C:\Tomcat 5.5/webapps/wsrf
>
>
>
> generate:
>
>      [copy] Copying 1 file to C:\Tomcat 5.5\webapps\wsrf\_tmp_
>
> [wsdl2Java] Processing WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...
>
> [wsdl2Java] Retrieving document at 'C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../xml/XML-Namespace-1998.xsd', relative
> to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.
>
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd'.
>
> [wsdl2Java] Retrieving schema at 'WS-ResourceProperties-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-ResourceLifetime-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-MetadataExchange-2004_09.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2004_08_10.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.xsd'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/CalculatorWSRF.wsdl'.
>
> [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl"...
>
> [wsdl2Java] Found existing generated xmlbean jar in the classpath at
> location: C:\Downloads\wsrf-
> 1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\CalculatorWSRF-xbeans.jar...This will be removed from the classpath sent to Scomp in order to
> regenerate all imports.
>
> [wsdl2Java] Loading wsdl file C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl
>
> [wsdl2Java] Processing 1 schema(s) in C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\CalculatorWSRF.wsdl
>
> [wsdl2Java] Processing WSRF WSDL port "Calculator"...
>
> [wsdl2Java] Processing WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...
>
> [wsdl2Java] Retrieving document at 'C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-ResourceProperties-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at '../wsa/WS-Addressing-2003_03.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-BaseFaults-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-ResourceLifetime-1_2-Draft_01.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl'.
>
> [wsdl2Java] Retrieving document at
> '../spec/wsx/WS-MetadataExchange-2004_09.wsdl', relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at 'WS-MetadataExchange-2004_09.xsd',
> relative to 'file:/C:/Tomcat 5.5
> /webapps/wsrf/spec/wsx/WS-MetadataExchange-2004_09.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd', relative to
> 'file:/C:/Tomcat 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Retrieving schema at
> '../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd', relative to 'file:/C:/Tomcat
> 5.5/webapps/wsrf/_tmp_/MySample.wsdl'.
>
> [wsdl2Java] Generating XMLBeans for WSDL file "C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl"...
>
> [wsdl2Java] Found existing generated xmlbean jar in the classpath at
> location: C:\Downloads\wsrf-
> 1.1\wsrf-1.1\MyWorkspace3\generated\.xmlbeans\lib\MySample-xbeans.jar...This will be removed from the classpath sent to Scomp in order to
> regenerate all imports.
>
> [wsdl2Java] Loading wsdl file C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl
>
> [wsdl2Java] Processing 1 schema(s) in C:\Tomcat
> 5.5\webapps\wsrf\_tmp_\MySample.wsdl
>
>
>
> The WSDL file as I wrote according to the Template provided from the WSRF
> user guide:
>
>
>
> <?xml version="1.0"?>
>
>
>
> <definitions name="CalculatorDefinition"
>
>             targetNamespace="
> http://www.primagrid.com/resource/example/calculator"
>
>             xmlns="http://schemas.xmlsoap.org/wsdl/"
>
>             xmlns:tns="
> http://www.primagrid.com/resource/example/calculator"
>
>             xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
>             xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
>             xmlns:wsrp="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.xsd
> "
>
>             xmlns:wsrpw="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
> "
>
>             xmlns:wsrlw="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl
> "
>
>             xmlns:mex="http://schemas.xmlsoap.org/ws/2004/09/mex"
>
>             xmlns:wsa04="http://schemas.xmlsoap.org/ws/2004/08/addressing
> ">
>
>
>
>   <import namespace="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceProperties-1.2-draft-01.wsdl
> "
>
>           location="../spec/wsrf/WS-ResourceProperties-1_2-Draft_01.wsdl
> "/>
>
>
>
>   <import namespace="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.wsdl
> "
>
>           location="../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.wsdl"/>
>
>
>
>   <import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex"
>
>           location="../spec/wsx/WS-MetadataExchange-2004_09.wsdl"/>
>
>
>
>   <types>
>
>      <schema elementFormDefault="qualified"
>
>              targetNamespace="
> http://www.primagrid.com/resource/example/calculator"
>
>              xmlns="http://www.w3.org/2001/XMLSchema"
>
>              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
>              xmlns:wsrl="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
> "
>
>              xmlns:wsbf="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
> ">
>
>
>
>         <xsd:import namespace="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-BaseFaults-1.2-draft-01.xsd
> "
>
>                     schemaLocation="
> ../spec/wsrf/WS-BaseFaults-1_2-Draft_01.xsd"/>
>
>
>
>         <xsd:import namespace="
> http://docs.oasis-open.org/wsrf/2004/06/wsrf-WS-ResourceLifetime-1.2-draft-01.xsd
> "
>
>                     schemaLocation="
> ../spec/wsrf/WS-ResourceLifetime-1_2-Draft_01.xsd"/>
>
>
>
>         <!-- *** Add your custom resource property element definitions
> here *** -->
>
>
>
>                                     <element name="LeftSide" type="xsd:int
> "/>
>
>                                     <element name="RightSide" type="
> xsd:int"/>
>
>                                     <element name="Result" type="xsd:int
> "/>
>
>
>
>         <!-- Resource Properties Document Schema -->
>
>         <element name="ResourceProperties">
>
>            <complexType>
>
>               <sequence>
>
>
>
>                  <!-- *** If you wish to implement the
> wsrl:ScheduledResourceTermination portType,
>
>                            uncomment the below two lines *** -->
>
>
>
>                  <element ref="wsrl:CurrentTime" />
>
>                  <element ref="wsrl:TerminationTime" />
>
>
>
>
>
>                  <!-- *** Add element refs for each of your custom
> resource property elements here *** -->
>
>                                                  <element ref="
> tns:LeftSide"/>
>
>                                                  <element ref="
> tns:RightSide"/>
>
>                                                  <element ref="tns:Result
> "/>
>
>
>
>                  <!-- *** Uncomment the below any element if you want to
> permit resource property elements
>
>                           with arbitrary names (not generally recommended)
> *** -->
>
>                  <!--
>
>                  <any minOccurs="0" maxOccurs="unbounded"
> namespace="##other" processContents="lax" />
>
>                  -->
>
>
>
>               </sequence>
>
>            </complexType>
>
>         </element>
>
>
>
>         <!-- *** Add element definitions for custom request/response/fault
> types here *** -->
>
>                         <element name="Execute">
>
>                                     <complexType />
>
>                         </element>
>
>                         <element name="ExecuteResponse">
>
>                                     <complexType />
>
>                         </element>
>
>                         <element name="ExecuteFailedFault">
>
>                                     <complexType>
>
>                                                 <complexContent>
>
>                                                 <extension base="
> wsbf:BaseFaultType" />
>
>                                                 </complexContent>
>
>                                     </complexType>
>
>                         </element>
>
>
>
>      </schema>
>
>   </types>
>
>
>
>   <!-- *** Add message definitions for custom request/response/fault types
> here *** -->
>
>
>
>             <message name="ExecuteRequest">
>
>                         <part name="ExecuteRequest" element="tns:Execute
> "/>
>
>             </message>
>
>
>
>             <message name="ExecuteResponse">
>
>                         <part name="ExecuteResponse" element="
> tns:ExecuteResponse"/>
>
>             </message>
>
>
>
>             <message name="ExecuteFailedFault">
>
>                         <part name="ExecuteFailedFault" element="
> tns:ExecuteFailedFault"/>
>
>             </message>
>
>
>
>
>
>
>
>   <portType name="CalculatorPortType" wsrp:ResourceProperties="
> tns:ResourceProperties">
>
>
>
>      <operation name="GetResourceProperty">
>
>         <input name="GetResourcePropertyRequest" message="
> wsrpw:GetResourcePropertyRequest"/>
>
>         <output name="GetResourcePropertyResponse" message="
> wsrpw:GetResourcePropertyResponse"/>
>
>         <fault name="ResourceUnknownFault" message="
> wsrpw:ResourceUnknownFault"/>
>
>         <fault name="InvalidResourcePropertyQNameFault"
> ...
>
> [Mensaje recortado]
>



--
Saludos.
José Antonio Sánchez