<?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>6411</bug_id>
          
          <creation_ts>2009-01-14 00:13:30 +0000</creation_ts>
          <short_desc>MEX: no way to create metadata</short_desc>
          <delta_ts>2009-10-13 22:46:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Resource Access</product>
          <component>MetadataExchange</component>
          <version>FPWD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/public-ws-resource-access/2009Jan/0026.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>hasProposal</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Doug Davis">dug</reporter>
          <assigned_to name="Doug Davis">dug</assigned_to>
          <cc>bob</cc>
          
          <qa_contact name="notifications mailing list for WS Resource Access">public-ws-resource-access-notifications</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23057</commentid>
    <comment_count>0</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2009-01-14 00:13:30 +0000</bug_when>
    <thetext>Using MEX and WS-Transfer a client can retrieve, manipulate and even 
delete the metadata of an endpoint.  However, there is no mechanism to 
create it.  This seems like a criticial piece missing from the complete 
picture.

Proposal:
Add the ability for a client to create metadata for an endpoint.
No concrete proposal yet but I can think of two possible solutions:

1 - define a CreateMetadata(dialect, identifier, data) type of operation 
in MEX that an endpoint can support.  This is probably the easiest.

2 - Merge T and MEX.  Yes this is much bigger than #1 but its something 
I&apos;ve been wondering about for a while and would like to at least have a 
discussion of it.

If you think of the XML representation of a resource and its metadata as 
just &quot;data about the resource&quot;, then it seems odd to force extra(or 
special) steps to be taken when dealing with metadata.  For example, to 
get the state of a resource you can just use T/RT to retrieve just that 
one chunk of XML. But to get part of the metadata of a resource you must 
use mex.GetMetadata() and then use T/RT to get the data of interest.  Why 
not just treat the metadata as another variant of the resource&apos;s data?  So 
the basic idea is to extend the Transfer operations with an optional 
&apos;view&apos; or &apos;dialect&apos; attribute that specific which piece of data its 
operating on.  For example
   transfer.get() is what we have today - gets the xml represenation of 
the resource
   transfer.get(&quot;wsdl&quot;) retrieves the wsdl
   transfer.put(&quot;wsdl&quot;,data) creates/updates the wsdl of the resource</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24246</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2009-03-14 17:53:00 +0000</bug_when>
    <thetext>Action-26</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26035</commentid>
    <comment_count>2</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2009-07-22 02:00:50 +0000</bug_when>
    <thetext>Proposal:

In MEX define a new operation:

&lt;wsmex:CreateMetadata ...&gt;
  &lt;wsmex:Metadata&gt;
    xs:any *
  &lt;/wsmex:Metadata&gt;
  xs:any *
&lt;/wsmex:CreateMetadata&gt;

&lt;wsmex:CreateMetadataResponse ...&gt;
  xs:any *
&lt;/wsmex:CreateMetadataResponse&gt;

This will add the specified metadata to the resource.  Note that the metadata
could be either the data itself or a reference to it.  If metadata with 
the same Dialect/ID combo already exists then it will be replaced.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26388</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2009-08-13 11:48:14 +0000</bug_when>
    <thetext>2009-08-06:
Agreement on direction. Add operations to MEX to expose factory EPR so that TRANSFER optional operation may be used on the factory EPR to create/modify metadata.
Action on Doug to create proposal along these lines</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26667</commentid>
    <comment_count>4</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2009-08-25 22:29:27 +0000</bug_when>
    <thetext>proposal:
http://lists.w3.org/Archives/Public/public-ws-resource-access/2009Aug/0063.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>