Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF Web HTTP Service Help Page
    primarykey
    data
    text
    <p>I have created a simple Northwind's Product REST Web Service in WCF at <code>/Northwind/Product</code>. I have also enabled WCF Web HTTP Service Help Page on my service, which is at <code>/Northwind/Product/help</code>. I have a "GET" operation and its help page is located at: <code>/Northwind/Product/help/operations/Get</code>, which is your standard WCF help page that displays the Xml body, Json body, Xml Schema and Additional Xml Schemas. Pretty straight forward, right? Okay now, on to the fun stuff...</p> <p>I am interested in the Xml Schema section, which is: </p> <pre><code>&lt;xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; &lt;xs:complexType name="Product"&gt; &lt;xs:sequence&gt; &lt;xs:element minOccurs="0" name="CategoryID" nillable="true" type="xs:int" /&gt; &lt;xs:element minOccurs="0" name="Discontinued" type="xs:boolean" /&gt; &lt;xs:element minOccurs="0" name="ProductID" type="xs:int" /&gt; &lt;xs:element minOccurs="0" name="ProductName" nillable="true" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="QuantityPerUnit" nillable="true" type="xs:string" /&gt; &lt;xs:element minOccurs="0" name="ReorderLevel" nillable="true" type="xs:short" /&gt; &lt;xs:element minOccurs="0" name="SupplierID" nillable="true" type="xs:int" /&gt; &lt;xs:element minOccurs="0" name="UnitPrice" nillable="true" type="xs:decimal" /&gt; &lt;xs:element minOccurs="0" name="UnitsInStock" nillable="true" type="xs:short" /&gt; &lt;xs:element minOccurs="0" name="UnitsOnOrder" nillable="true" type="xs:short" /&gt; &lt;/xs:sequence&gt; &lt;/xs:complexType&gt; &lt;xs:element name="Product" nillable="true" type="Product" /&gt; &lt;/xs:schema&gt; </code></pre> <p>I am interested in it because of the datatypes. I want to know the datatypes of the elements. Now, I understand that's not the fundamentals of REST. However, I don't want SOAP objects here. I want to keep my services simple and loosely typed and yet still be aware of their datatypes when needed.</p> <p>My question is, how can I expose just this particular section of the help file? If I cannot do that, what are my other options for achieving what I am trying to do here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload