Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis2 1.4 Problem in generating code

 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am trying to generate the code using axis2 utility wsdl2java.

Below is the error message which popped up with the stack trace as shown :


Please assist me where to look for resolving the above issue.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rizwan Patel:




"A processing instruction (PI) is a tag that encodes specific application information which begins with <? and ends with ?>"

At the very beginning of a WSDL you'll often find the XML declaration:


Sounds like it's reading something like

and getting confused.

It's difficult to tell any more without seeing the WSDL.
[ December 03, 2008: Message edited by: Peer Reynders ]
 
Rizwan Patel
Ranch Hand
Posts: 59
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peer Reynders,
As par your guidance I had checked with the first line for PI in my wsdl
and I found that there is one "space" is extra at the starting of the PI and which causing this problem
I had removed that extra space from start and its working fine now.
Thank you very much
 
Don Samson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have blank space/blank line before <?xml.....>

Just remove that and build again. You should be fine..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic