aspose file tools*
The moose likes Web Services and the fly likes The entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "The entity "nbsp" was referenced, but not declared." Watch "The entity "nbsp" was referenced, but not declared." New topic
Author

The entity "nbsp" was referenced, but not declared.

Srikanth Kumar
Ranch Hand

Joined: Jun 04, 2008
Posts: 36
I have developed a small web services application and deployed at JBoss using axis2.
when generate the client code using wsdl2java, i'm getting an exception. below is the stacktrace.



Could any one help me? what went wrong?


Srikanth Kumar
SCJP 5, SCWCD 5, SCDJWS 5
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1164
Have a look please at The entity "nbsp" was referenced, but not declared

Regards,
Dan


William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Replace   with   and you are all set to go.

Thanks,
Rahul


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
pete reisinger
Ranch Hand

Joined: Dec 30, 2009
Posts: 46
prepend:

<?xml version="1.0"?>
<!DOCTYPE some_name [
<!ENTITY nbsp "&#160;">
]>

then parse the string
This will replace all nbsp entities for the xml ones
Kedar Lasane
Greenhorn

Joined: Jun 06, 2012
Posts: 1
pete reisinger wrote:prepend:

<?xml version="1.0"?>
<!DOCTYPE some_name [
<!ENTITY nbsp "&#160;">
]>

then parse the string
This will replace all nbsp entities for the xml ones


-----------------------------------------
Thank you Dear.Because of your above help I am able to remove some xml errors.
Thanks Lot Once Again
Kedar Lasane
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The entity "nbsp" was referenced, but not declared.
 
Similar Threads
reading soap-envelop messages
Axis2 1.4 Problem in generating code
WSDL parse error
Trouble generating Exchange web service client using Axis2
ConnectionException and few Doubts