Hey Guys!
I'm stuck here trying to generate code out of my hand made wsdl file.
wsdl2java throws an exception:
[ERROR]
NullPointerException
at
org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServic
e(WSDL11ToAxisServiceBuilder.java:246)
The wsdl file looks like this:
: samanth marisetty [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2007 11:38 AM
To: axis-user@ws.apache.org
Subject: axis wsdl2java nullPointerException
Hi,
When I use the axis wsdl2java tool I get this error..
java.lang.NullPointerException
Roman,
You shouldn't use wsdl:import to import an XSD file.
Change this:
wsdl:import namespace=http://webservice;
location=../schemas/household.xsd /
to this:
wsdl:types
xsd:schema targetNamespace=http://webservice;
I also found a number of errors in your schema.
1. You need to declare a namespace for your targetNamespace. You have
declared a default namespace (http://www.w3.org/2000/10/XMLSchema;),
so any unqualified QNames refer to types in the schema namespace.
E.g.:
element name=Household
Thanks for your Help!
I'm going to work that out and look for a validator!
Original Message
From: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java NullPointerException populateService
Date: Mon, 12 Nov 2007 15:55:22 -0500
I also found a number of errors in your
-wsdl2java-nullPointerException-tf4778297.html#a13669011
Sent from the Axis - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
When I use the axis wsdl2java tool I get this error..
java.lang.NullPointerException
at
org.apache.axis.wsdl.toJava.JavaBeanHelperWriter.getAsFieldName(JavaBeanHelperWriter.java:435)
at
Hmm, I thought we got rid of all those NPE's, its pretty much never
acceptable. Can you validate your wsdl in one of the countless tools,
eclipse's WST, xmlspy etc?
HTH,
Robert
On Nov 9, 2007 11:37 AM, samanth marisetty [EMAIL PROTECTED] wrote:
Hi,
When I use the axis wsdl2java tool I get
Ehh, you're using axis and not axis2 - my bad. My knowledge is very
hazy on axis, but the validation suggestion still applies.
Robert
On Nov 9, 2007 11:40 AM, robert lazarski [EMAIL PROTECTED] wrote:
Hmm, I thought we got rid of all those NPE's, its pretty much never
acceptable. Can you
the request and response
parameters until you learn which piece of schema is probably causing
your issue.
-jeff
-Original Message-
From: samanth marisetty [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2007 11:38 AM
To: axis-user@ws.apache.org
Subject: axis wsdl2java
learn which piece of schema is probably causing
your issue.
-jeff
-Original Message-
From: samanth marisetty [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2007 11:38 AM
To: axis-user@ws.apache.org
Subject: axis wsdl2java nullPointerException
Hi,
When I use the axis
you learn which piece of schema is probably causing
your issue.
-jeff
-Original Message-
From: samanth marisetty [mailto:[EMAIL PROTECTED]
Sent: Friday, November 09, 2007 11:38 AM
To: axis-user@ws.apache.org
Subject: axis wsdl2java nullPointerException
Hi,
When I use the axis
Hi,
I am trying to generate code from the WSDL below,
It throws the following exception:
Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:94)
You have a typo in the binding:
output name=requestForMembershipoResponse
---
Also, you must remove all the namespace attributes in your soap:body
definitions.
they should simply be:
soap:body use=literal/
You use the
cc
07/27/2006 12:44
PMSubject
Re: [AXIS2-1.0] WSDL2Java:
NullPointerException
Subject
Re: [AXIS2-1.0] WSDL2Java:
NullPointerException
Please respond to
[EMAIL PROTECTED]
he.org
You have a typo in the binding:
output name
PROTECTED]
Sent: Thursday, July 27, 2006 9:44 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2-1.0] WSDL2Java: NullPointerException
You have a typo in the binding:
output name=requestForMembershipoResponse
--- Also
under any circumstances, so there is
definitely a bug here. Please file a JIRA so that it gets fixed.
Thanks.
Derek
-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 27, 2006 9:44 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2-1.0] WSDL2Java
With the attached documents, I attempt to use WSDL2Java to build some empty classes for me, however, I get this error:java.lang.NullPointerException at org.apache.axis.wsdl.symbolTable.SymbolTable.populateServices
(SymbolTable.java:3069) at
19 matches
Mail list logo