curl-users
Unable to post to web service
Date: Thu, 22 Mar 2007 11:32:28 -0700 (PDT)
curl http://localhost:8080/axis/services/myService -H "SOAPAction:www.example.com" -H "Content-Type: application/text" -d @file.txt -X POST
returns : org.xml.sax.SAXParseException: Content is not allowed in prolog.
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://sc
hemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" x
mlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Faul
t><faultcode>soapenv:Server.userException</faultcode><faultstring>org.xml.sax.SA
XParseException: Content is not allowed in prolog.</faultstring><detail><ns1:hos
tname xmlns:ns1="http://xml.apache.org/axis/">machineName</ns1:hostname></det
ail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
Any help will be appreciated
thx
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news
Received on 2007-03-22