It appears the reason <?xml version="1.0" encoding="UTF-8"?> is not in the
response may be due to an error.  "ec" is in the place where .<?xml
version="1.0" encoding="UTF-8"?> should be.  Below is an actual response
from my web service:

HTTP/1.1 200 OK
Date: Tue, 05 Aug 2008 19:22:15 GMT
Server: IBM_HTTP_Server/2.0.47.1-PK29827 Apache/2.0.47 (Unix) DAV/2
X-Powered-By: Servlet/2.5
Transfer-Encoding: chunked
Content-Type: text/xml;charset=UTF-8

ec
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soap:Body
xmlns:ns1="http://www.iicmva.com/CoverageVerification/";>
2a3
<CoverageResponse
xmlns="http://www.iicmva.com/CoverageVerification/";><RequestorInformation><ReasonDetails><TrackingNumber>20080805-191626-218-104-3</TrackingNumber></ReasonDetails></RequestorInformation><Detail><PolicyInformation><CoverageStatus><ResponseDetails><ResponseCode>Unconfirmed</ResponseCode><UnconfirmedReasonCode>9</UnconfirmedReasonCode></ResponseDetails></CoverageStatus><OrganizationDetails><NAIC>29440</NAIC></OrganizationDetails><PolicyDetails><VerificationDate>2008-08-05T00:00:00.000</VerificationDate><UniqueKey>CP000056</UniqueKey><PolicyState>WY</PolicyState></PolicyDetails></PolicyInformation></Detail></CoverageResponse></soap:Body></soap:Envelope>
0


mike54321 wrote:
> 
> Using MyEclipse, I created a web service using Top-Down (WSDL-First) web
> service wizard which created all my classes including my exposed method. 
> The way my webservice works is I basically recieve an xml request as a
> parameter in a method of the implementation class.  The request is
> basically what's in the soap envelope and based on that information I
> create a response which is returned from the exposed method.  All I really
> do is instantiate the response object and add data...everything else is
> done for me.  At that point the response is wrapped in soap (by XFire I
> believe) and sent back to the requestor.  The problem is the business that
> is sending the request needs <?xml version="1.0" encoding="UTF-8"?> in the
> response right before the soap envelope, but instead they are getting the
> following which is directly followed by the soap envelope:
> 
> HTTP/1.1 200 OK
> Date: Tue, 05 Aug 2008 19:22:15 GMT
> Server: IBM_HTTP_Server/2.0.47.1-PK29827 Apache/2.0.47 (Unix) DAV/2
> X-Powered-By: Servlet/2.5
> Transfer-Encoding: chunked
> Content-Type: text/xml;charset=UTF-8
> 
> Is there anyway to add <?xml version="1.0" encoding="UTF-8"?> to my
> response right before the soap envelope?  Since the response I create is
> completely inside the soap envelope, I do not know how to add <?xml
> version="1.0" encoding="UTF-8"?> above the envelope.  It appears I do not
> have the ability to do that.  The business says without it, their parser
> does not know how to parse the contents of the soap envelope.
> 
> I would appreciate any help!
> 
> I attached the WSDL from which my web service was generated
> http://www.nabble.com/file/p18859063/IICMVA_CoverageVerification_J2EE_1.0.wsdl
> IICMVA_CoverageVerification_J2EE_1.0.wsdl 
> 

-- 
View this message in context: 
http://www.nabble.com/I-need-to-add-%3C-xml-version%3D%221.0%22-encoding%3D%22UTF-8%22-%3E-to-my-webservice-response-tp18859063p18859856.html
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to