Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Web Services and the fly likes Axis2 1.4 Problem in generating code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply 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: 2906
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 ]

"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 1.4 Problem in generating code
 
Similar Threads
Problem with iBatis
The entity "nbsp" was referenced, but not declared.
ConnectionException and few Doubts
reading soap-envelop messages
Axis2 Questions