You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Yung, Nimchi A, ALCAS" <ny...@att.com> on 2002/06/13 19:34:05 UTC

a newbie question

Hi,

I am a newbie on web service. Hope I can get some expert advice here.

I am trying to send a request to a web service running in the intranet.
My test program is similar to the axis's samples\userguide\example1\TestClient.java
by setting up endpoint and parameters.

I got the following error:
org.xml.sax.SAXParseException: Content is not allowed in prolog.

Can someone tell me what this means?  

TIA,
Nimchi



Re: a newbie question

Posted by Heitzso <he...@bellsouth.net>.
suggest you provide a sample of your client code that's setting
up the call.  

I've never hit that and I've written quite a few clients for 
axis servers in axis, pocketsoap, and mozilla javascript soap.

Also would be useful if you're running on *nix to use tcpflow
and capture the actual traffic.  That's usually a very fast
way to sort out what's going wrong.  Windows side you can use
tcp tunnel, or PocketSOAP's tools to capture the http traffic.

Heitzso

On Thu, 2002-06-13 at 13:34, Yung, Nimchi A, ALCAS wrote:
> Hi,
> 
> I am a newbie on web service. Hope I can get some expert advice here.
> 
> I am trying to send a request to a web service running in the intranet.
> My test program is similar to the axis's samples\userguide\example1\TestClient.java
> by setting up endpoint and parameters.
> 
> I got the following error:
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 
> Can someone tell me what this means?  
> 
> TIA,
> Nimchi
> 
> 



Re: a newbie question

Posted by Lyndon Durham <ne...@verizon.net>.
It probably means that the xml generated by your code is not compliant 
with the xml standard expected by the parser your using. That's just my 
thought of the top of my head. 


AW: a newbie question

Posted by Till Woerner <ti...@twoerner.de>.
Hello.

Mmmhhh, are you sending attachments? I only had this error when sending
attachments and did not have mail.jar in my classpath.
But anyway. Try adding mail.jar to the classpath.
Hope it helps.

Greetings,
Till

> 
> Hi,
> 
> I am a newbie on web service. Hope I can get some expert advice here.
> 
> I am trying to send a request to a web service running in the 
> intranet. My test program is similar to the axis's 
> samples\userguide\example1\TestClient.java
> by setting up endpoint and parameters.
> 
> I got the following error:
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> 
> Can someone tell me what this means?  
> 
> TIA,
> Nimchi
> 
>