<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>4253</bug_id>
          
          <creation_ts>2007-01-17 23:20:20 +0000</creation_ts>
          <short_desc>[Primer] Basic Concepts section on Policy does not explain usage reasonably</short_desc>
          <delta_ts>2007-03-13 21:40:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Policy</product>
          <component>Primer</component>
          <version>FPWD</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/ws-policy-primer.html?content-type=text/html;%20charset=utf-8#simple-message</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>4142</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="William Henry">william.henry</reporter>
          <assigned_to name="Felix Sasaki">fsasaki</assigned_to>
          
          
          <qa_contact name="Web Services Policy WG QA List">public-ws-policy-qa</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13680</commentid>
    <comment_count>0</comment_count>
    <who name="William Henry">william.henry</who>
    <bug_when>2007-01-17 23:20:20 +0000</bug_when>
    <thetext>Title: Basic Concepts section to Policy in primer does not explain attachment

Description: Section 2.2. is basically an introduction to to why someone might use policy and explains this from the point of view of a simple SOAP message that wants to use WS-Addressing.  The section then shows a simple policy to cover this case. However the example just mentions that the policy can be attached to the WSDL binding. It doesn&apos;t show how this is done. Surely this is fundamental for a new user of Policy. I think that this first example should demonstrate how the policy might be simply attached to a binding in a WSDL. 

Justification: For a new user of WS-Policy thePrimer should be explaining why you might use policy (this section does that), and how you would use a policy - two parts a) how to express it (section does that) and b) how to use the expression (section just mentions this but does not show an example - a simple one would suffice).

Proposal: Change this section to add an example that shows the policy defined in the example attached to a binding in the WSDL. 

&lt;wsdl:binding name=&quot;AddressingBinding&quot; type=&quot;tns:RealTimeDataInterface&quot; &gt;
  &lt;Policy&gt;
  	&lt;wsap:UsingAddressing /&gt;
  &lt;/Policy&gt;
  &lt;wsdl:operation name=&quot;GetRealQuote&quot;&gt;&lt;/wsdl:operation&gt;
  
&lt;/wsdl:binding&gt;

Notice that this example does not use any references but shows the most basic way of attaching to a binding.

The section can then point to the section on How to attach Policy to WSDL.

Note: Referencing the attachment section will not suffice as the attachment section only shows how to attach using a reference. (separate issue to be raised)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13989</commentid>
    <comment_count>1</comment_count>
    <who name="William Henry">william.henry</who>
    <bug_when>2007-02-14 16:48:49 +0000</bug_when>
    <thetext>Proposal - add the following text to section 2-2 - Replace the paragraph under example 2-2 with the following and modify the subsequent example numbers by incrementing.

The policy expression in the above example consists of a Policy main element and a child element wsap:UsingAddressing. Child elements of the Policy element are policy assertions. Contoso attaches the above policy expression to a WSDL binding description.

Example 2-3. Policy Expression Attached to Binding
&lt;wsdl:binding name=&quot;AddressingBinding&quot; type=&quot;tns:RealTimeDataInterface&quot; &gt;
  &lt;Policy&gt;
    &lt;wsap:UsingAddressing /&gt;
  &lt;/Policy&gt;
  ...
&lt;/wsdl:binding&gt;

Policies can also be attached to WSDL using references (See 2.10 Attaching Policy Expressions to WSDL.)

&lt;----END OF TEXT ----&gt;
HTML for the editors to add:

The policy expression in the above example consists of a &lt;code&gt;Policy&lt;/code&gt; main element and a child element &lt;code&gt;wsap:UsingAddressing.&lt;/code&gt; Child elements of the &lt;code&gt;Policy&lt;/code&gt; element are policy assertions. Contoso attaches the above policy expression to a WSDL binding description.&lt;/p&gt;&lt;div class=&quot;exampleOuter&quot;&gt;&lt;p style=&quot;text-align: left&quot; class=&quot;exampleHead&quot;&gt;&lt;i&gt;&lt;span&gt;Example 2-3. &lt;/span&gt;Policy Expression Attached to Binding&lt;/i&gt;&lt;/p&gt;&lt;div class=&quot;exampleInner&quot;&gt;&lt;pre&gt;&amp;lt;wsdl:binding name=&quot;AddressingBinding&quot; type=&quot;tns:RealTimeDataInterface&quot; &amp;gt;
  &amp;lt;Policy&amp;gt;
    &amp;lt;wsap:UsingAddressing /&amp;gt;
  &amp;lt;/Policy&amp;gt;
  ...
&amp;lt;/wsdl:binding&amp;gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

Policies can also be attached to WSDL using references (See &lt;a href=&quot;#attaching-policy-expressions-to-wsdl&quot;&gt;&lt;b&gt;2.10 Attaching Policy Expressions to WSDL&lt;/b&gt;&lt;/a&gt; ).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14404</commentid>
    <comment_count>2</comment_count>
    <who name="Christopher Ferris">chrisfer</who>
    <bug_when>2007-03-13 21:40:17 +0000</bug_when>
    <thetext>[17:38] cferris: RESOLUTION: 4253 and 5255 closed with proposals from William in http://lists.w3.org/Archives/Public/public-ws-policy/2007Feb/0078.html and http://lists.w3.org/Archives/Public/public-ws-policy/2007Feb/0076.html
[17:39] cferris: rrsagent, where am i?
[17:39] RRSAgent: See http://www.w3.org/2007/03/13-ws-policy-irc#T21-39-50</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>