axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: java file generated using WSDL2JAVA fail to compile with 'too many parameters' error
Date Sat, 25 Mar 2006 17:19:34 GMT
The Opportunity complex type has too many child elements to map to a Java
object. You'll have to figure out a way to break it into multiple types, or
you need to use the messaging API and map it to a DOM.

Anne

On 3/21/06, Rakesh.Jaiswal@prudential.co.uk <Rakesh.Jaiswal@prudential.co.uk>
wrote:
>
> Hi,
>
> I have generated java files using WSDL2Java utility using following
> option.
>
> java -Dlog4j.configuration=file:/c:/dontknow/wsdl/log4j.properties
> -classpath
> C:\axis-1_3\lib\axis.jar;C:\axis-1_3\lib\commons-logging-1.0.4.jar
> ;C:\axis-1_3\lib\log4j-1.2.8.jar;C:\axis-1_3\lib\commons-discovery-0.2.jar
> ;C:\axis-1_3\lib\jaxrpc.jar;C:\axis-1_3\lib\saaj.jar;C:\axis-1_3\lib\wsdl4j-
> 1.5.1.jar
> org.apache.axis.wsdl.WSDL2Java enterprise.wsdl
>
> All java files successfully created. But when I am trying to compile those
> java files then Iam getting following exception.
> Opportunity.java:588: too many parameters.
> I have seen code of Opportunity.java & its constructor is having 286
> parameters which is against java specification. Java limits the number of
> method parameters to 255 or 254 or less if
> parameters are of type long for double.
>
> My environment is ..WIndows XP, Java(TM) 2 Runtime Environment, Standard
> Edition (build 1.4.2_04-b05), AXIS1.3
>
> Attached is WSDL.
> (See attached file: enterprise.wsdl)
> Thanks for you help.
> Regards
> Rakesh
>
> ------------------------------------------------------------
> This email is confidential and should not be used by anyone who is not
> the original intended recipient. Prudential cannot accept liability
> for statements made which are clearly the sender's own and not made
> on behalf of the Prudential. In addition no statement should be
> construed as giving investment advice within or outside the United
> Kingdom.
>
> Prudential plc, Laurence Pountney Hill, London, EC4R 0HH.
> Incorporated and registered in England and Wales.  Registered
> Office as above. Registered number 1397169.  Prudential plc is a
> holding company, subsidiaries of which are authorised and regulated
> by the Financial Services Authority (FSA).
>
> "Prudential" is a trading name of The Prudential Assurance Company
> Limited, which is registered in England and Wales.  This name is
> also used by other companies within the Prudential Group, which
> between them provide a range of financial products including life
> assurance, pensions, savings and investment products. Registered
> Office at Laurence Pountney Hill, London, EC4R 0HH. Registered
> number 15454.  Authorised and regulated by the Financial Services
> Authority.
>
> An e-mail reply to this address may be subject to interception or
> monitoring for operational reasons or for lawful business practices.
> ------------------------------------------------------------
>

Mime
View raw message