Oh, BTW, I tried upgrading to WSDL4J 1.5.1 with the same result...
Can anyone else bind to this web service and use it in JDK5?
Jason
---------- Forwarded message ----------
From: Jason Carreira <[EMAIL PROTECTED]>
Date: Apr 27, 2005 4:33 PM
Subject: Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3
To: [EMAIL PROTECTED]
The problem is that your build will use Clover if it's in ant/lib and the classes put into the jar will be modified by Clover for code coverage.
I rebuilt with a different ant without clover and I'm able to get past the line below... unfortunately a few lines later it does this:
BindingOperation bop = binding.getBindingOperation(opName,
null, null);
if ( bop == null ) {
throw new JAXRPCException( Messages.getMessage("noOperation02",
opName ));
}
This is calling into WSDL4J and bop is coming back as null, so it throws an exception.
Any ideas?
On 4/27/05, Davanum Srinivas <
[EMAIL PROTECTED]> wrote:
using
for ( int i = 0 ; i < operations.size() ; i++, op=null ) {
op = (Operation) operations.get( i );
if ( opName.equals( JavaUtils.xmlNameToJava(op.getName()) ) ) {
break ;
}
}
??
-- dims
On 4/27/05, Jason Carreira < [EMAIL PROTECTED] > wrote:
> and I get the same problem...
>
>
> On 4/27/05, Davanum Srinivas <[EMAIL PROTECTED] > wrote:
> > just "ant" is enough to build the axis jar.
> >
> > -- dims
> >
> > On 4/27/05, Jason Carreira <[EMAIL PROTECTED] > wrote:
> > > How do I get it to build without Clover dependencies? I've been doing
> "ant
> > > dist" and the axis.jar file that goes into build/lib fails when I use it
> > > with:
> > >
> > > java.lang.NoClassDefFoundError: com/cortexeb/tools/clover/aq
> > > at
> > > org.apache.axis.client.ServiceFactory
> .<clinit>(ServiceFactory.java:49)
> > >
> > >
> > > On 4/27/05, Davanum Srinivas < [EMAIL PROTECTED]> wrote:
> > > > yep
> > > >
> > > > On 4/27/05, Jason Carreira < [EMAIL PROTECTED]> wrote:
> > > > > I'm sorry, I don't understand... you mean add this to the Axis
> source in
> > > > > Call and rebuild?
> > > > >
> > > > >
> > > > > On 4/27/05, Davanum Srinivas < [EMAIL PROTECTED] > wrote:
> > > > > > Jason,
> > > > > >
> > > > > > throw JavaUtils.xmlNameToJava into the mix and see if it works
> with
> > > > > > all your test cases...if it does, open up a JIRA bug and i will
> check
> > > > > > it in.
> > > > > >
> > > > > > thanks,
> > > > > > dims
> > > > > >
> > > > > > On 4/27/05, Jason Carreira < [EMAIL PROTECTED]> wrote:
> > > > > > > Hi all,
> > > > > > >
> > > > > > > I'm moving from Apache Axis 1.1 to 1.2RC3 and I'm having an
> issue
> > > with
> > > > > > > calling methods on a web service I've generated a client for. I
> > > > > re-generated
> > > > > > > the client code for 1.2RC3. I'm switching because we're moving
> from
> > > > > JDK1.4.2
> > > > > > > up to JDK5 and the "enum" variable names and package are
> illegal.
> > > > > > >
> > > > > > > Anyway, on to my problem. The service I'm binding to is the
> weather
> > > > > service
> > > > > > > here:
> > > > > > >
> > > > >
> > >
> http://www.ejse.com/services/weather_xml_web_services.htm .
> > > > > > > It's just an example app to show how we can do these things and
> to
> > > test
> > > > > out
> > > > > > > using Spring's Axis support. With 1.1 this worked fine. With
> 1.2RC3
> > > I've
> > > > > > > tracked the problem down to the section starting with line 1338
> in
> > > > > > > org.apache.axis.client.Call :
> > > > > > >
> > > > > > > for ( int i = 0 ; i < operations.size() ; i++, op=null
> ) {
> > > > > > > op = (Operation) operations.get( i );
> > > > > > > if ( opName.equals( op.getName() ) ) {
> > > > > > > break ;
> > > > > > > }
> > > > > > > }
> > > > > > >
> > > > > > > The problem is that opName is the name of the method from the
> > > generated
> > > > > > > stub interface: "getWeatherInfo". The op.getName is returning
> > > > > > > "GetWeatherInfo". I looked at the code for Call in Axis 1.1, and
> it
> > > > > looks
> > > > > > > the same, so I'm not sure why it was working, but it was.
> > > Unfortunately,
> > > > > no
> > > > > > > such luck in Axis 1.2RC3.
> > > > > > >
> > > > > > > Any ideas? Is there something I'm doing wrong, or is this a
> bug?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > Jason
> > > > > >
> > > > > > --
> > > > > > Davanum Srinivas -
> > > http://webservices.apache.org/~dims/
> > > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > Davanum Srinivas -
> http://webservices.apache.org/~dims/
> > > >
> > >
> > >
> >
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >
>
>
--
Davanum Srinivas - http://webservices.apache.org/~dims/
