Changeset 3048

Show
Ignore:
Timestamp:
11/16/10 00:14:09
Author:
douglm
Message:

Further exchange synch changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/resources/exsynchwsdefs/wsmessages.xsd

    r3046 r3048  
    3333      <enumeration value="Invalid token" /> 
    3434      <enumeration value="Unknown subscription" /> 
     35      <enumeration value="No Access" /> 
     36      <enumeration value="Service Stopped" /> 
    3537      <enumeration value="Error" /> 
    3638    </restriction> 
    3739  </simpleType> 
     40   
     41  <complexType name="base-synch-request"> 
     42    <annotation> 
     43      <documentation xml:lang="en"> 
     44           Requests have this as the base type. 
     45      </documentation> 
     46    </annotation> 
     47    <sequence> 
     48      <element name="calendar-href" type="string" /> 
     49      <element name="principal-href" type="string" /> 
     50      <element name="synch-token" type="string" /> 
     51    </sequence> 
     52  </complexType> 
     53   
     54  <complexType name="base-synch-response"> 
     55    <annotation> 
     56      <documentation xml:lang="en"> 
     57           Responses have this as the base type. 
     58      </documentation> 
     59    </annotation> 
     60    <sequence> 
     61      <element name="subscribe-status" type="tns:StatusType" /> 
     62    </sequence> 
     63  </complexType> 
    3864   
    3965  <!-- ********************************************************************* 
     
    4369       ********************************************************************* --> 
    4470   
    45   <element name="subscribe"> 
     71  <complexType name="subscribe-request-type"> 
    4672    <annotation> 
    4773      <documentation xml:lang="en"> 
     
    5985      </documentation> 
    6086    </annotation> 
    61     <complexType> 
    62       <sequence > 
    63         <element name="token" type="string" /> 
    64         <element name="calendar-href" type="string" /> 
    65         <element name="principal-href" type="string" /> 
    66         <element name="synch-token" type="string" /> 
    67         <element name="exchange-folder-id" type="string" /> 
    68         <element name="exchange-uri" type="string" /> 
    69         <element name="synch-type" type="tns:SynchType" /> 
    70         <element name="exchange-user" type="string" /> 
    71         <element name="exchange-encpw" type="string" /> 
    72       </sequence> 
    73     </complexType> 
    74   </element> 
    75    
    76   <element name="subscribeResponse"> 
     87    <complexContent mixed="false"> 
     88      <extension base="tns:base-synch-request"> 
     89        <sequence > 
     90          <element name="token" type="string" /> 
     91          <element name="exchange-folder-id" type="string" /> 
     92          <element name="exchange-uri" type="string" /> 
     93          <element name="synch-type" type="tns:SynchType" /> 
     94          <element name="exchange-user" type="string" /> 
     95          <element name="exchange-encpw" type="string" /> 
     96        </sequence> 
     97      </extension> 
     98    </complexContent> 
     99  </complexType> 
     100 
     101  <element name="subscribe" type="tns:subscribe-request-type" /> 
     102   
     103  <complexType name="subscribe-response-type"> 
    77104    <annotation> 
    78105      <documentation xml:lang="en"> 
     
    80107      </documentation> 
    81108    </annotation> 
    82     <complexType> 
    83       <sequence > 
    84         <element name="calendar-href" type="string" /> 
    85         <element name="subscribe-status" type="tns:StatusType" /> 
    86         <element minOccurs="0" name="message" type="string" /> 
    87       </sequence> 
    88     </complexType> 
    89   </element> 
    90    
    91   <element name="unsubscribe"> 
    92     <annotation> 
    93       <documentation xml:lang="en"> 
    94            Message from remote service unsubscribing - same response as subscribe. 
    95       </documentation> 
    96     </annotation> 
    97     <complexType> 
    98       <sequence> 
    99         <element name="calendar-href" type="string" /> 
    100         <element name="principal-href" type="string" /> 
    101       </sequence> 
    102     </complexType> 
    103   </element> 
     109    <complexContent mixed="false"> 
     110      <extension base="tns:base-synch-response"> 
     111        <sequence > 
     112          <element name="subscription-id" type="string" /> 
     113          <element minOccurs="0" name="message" type="string" /> 
     114        </sequence> 
     115      </extension> 
     116    </complexContent> 
     117  </complexType> 
     118 
     119  <element name="subscribe-response" type="tns:subscribe-response-type" /> 
     120   
     121  <complexType name="unsubscribe-request-type"> 
     122    <annotation> 
     123      <documentation xml:lang="en"> 
     124           Message from remote service unsubscribing. 
     125      </documentation> 
     126    </annotation> 
     127    <complexContent mixed="false"> 
     128      <extension base="tns:base-synch-request"> 
     129        <sequence > 
     130          <element name="subscription-id" type="string" /> 
     131        </sequence> 
     132      </extension> 
     133    </complexContent> 
     134  </complexType> 
     135 
     136  <element name="unsubscribe" type="tns:unsubscribe-request-type" /> 
     137   
     138  <complexType name="unsubscribe-response-type"> 
     139    <annotation> 
     140      <documentation xml:lang="en"> 
     141           Response to message from remote service requesting unsubscription. 
     142      </documentation> 
     143    </annotation> 
     144    <complexContent mixed="false"> 
     145      <extension base="tns:base-synch-response"> 
     146      </extension> 
     147    </complexContent> 
     148  </complexType> 
     149 
     150  <element name="unsubscribe-response" type="tns:unsubscribe-response-type" /> 
    104151   
    105152  <!-- ********************************************************************* 
     
    113160       ********************************************************************* --> 
    114161   
    115   <element name="start-service-notification"> 
     162  <complexType name="start-service-notificationType"> 
    116163    <annotation> 
    117164      <documentation xml:lang="en"> 
     
    122169      </documentation> 
    123170    </annotation> 
    124     <complexType> 
    125       <sequence> 
    126         <element name="subscribe-url" type="string" /> 
    127         <element name="token" type="string" /> 
    128       </sequence> 
    129     </complexType> 
    130   </element> 
    131    
    132   <element name="start-service-response"> 
     171    <sequence> 
     172      <element name="subscribe-url" type="string" /> 
     173      <element name="token" type="string" /> 
     174    </sequence> 
     175  </complexType> 
     176   
     177  <element name="start-service-notification"  
     178           type="tns:start-service-notificationType" /> 
     179   
     180  <complexType name="start-service-response-type"> 
    133181    <annotation> 
    134182      <documentation xml:lang="en"> 
     
    138186      </documentation> 
    139187    </annotation> 
    140     <complexType> 
    141       <sequence
    142         <element name="token" type="string" /> 
    143         <element name="status" type="tns:StatusType" /
    144       </sequence> 
    145     </complexType> 
    146   </element
    147    
    148   <element name="get-sycnch-info"> 
     188    <sequence> 
     189      <element name="token" type="string" /
     190      <element name="status" type="tns:StatusType" /> 
     191    </sequence
     192  </complexType> 
     193 
     194  <element name="start-service-response" type="tns:start-service-response-type" /
     195   
     196  <complexType name="get-sycnch-info-type"> 
    149197    <annotation> 
    150198      <documentation xml:lang="en"> 
     
    152200      </documentation> 
    153201    </annotation> 
    154     <complexType> 
    155       <sequence> 
    156         <element name="calendar-href" type="string" /> 
    157         <element name="principal-href" type="string" /> 
    158         <element name="synch-token" type="string" /> 
    159       </sequence> 
    160     </complexType> 
    161   </element> 
     202    <complexContent mixed="false"> 
     203      <extension base="tns:base-synch-request"/> 
     204    </complexContent> 
     205  </complexType> 
     206   
     207  <element name="get-sycnch-info" type="tns:get-sycnch-info-type" /> 
    162208   
    163209  <complexType name="SynchInfoType"> 
     
    168214  </complexType> 
    169215   
    170   <element name="synch-info-response"> 
     216  <complexType name="synch-info-response-type"> 
    171217    <annotation> 
    172218      <documentation xml:lang="en"> 
     
    174220      </documentation> 
    175221    </annotation> 
    176     <complexType> 
    177       <sequence
    178         <element name="calendar-href" type="string" /
    179         <element name="synch-info-responses"
    180           <complexType> 
    181             <sequence> 
    182               <element maxOccurs="unbounded" name="synch-info"  
    183                        type="tns:SynchInfoType" /
    184             </sequence> 
    185           </complexType
    186         </element
    187       </sequence> 
    188     </complexType> 
    189   </element
    190    
    191   <element name="add-item"> 
     222    <sequence> 
     223      <element name="calendar-href" type="string" /
     224      <element name="synch-info-responses"
     225        <complexType
     226          <sequence> 
     227            <element maxOccurs="unbounded" name="synch-info"  
     228                     type="tns:SynchInfoType" /> 
     229          </sequence
     230        </complexType> 
     231      </element
     232    </sequence
     233  </complexType> 
     234   
     235  <element name="synch-info-response" type="tns:synch-info-response-type" /
     236   
     237  <complexType name="add-item-type"> 
    192238    <annotation> 
    193239      <documentation xml:lang="en"> 
     
    195241      </documentation> 
    196242    </annotation> 
    197     <complexType> 
    198       <sequence> 
    199         <element name="synch-token" type="string" /> 
    200         <element name="calendar-href" type="string" /> 
    201         <element name="principal-href" type="string" /> 
    202         <element name="uid" type="string" /> 
    203         <element name="icalendar" type="xcal:icalendarType" /> 
    204       </sequence> 
    205     </complexType> 
    206   </element> 
    207    
    208   <element name="add-item-response"> 
     243    <complexContent mixed="false"> 
     244      <extension base="tns:base-synch-request"> 
     245        <sequence> 
     246          <element name="uid" type="string" /> 
     247          <element name="icalendar" type="xcal:icalendarType" /> 
     248        </sequence> 
     249      </extension> 
     250    </complexContent> 
     251  </complexType> 
     252   
     253  <element name="add-item" type="tns:add-item-type" /> 
     254   
     255  <complexType name="add-item-response-type"> 
    209256    <annotation> 
    210257      <documentation xml:lang="en"> 
     
    212259      </documentation> 
    213260    </annotation> 
    214     <complexType> 
    215       <sequence> 
    216         <element name="status" type="tns:StatusType" /> 
    217       </sequence> 
    218     </complexType> 
    219   </element> 
     261    <sequence> 
     262      <element name="status" type="tns:StatusType" /> 
     263      <element name="message" type="string" /> 
     264    </sequence> 
     265  </complexType> 
     266   
     267  <element name="add-item-response" type="tns:add-item-response-type" /> 
    220268</schema> 
  • trunk/resources/exsynchwsdefs/wssvc.wsdl

    r3037 r3048  
    3535 
    3636  <wsdl:message name="AddItemIn"> 
    37     <wsdl:part name="request" element="tns:add-item" /> 
     37    <wsdl:part name="addItemRequest" element="tns:add-item" /> 
    3838  </wsdl:message> 
    3939   
    4040  <wsdl:message name="AddItemOut"> 
    41     <wsdl:part name="response" element="tns:add-item-response" /> 
     41    <wsdl:part name="addItemResponse" element="tns:add-item-response" /> 
    4242  </wsdl:message> 
    4343 
     
    9494      <soap:operation soapAction="http://www.bedework.org/exsynch/wsmessages/add-item" /> 
    9595      <wsdl:input> 
    96         <soap:body use="literal" parts="request" /> 
     96        <soap:body use="literal" parts="addItemRequest" /> 
    9797      </wsdl:input> 
    9898      <wsdl:output> 
    99         <soap:body use="literal" parts="response" /> 
     99        <soap:body use="literal" parts="addItemResponse" /> 
    100100      </wsdl:output> 
    101101    </wsdl:operation>