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