Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Using VS 2010 and FW 4.0, I cerated a testing WCF service. The WebMethod retrieves a table from a DB, and then returns a DataTable. I published the service in IIS. Then I viewed it in both IE and Firefox. In IE, the WSDL displays like that below:
XML
<?xml version="1.0"?>
-<GetDataTableResponse xmlns="http://tempuri.org/">-<GetDataTableResult>-<xs:schema xmlns="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" id="NewDataSet">-<xs:element msdata:UseCurrentLocale="true" msdata:MainDataTable="FENCEGATE" msdata:IsDataSet="true" name="NewDataSet">+<xs:complexType>----</xs:element></xs:schema>-<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">-<NewDataSet xmlns="">-<FENCEGATE diffgr:id="FENCEGATE1" msdata:rowOrder="0"><ID>1</ID><ASSETNUM>T82830</ASSETNUM><PARENT>TJR2</PARENT><LOCATION>J</LOCATION><DESCRIPTION>EXIT GATE CM781+00</DESCRIPTION><WT_MAINT_OFFICE>TRST-STRC</WT_MAINT_OFFICE><WT_START_CM>781</WT_START_CM><WT_START_OFFSET>0</WT_START_OFFSET><WT_START_Y_OFFSET>16</WT_START_Y_OFFSET><WT_END_CM>781</WT_END_CM><WT_END_OFFSET>0</WT_END_OFFSET><WT_END_Y_OFFSET>16</WT_END_Y_OFFSET></FENCEGATE>

In Firefox, it warns:
SQL
This XML file does not appear to have any style information associated with it. The document tree is shown below.

and it displays xs:schema id=..., xs:element name=..., and then the dataset part. It does not have the part in IE
VB
<?xml version="1.0"?>
-<GetDataTableResponse xmlns="http://tempuri.org/">-<GetDataTableResult>-<xs:schema xmlns="" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:xs="http://www.w3.org/2001/XMLSchema" ...


My Q's:
1) What does the Firefox warning mean?
2) What will be the possible impact?
Thanks.
Posted
Comments
Jason Gleim 6-Sep-13 9:46am    
As a point of order, what you are seeing in the browsers is NOT the WSDL. The WSDL is the document that describes the service endpoints and what the expect/return. Firefox is showing you the response wrapper from the service with the data contained in-line because it can't decide how to decode the response. IE recognizes that what it received is a service response and so it strips the wrapper and presents the resulting XML response. That is why you are seeing different results.

You might want to look at tools like SoapUI and Fiddler if you are debugging web service calls.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900