aspose file tools*
The moose likes Web Services and the fly likes Axis2 1.4 Problem in generating code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 1.4 Problem in generating code" Watch "Axis2 1.4 Problem in generating code" New topic
Author

Axis2 1.4 Problem in generating code

Rizwan Patel
Ranch Hand

Joined: Jan 03, 2008
Posts: 59

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.


scjp 1.5, OCPJWSD 5
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
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

Joined: Jan 03, 2008
Posts: 59

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

Joined: Apr 04, 2013
Posts: 1
You may have blank space/blank line before <?xml.....>

Just remove that and build again. You should be fine..
 
jQuery in Action, 2nd edition
 
subject: Axis2 1.4 Problem in generating code