I happen to be having a similar error, although it isn't an endpoint issue.
 
The response we are getting back from the server looks like this:
 
??< ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " u t f - 8 " ? > < s o a p : E n v e l o p e   x m l n s : s o a p = " h t t p : / / s c h e m a s . x m l s o a p . o r g / s o a p / e n v e l o p e / "   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e "   x m l n s : x s d = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a " > < s o a p : H e a d e r > < R e s p o n s e H e a d e r   x m l n s = " h t t p : / / b l a h . c o m / C A S / " > < H e a d e r s > < / H e a d e r s > < / R e s p o n s e H e a d e r > < / s o a p : H e a d e r > < s o a p : B o d y > < G e t A c c o u n t I n f o r m a t i o n R e s p o n s e   x m l n s = " h t t p : / / b l a h . c o m / C A S / " > < A c c o u n t I n f o r m a t i o n R e s p o n s e   x m l n s : x s d = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a "   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e "   x m l n s = " h t t p : / / b l a h . c o m / C A S / I V R . M e s s a g e D e f i n i t i o n s . x s d " >
 
     < N u m b e r O f M a t c h e s > 0 < / N u m b e r O f M a t c h e s >
 
     < M o n t h l y E x t e n s i o n A m o u n t > 0 < / M o n t h l y E x t e n s i o n A m o u n t >
    
     ....
 
with garbage characters inserted between each legit XML character (and two before the prolog).
 
Is it possible to add a handler to modify the raw response XML before Axis passes it off to the XML parser? Does anyone know? Is there some other simple setting I might be overlooking that might be causing this?
 
Thanks in advance.

-----Original Message-----
From: Luanne Coutinho [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 1:18 AM
To: [email protected]
Subject: RE: Content is not allowed in prolog

Hi,

 

Turns out that the endpoint supplied by our client was wrong! I wonder why Axis kept throwing this particular error…

 

-Luanne

 

 

-----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