Forum Discussion

micwic's avatar
13 years ago

Generated response causes Unexpected EOF in prolog

I just creating some web services mockup and i'm encountering exception in my application when parsing of the generated response.
After checking everything i don't detect any errors in my response.

The exception is:
ch.vd.helpdesk.monitoring.service.ws.WsServiceException: Cannot parse SOAP response body
...
Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [2,9]

The console log with the soap debugging info is hereafter:

---[HTTP request - http://MichelWicky-DPC:8088/mockWebServiceBinding]---
Content-type: text/xml;charset="utf-8"
Soapaction: "EZV_SYS_ExecuteInternalQuery"
Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:EZV_SYS_ExecuteInternalQuery xmlns:
ns2="http://dvlp-itsmb.etat-de-vaud.ch/outils/itsmb/WebService"><Account>40000</Account><Login>fleblanc</Login><Password></Password><requestguid>{1E13
C080-6398-4D31-A137-C08D3B5DD236}</requestguid><filterguid>{48949005-0DFA-43A7-8597-37025A8F2E7B}</filterguid><viewguid>{F254777F-47D1-4ED6-913D-FA334
A6F9044}</viewguid><iscount>0</iscount><maxlines>0</maxlines><custom_filter></custom_filter><send_php_object></send_php_object></ns2:EZV_SYS_ExecuteIn
ternalQuery></S:Body></S:Envelope>--------------------
---[HTTP response - http://MichelWicky-DPC:8088/mockWebServiceBinding - 200]---
Transfer-encoding: chunked
null: HTTP/1.1 200 OK
Content-type: text/xml; charset=iso-8859-1
Server: Jetty(6.1.x)
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xml
soap.org/soap/envelope/" xmlns:web="http://dvlp-itsmb.etat-de-vaud.ch/outils/itsmb/WebService">
<soapenv:Header/>
<soapenv:Body>
<web:EZV_SYS_ExecuteInternalQueryResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:string">
<dataset recordcount="0" sumsofar="0" identity="0" previouspage="0" nextpage="0">
<Fieldname _0="Emise le" _1="Statut" _2="N░ de demande" _3="Demandeur" _4="Sujet" _5="Description"/>
<Fieldtype _0="datetime" _1="char" _2="char" _3="char" _4="char" _5="Blob"/>
</dataset>
</return>
</web:EZV_SYS_ExecuteInternalQueryResponse>
</soapenv:Body>
</soapenv:Envelope>--------------------
No RepliesBe the first to reply