473,668 Members | 2,639 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error encounter " org.xml.sax.SAX Exception: Fatal Error" while running WSDL2Java tool

3 New Member
i have created wsdl file by running the following url
http://localhost:8080/axis4/services/MyService?wsdl

next i run "c:\java org.apache.axis .wsdl.WSDL2Java MyService.wsdl" it is giving following error
Expand|Select|Wrap|Line Numbers
  1. org.xml.sax.SAXException: Fatal Error: URI=file:///E:/Personal/SMat/My%20Fav/We
  2. Services/axis/axis-1_4/samples/userguide/example3/MyService.wsdl Line=2: Conten
  3. is not allowed in prolog.
  4. at org.apache.axis.utils.XMLUtils$ParserErrorHandler. fatalError(XMLUtil
  5. .java:723)
  6. at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.fatalErr
  7. r(ErrorHandlerWrapper.java:218)
  8. at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError
  9. XMLErrorReporter.java:386)
  10. at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError
  11. XMLErrorReporter.java:316)
  12. at com.sun.org.apache.xerces.internal.impl.XMLScanner .reportFatalError(
  13. MLScanner.java:1438)
  14. at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl$Prolo
  15. Dispatcher.dispatch(XMLDocumentScannerImpl.java:89 9)
  16. at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerIm
  17. l.scanDocument(XMLDocumentFragmentScannerImpl.java :368)
  18. at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(
  19. ML11Configuration.java:834)
  20. at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(
  21. ML11Configuration.java:764)
  22. at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(XMLParser
  23. java:148)
  24. at com.sun.org.apache.xerces.internal.parsers.DOMPars er.parse(DOMParser
  25. java:250)
  26. at com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl.parse(Do
  27. umentBuilderImpl.java:292)
  28. at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil s.java:369)
  29. at org.apache.axis.utils.XMLUtils.newDocument(XMLUtil s.java:420)
  30. at org.apache.axis.wsdl.symbolTable.SymbolTable.popul ate(SymbolTable.ja
  31. a:482)
  32. at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(P arser.java:361)
  33. at java.lang.Thread.run(Thread.java:595)
  34.  
can any body give the solution for the above problem.
Sep 20 '06 #1
1 2215
JaiseT
1 New Member
Hi Raheemulla,

This error happens only because of improper wsdl formation.
Check whether your wsdl file is well formed. U can use notepad++ for this.
I guess you have created your wsdl file by copying from the browser.This may contain unwanted characters that can lead to such fatal exceptions.

Regards,
Jaise

e-mail: <removed>
Sep 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
3009
by: Sam | last post by:
Guys facing a strange problem any clue would really rescue me.. i am using a ASP application with following things Server : Intel Xeon (TM) CPU 2GHz, 2GB RAM, 136GB HDD OS : Windows 2000 Advanced server. IIS5.0 Database: Oracle (Using ADODB to connect to the Database) App server running on the same machine (COM+)
3
1409
by: Gary McGill | last post by:
I have a C# solution with a dozen or so projects. There are references between the projects, and these were all added as "Project" references. Everything's been working fine for months, but suddenly today it all collapsed in a heap. I get a mysterious error when running the project: "The located assembly's manifest definition with name '<MyClass>' does not match the assembly reference" Using the fuslogvw tool I can see that the...
1
1960
by: PS | last post by:
Hi I have project in old C++ (not .NET). I have prepared .dll in C++.NET for this old project. Project compile without any errors but after execution I got error "Fatal execution engine error". Does anybody know where is problem? thanks in advance best regards P.
0
1437
by: gahagan | last post by:
If you encounter this error, most likely one of the controls you're trying to cut/paste is a combo box with a longer-than-average 'Row Source' value. That, apparently, is the problem. Shorter Row Source values don't seem to be a problem. (I don't have time to figure out at what length the error triggers.) Workaround: Remove the Row Source (you can cut/paste the text somewhere else), then try cutting/pasting the control(s) again. Then...
2
2698
by: Praveen Chandra | last post by:
Hi, I am trying to build a static library, while building the library i am getting the following error: fatal error C1189: #error : "No sstream/strstream implementation" Following is the code that is giving error: #ifdef HAVE_CONFIG_H
0
1943
by: Raheemulla Khan | last post by:
i have created wsdl file by running the following url http://localhost:8080/axis4/services/MyService?wsdl next i run "c:\java org.apache.axis.wsdl.WSDL2Java MyService.wsdl" it is giving following error org.xml.sax.SAXException: Fatal Error: URI=file:///E:/Personal/SMat/My%20Fav/We Services/axis/axis-1_4/samples/userguide/example3/MyService.wsdl Line=2: Conten is not allowed in prolog. at...
4
5478
by: keychain | last post by:
I'm experience the infamous "SSL: Fatal Protocol Error" bug with Apache 2.x According the fopen() documentation: "If you are using fsockopen() to create an ssl:// socket, you are responsible for detecting and suppressing the warning yourself." I have been unable to determine how to go about suppressing these warnings. Any help would be greatly appreciated.
1
7096
by: =?ISO-8859-1?Q?Lasse_V=E5gs=E6ther_Karlsen?= | last post by:
I get the above error in some of the ASP.NET web applications on a server, and I need some help figuring out how to deal with it. This is a rather long post, and I hope I have enough details that someone who bothers to read all of it have some pointers. Note, I have posted the stack trace and the code exhibiting the problem further down so if you want to start by reading that, search for +++ Also note that I am unable to reproduce...
3
1820
by: sachinv1821 | last post by:
hi , i am Getting this Error fatal error C1189: #error : "eh.h is only for C++!" my Problem is i am Having C++ librabry and Appropriate .h file i want to Access Them is .c File Files..... to Be More Specific i am Creating a C++ Object in a C file... this Giving me the error!!! :( can Any Body Please Help me
9
21332
by: billelev | last post by:
I have the following vba code that returns the "date modified" field from a file, specified in filepath: Function GetFileModifiedDate(filepath As String) As Date Dim fs, f Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile(filepath) GetFileModifiedDate = f.datelastmodified
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7401
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2791
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.