Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 140607 - SOAP Request message in WSE source view gives error in firefox
Summary: SOAP Request message in WSE source view gives error in firefox
Status: CLOSED FIXED
Alias: None
Product: WTP Webservices
Classification: WebTools
Component: wst.ws (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.5 RC3   Edit
Assignee: Mark Hutchinson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-08 12:21 EDT by Mark Hutchinson CLA
Modified: 2006-06-13 11:51 EDT (History)
0 users

See Also:


Attachments
patch for org.eclipse.wst.ws.explorer plugin (1.78 KB, patch)
2006-05-08 16:54 EDT, Mark Hutchinson CLA
no flags Details | Diff
screenshot (45.30 KB, image/png)
2006-05-09 13:25 EDT, Mark Hutchinson CLA
no flags Details
patch #2 for org.eclipse.wst.ws.explorer plugin (1.86 KB, patch)
2006-05-12 15:35 EDT, Mark Hutchinson CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hutchinson CLA 2006-05-08 12:21:03 EDT
On the WSDL page of the web service explorer, the source view of the actions frame shows the soap request and response envelopes. The SOAP Request envelope Iframe displays an XML parsing error message in firefox.

XML Parsing Error: xml processing instruction not at start of external entity
Location:
http://localhost:56372/wsexplorer/wsdl/soap_envelope_xml.jsp?soapEnvelopeType=0
Line Number 6, Column 1:<?xml version="1.0" encoding="UTF-8"?>
Comment 1 Chris Brealey CLA 2006-05-08 12:54:21 EDT
Mark, I found some references to this message on Google which (along with the text of the message itself) suggest the problem may be the presence of one or more whitespace characters before the '<' at the beginning of the processing directive. Have a close look at the XML fragment/document being rendered for any such unwanted, leading characters.
Comment 2 Mark Hutchinson CLA 2006-05-08 16:54:35 EDT
Created attachment 40647 [details]
patch for org.eclipse.wst.ws.explorer plugin
Comment 3 Mark Hutchinson CLA 2006-05-08 16:55:19 EDT
There were several newlines appearing before the <?xml ... ?> processing directive causing this error.

This patch simply removes newlines from the soap_envelope_xml.jsp file eliminating those new lines and fixing the problem.
Comment 4 Chris Brealey CLA 2006-05-09 08:58:28 EDT
Thanks Mark.
Fix reviewed, approved, committed and released under tag v200605091300.
Comment 5 Chris Brealey CLA 2006-05-09 08:58:46 EDT
Thanks Mark.
Fix reviewed, approved, committed and released under tag v200605091300.
Comment 6 Mark Hutchinson CLA 2006-05-09 13:25:20 EDT
Created attachment 40770 [details]
screenshot

My patch fixes the error, but for some reason Firefox still  is not displaying request envelope correctly.  Sometimes the browser is not formatting the contents of this iframe as XML (only the text is shown). see the screenshot

If the contents of the iframe are saved and opened in seperate firefox window the xml displays correctly.  Also right clicking in the iframe and reloading the frame makes it display correctly as well.
Comment 7 Mark Hutchinson CLA 2006-05-10 11:10:28 EDT
Reopening bug until issue described above is resolved.
Comment 8 Mark Hutchinson CLA 2006-05-12 15:35:12 EDT
Created attachment 41366 [details]
patch #2 for org.eclipse.wst.ws.explorer plugin
Comment 9 Mark Hutchinson CLA 2006-05-12 15:44:28 EDT
This seems like a strange firefox quirk. Looking through the firefox bugzilla there have been problems of xml not being displayed correctly.  I did not look too thoroughly through them, but I think this problem might be related.

Since the contents of the request envelope IFrame have always displayed correctly once the iframe has been reloaded, this patch reloads the contents of the frame once.  This patch seems to work, and is the easiest workaround for this problem that I can see.
Comment 10 Chris Brealey CLA 2006-05-15 17:17:29 EDT
Thanks Mark. Reviewed, approved for RC3 and committed.
Comment 11 Kathy Chan CLA 2006-05-15 22:38:45 EDT
Released to WTP 1.5 RC3 as v200605160236.
Comment 12 Chris Brealey CLA 2006-06-13 11:51:34 EDT
Closed.