Tom,

Brent and I have discussed this.  I saw the same problems you did.  We
start with WSDL, generate Java, generate WSDL again, then generate Java
again.  The first java generation created classes that would work for you
and I.  The 2nd did not.   (Try WSDL2Java on the command line on Brent's
roundtrip.wsdl and you should get something that works.)  The problem is
with the constructor.  The parameters are in a different order than what is
expected.  Brent just gave me a version of his test where he calls the
setters rather than setting all the values via the constructor.  That
version seems to work and I'll commit it shortly.

I'm still puzzled as to why we have two versions of the generated code and
I should probably look into it.  It's added to my todo list.

Russell Butek
[EMAIL PROTECTED]


Tom Jordahl <[EMAIL PROTECTED]> on 02/12/2002 03:54:13 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, Brent
      Ulbricht/Austin/IBM@IBMUS
cc:
Subject:  RE: New Wsdl Test




Brent,

This looks like a great test case, but when I extracted it and tried to run
it here are the compilation errors I got:

    [javac] D:
\dev\axis\xml-axis\java\build\work\test\wsdl\roundtrip\RoundtripTe
stServiceTestCase.java:208: cannot resolve symbol
    [javac] symbol  : constructor BondInvestment
(test.wsdl.roundtrip.CallOptio
ns[],java.lang.Short[],java.lang.Byte
[],java.lang.Double,java.lang.Float,java.la
ng.Integer,java.lang.Short,java.lang.Byte,java.lang.Boolean,short[],byte
[],java.
util.Date,java.math.BigDecimal,java.math.BigInteger,java.lang.String,double,floa

t,long,int,short,byte)
    [javac] location: class test.wsdl.roundtrip.BondInvestment
    [javac]             BondInvestment sendValue = new
BondInvestment(callOption
s,
    [javac]                                        ^
    [javac] D:
\dev\axis\xml-axis\java\build\work\test\wsdl\roundtrip\RoundtripTe
stServiceTestCase.java:419: cannot resolve symbol
    [javac] symbol  : constructor BondInvestment
(test.wsdl.roundtrip.CallOptio
ns[],java.lang.Short[],java.lang.Byte
[],java.lang.Double,java.lang.Float,java.la
ng.Integer,java.lang.Short,java.lang.Byte,java.lang.Boolean,short[],byte
[],java.
util.Date,java.math.BigDecimal,java.math.BigInteger,java.lang.String,double,floa

t,long,int,short,byte)
    [javac] location: class test.wsdl.roundtrip.BondInvestment
    [javac]             BondInvestment sendValue = new
BondInvestment(callOption
s,
    [javac]                                        ^
    [javac] D:
\dev\axis\xml-axis\java\build\work\test\wsdl\roundtrip\RoundtripTe
stSoapBindingImpl.java:124: cannot resolve symbol
    [javac] symbol  : constructor BondInvestment
(test.wsdl.roundtrip.CallOptio
ns[],java.lang.Short[],java.lang.Byte
[],java.lang.Double,java.lang.Float,java.la
ng.Integer,java.lang.Short,java.lang.Byte,java.lang.Boolean,short[],byte
[],java.
util.Date,java.math.BigDecimal,java.math.BigInteger,java.lang.String,double,floa

t,long,int,short,byte)
    [javac] location: class test.wsdl.roundtrip.BondInvestment
    [javac]         BondInvestment sendValue = new
BondInvestment(callOptions,
    [javac]                                    ^
    [javac] D:
\dev\axis\xml-axis\java\build\work\test\wsdl\roundtrip\RoundtripTe
stSoapBindingImpl.java:187: cannot resolve symbol
    [javac] symbol  : constructor BondInvestment
(test.wsdl.roundtrip.CallOptio
ns[],java.lang.Short[],java.lang.Byte
[],java.lang.Double,java.lang.Float,java.la
ng.Integer,java.lang.Short,java.lang.Byte,java.lang.Boolean,short[],byte
[],java.
util.Date,java.math.BigDecimal,java.math.BigInteger,java.lang.String,double,floa

t,long,int,short,byte)
    [javac] location: class test.wsdl.roundtrip.BondInvestment
    [javac]         BondInvestment sendValue = new
BondInvestment(callOptions,
    [javac]                                    ^
    [javac] 4 errors

--
Tom Jordahl
Macromedia



-----Original Message-----
From: Brent Ulbricht [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 12, 2002 9:53 AM
To: [EMAIL PROTECTED]
Subject: New Wsdl Test


Hi,

I have attached a test primarily to verify a roundtrip between Java2WSDL
and WSDL2Java for primitives, standard Java classes, nillables, arrays,
multiple arrays, and JAX-RPC value types.

(See attached file: roundtrip.zip)

 Brent Ulbricht


Reply via email to