Good Morning Tom-

Ive noticed that message appears when there whitespace characters in the beginning part of the WSDL (in other words the WSDL is not well-formed XML)
Can you show us the WSDL or use perhaps Altova utilities to verify the XML is valid?

Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.
 

 
----- Original Message -----
Sent: Friday, June 30, 2006 12:16 AM
Subject: RE: Content is not allowed in prolog

Hi Tom,

 

I’m using Axis 1.4, though I tried with 1.3 as well.

Regarding attachments, I do not think I am using any, though activation.jar and mail.jar are both present.

 

What else could be the problem?

 

Thanks,

Luanne Misquitta

-----Original Message-----
From:
Luanne Coutinho
Sent: Friday, June 30, 2006 9:41 AM
To:
Luanne Coutinho
Subject:

 

Hello,
 
I had this same error before.  Question though, what version of Axis are 
you using?  Also if you are
using any attachments in your program, you need to include the 
activation.jar.
 
Tom
 
 
Luanne Coutinho wrote:
>
> Hi,
>
>  
>
> I used wsdl2Java to generate stubs so that I can access a web service 
> hosted elsewhere.
>
> I wrote a test program to invoke an operation, but I keep getting this 
> error:
>
>  
>
> AxisFault
>
>  faultCode: 
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
>
>  faultSubcode:
>
>  faultString: org.xml.sax.SAXParseException: Content is not allowed in 
> prolog.
>
>  faultActor:
>
>  faultNode:
>
>  faultDetail:
>
>             
> {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: 
> Content is not allowed in prolog.
>
>             at 
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
> Source)
>
>             at 
> org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
>
>             at 
> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>
>             at 
> org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
>
>             at 
> org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
>
>             at 
> org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown 
> Source)
>
>             at 
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
> Source)
>
>             at 
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>
>             at 
> org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
>
>             at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>
>             at 
> org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>
>             at 
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
>
>             at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>
>             at 
> org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
>
>             at 
> org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
>
>             at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
>
>             at 
> org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
>
>             at 
> org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
>
>             at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
>
>             at org.apache.axis.client.Call.invoke(Call.java:2767)
>
>             at org.apache.axis.client.Call.invoke(Call.java:2443)
>
>             at org.apache.axis.client.Call.invoke(Call.java:2366)
>
>             at org.apache.axis.client.Call.invoke(Call.java:1812)
>
>  
>
> Could someone please help? I have tried all sugestions from this 
> mailing list, but none have resolved the problem.
>
>  
>
> Thanks
>
> Luanne Misquitta
>
>  
>
 
 
-
 
 
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

 

Reply via email to