Alick, Dies & Anne,
Many thanks for your replies. I figured it out... problem due to
a silly mistake on my part.
I have my interface definition... Family... in Family.java
My implementation class, FamilyImpl, which implements Family.
These are in my dev/src/server directory, separate from the
dir that holds the generated .java files. The reason is to
prevent overwriting when WSDL2Java spits out its Family.java
file.
But WSDL2Java won't overwrite an existing file. I noticed this
with the FamilyAccountSoapBindingImpl.java file but not the
Family.java file!
So I had old, incompatible versions of Family.java. When I
compiled all the .java file I saw errors this morning.
The reason I didn't notice this yesterday is that the compiler
didn't generate errors. Why? Silly mistake on my part. I
forgot to say
public class FamilyImpl implements Family
(forgot the "implements").
Moral of the story: when you're tired and stessed, go home and get
a good nights sleep.
Thanks all....
Vartan
--- Dies Koper <[EMAIL PROTECTED]> wrote:
> Vartan,
> Could you try explicitly setting the classpath (with your classes in
> front)?
> Also, make sure there are no old compiled generated classes in your
> classpath.
>
> Can you reproduce it with only that method in your interface? (without
> isRegistered and login)?
>
> Regards,
> Dies
>
>
> Rhimbo wrote:
> > Alick,
> >
> > Thanks much. It still fails for me. Very strange.
> >
> > I deleted all of my files except my original interface definition,
> > Family.java and my FamilyImpl.java, which is the implementation code.
>
> >
> > I'm wondering if I have some incompatible libraries in my
> > Tomcat/AXIS installation for two reasons:
> >
> > 1. You get it to work; I can't.
> > 2. Trying the -y wrapped or --style wrapped makes Java2WSDL die
> > a dramatic death.
> >
> > Is there any way to figure out which version of the Java2WSDL
> > class file I have (something like a "-version" option)?
> >
> > Vartan
> >
> >
> >
> > --- Alick Buckley <[EMAIL PROTECTED]> wrote:
> >
> >> Hi Vartan,
> >>
> >> I have had no problems with long parameters using RPC or Wrapped
> style.
> >>
> >> I did a quick test using my wizard and the Axis 1.3 generated WSDL
> is
> >> ok.
> >>
> >> See attached FamilyServer.wsdl
> >>
> >>
> >
>
============================================================================
> >> ==
> >>
> >> package com.acme.service.soap ;
> >>
> >> public interface FamilyServerProvider
> >> {
> >> public int register ( String in0, String in1, long in2, String
> in3
> >> ) ;
> >> }
> >>
> >>
> >
>
============================================================================
> >> ==
> >>
> >> package com.acme.service.soap ;
> >>
> >> public class FamilyServerProviderStub implements
> FamilyServerProvider
> >> {
> >> /*
> >> Service implementation
> >> */
> >>
> >> public final int register ( String in0, String in1, long in2,
> >> String in3
> >> )
> >> {
> >> return 0 ;
> >> }
> >> }
> >>
> >>
> >
>
============================================================================
> >> ==
> >> Create WSDL from source started
> >>
> >> java
> >> -classpath
> >>
> >
>
"C:\Studio_Beta\workspace\SOAP-GENERAL\solutions\FamilyServer\soap-compile"
> >> "-Djava.ext.dirs=C:\Studio_Beta\lib\ext;"
> >> org.apache.axis.wsdl.Java2WSDL
> >> -l
> >> http://www.acme.com/cgi-bin/jsmdirect?myservice
> >> -o
> >>
> >
>
C:\Studio_Beta\workspace\SOAP-GENERAL\solutions\FamilyServer\FamilyServerSer
> >> vice.wsdl
> >> -b
> >> FamilyServerServiceBinding
> >> -S
> >> FamilyServerServiceService
> >> -s
> >> FamilyServerServicePort
> >> -P
> >> FamilyServerServicePortType
> >> -y
> >> RPC
> >> -u
> >> ENCODED
> >> -T
> >> 1.2
> >> -A
> >> OPERATION
> >> -i
> >> com.acme.service.soap.FamilyServerProviderStub
> >> com.acme.service.soap.FamilyServerProvider
> >>
> >> Create WSDL from source completed
> >>
> >>
> >
>
============================================================================
> >> ==
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Rhimbo [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, 15 March 2006 1:56 PM
> >> To: Axis users
> >> Subject: How to use "long" for parameter type?
> >>
> >>
> >> Hi folks,
> >>
> >> Tomcat 5.5.15, AXIS 1.3, Linux fedora core 4....
> >>
> >> Java2WSDL does not generate the correct method signature in the
> >> *SoapBindingImpl.java file. Here is the scenario.
> >>
> >> I have the following method declaration in my Family.java file,
> which
> >> defines one interface.
> >>
> >> public interface Family
> >> {
> >> public int register(String email,
> >> String password,
> >> long birthDate,
> >> String affiliateName)
> >> throws RemoteException;
> >>
> >> ...
> >> }
> >>
> >> I execute:
> >>
> >> $ java org.apache.axis.wsdl.Java2WSDL -o family.wsdl \
> >> -l"http://localhost:8080/axis/services/family-accounts" \
> >> -n urn:family-accounts \
> >> -p"family-accounts" urn:disney.dis.family \
> >> disney.dis.family.Family
> >>
> >> to produce the family.wsdl file, which I've attached to this email.
> >>
> >>
> >> I execute:
> >>
> >> $
> >> $ java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s \
> >> -p disney.dis.family family.wsdl
> >>
> >> to produce the auto-generated files. The file that contains the
> >> SOAP binding implementation has the following signature
> >> corresponding to the interface method declaration above:
> >>
> >> public int register(java.lang.String in0,
> >> java.lang.String in1,
> >> java.lang.String in2)
> >> throws java.rmi.RemoteException
> >> {
> >> return -3;
> >> }
> >>
> >> It should be like this:
> >>
> >> public int register(java.lang.String in0,
> >> java.lang.String in1,
> >> long in2,
> >> java.lang.String in3)
> >> throws java.rmi.RemoteException
> >> {
> >> return -3;
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com