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 <[EMAIL PROTECTED]>:
>
>
>
> 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:[EMAIL PROTECTED]
> Sent: Tuesday, February 14, 2006 12:24 PM
> To: [email protected]
> 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 <[EMAIL PROTECTED]>:
>
> >
>
> >
>
> >
>
> > 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:[EMAIL PROTECTED]
>
> > Sent: Tuesday, February 14, 2006 12:02 AM
>
> > To: [email protected]
>
> > 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 <[EMAIL PROTECTED]>:
>
> >
>
> >
>
> > 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