Newer
Older
<!-- NOTE This tgextra-crud.wsdl file is ment to COMMUNICATE WITH TG-crud
service only, for read access please use tgextra.wsdl, for write access use
tgextra-write.wsdl -->
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://textgrid.info/namespaces/middleware/tgauth-crud"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
name="tgextra-crud" targetNamespace="http://textgrid.info/namespaces/middleware/tgauth-crud">
<!-- ################################################################### -->
<!-- ## Typ-Definitionen -->
<!-- ################################################################### -->
<wsdl:types>
<xsd:schema targetNamespace="http://textgrid.info/namespaces/middleware/tgauth-crud">
<xsd:element name="registerResourceRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="project" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="uri" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="uuid" type="xsd:string" minOccurs="0"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>

Stefan E. Funk
committed
<xsd:element name="operationsetResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="operation" type="xsd:string"
minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<xsd:element name="unregisterResourceRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="uri" type="xsd:string" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="tgCrudCheckAccessRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="sid" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="operation" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="resource" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="tgCrudCheckAccessResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="result" type="xsd:boolean"
minOccurs="1" maxOccurs="1" />
<xsd:element name="public" type="xsd:boolean"
minOccurs="1" maxOccurs="1" />
<xsd:element name="project" type="tns:projectInfo"
minOccurs="0" maxOccurs="1" />
<xsd:element name="username" type="xsd:string"
minOccurs="0" maxOccurs="1" />
<xsd:element name="operation" type="xsd:string"
minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="publishRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="resource" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="resource" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<xsd:element name="getCSRRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getCSRResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="csr" type="xsd:base64Binary"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="putCRTRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="crt" type="xsd:string" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="putCRTResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="success" type="xsd:boolean"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getEPPNRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<xsd:element name="getEPPNResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="eppn" type="xsd:string" minOccurs="1"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getSLCRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getSLCResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="slc" type="xsd:base64Binary"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUUIDRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="resource" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="getUUIDResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="uuid" type="xsd:string" minOccurs="0"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="nearlyPublishRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="auth" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="log" type="xsd:string" minOccurs="0"
maxOccurs="1" />
<xsd:element name="secret" type="xsd:string"
minOccurs="1" maxOccurs="1" />
<xsd:element name="resource" type="xsd:string"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="booleanResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="result" type="xsd:boolean"
minOccurs="1" maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="projectInfo">
<xsd:sequence>
<xsd:element name="id" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="description" type="xsd:string"
minOccurs="0" maxOccurs="1" />
<xsd:element name="name" type="xsd:string" minOccurs="1"
maxOccurs="1" />
<xsd:element name="file" type="xsd:string" minOccurs="0"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<!-- ########################################################### -->
<!-- ## Typ-Definitionen FAULTS -->
<!-- ########################################################### -->
<xsd:element name="authenticationFaultResponse" type="tns:TextGridFaultType" />
<xsd:element name="unknownProjectFaultResponse" type="tns:TextGridFaultType" />
<xsd:element name="rbacFaultResponse" type="tns:TextGridFaultType" />
<xsd:element name="notEmptyFaultResponse" type="tns:TextGridFaultType" />
<xsd:element name="objectNotFoundFaultResponse" type="tns:TextGridFaultType" />
<xsd:element name="unknownResourceFaultResponse" type="tns:TextGridFaultType" />
<xsd:complexType name="TextGridFaultType">
<xsd:sequence>
<xsd:element name="faultNo" type="xsd:int" minOccurs="0"
maxOccurs="1" />
<xsd:element name="faultMessage" type="xsd:string"
minOccurs="0" maxOccurs="1" />
<xsd:element name="cause" type="xsd:string" minOccurs="0"
maxOccurs="1" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<!-- ################################################################### -->
<!-- ## WSDL-Messages -->
<!-- ################################################################### -->
<wsdl:message name="registerResourceRequest">
<wsdl:part element="tns:registerResourceRequest" name="registerResourceInput" />
</wsdl:message>
<wsdl:message name="registerResourceResponse">

Stefan E. Funk
committed
<wsdl:part element="tns:operationsetResponse" name="registerResourceOutput" />
</wsdl:message>
<wsdl:message name="unregisterResourceRequest">
<wsdl:part element="tns:unregisterResourceRequest" name="unregisterResourceInput" />
</wsdl:message>
<wsdl:message name="unregisterResourceResponse">
<wsdl:part element="tns:booleanResponse" name="unregisterResourceOutput" />
</wsdl:message>
<wsdl:message name="publishRequest">
<wsdl:part element="tns:publishRequest" name="publishInput" />
</wsdl:message>
<wsdl:message name="publishResponse">
<wsdl:part element="tns:booleanResponse" name="publishOutput" />
</wsdl:message>
<wsdl:message name="getCSRRequest">
<wsdl:part element="tns:getCSRRequest" name="getCSRInput" />
</wsdl:message>
<wsdl:message name="getCSRResponse">
<wsdl:part element="tns:getCSRResponse" name="getCSROutput" />
</wsdl:message>
<wsdl:message name="putCRTRequest">
<wsdl:part element="tns:putCRTRequest" name="putCRTInput" />
</wsdl:message>
<wsdl:message name="putCRTResponse">
<wsdl:part element="tns:putCRTResponse" name="putCRTOutput" />
</wsdl:message>
<wsdl:message name="getEPPNRequest">
<wsdl:part element="tns:getEPPNRequest" name="getEPPNInput" />
</wsdl:message>
<wsdl:message name="getEPPNResponse">
<wsdl:part element="tns:getEPPNResponse" name="getEPPNOutput" />
</wsdl:message>
<wsdl:message name="getSLCRequest">
<wsdl:part element="tns:getSLCRequest" name="getSLCInput" />
</wsdl:message>
<wsdl:message name="getSLCResponse">
<wsdl:part element="tns:getSLCResponse" name="getSLCOutput" />
</wsdl:message>
<wsdl:message name="getUUIDRequest">
<wsdl:part element="tns:getUUIDRequest" name="getUUIDInput" />
</wsdl:message>
<wsdl:message name="getUUIDResponse">
<wsdl:part element="tns:getUUIDResponse" name="getUUIDResponse" />
</wsdl:message>
<wsdl:message name="tgCrudCheckAccessRequest">
<wsdl:part element="tns:tgCrudCheckAccessRequest" name="tgCrudCheckAccessInput" />
</wsdl:message>
<wsdl:message name="tgCrudCheckAccessResponse">
<wsdl:part element="tns:tgCrudCheckAccessResponse" name="tgCrudCheckAccessOutput" />
</wsdl:message>
<wsdl:message name="nearlyPublishRequest">
<wsdl:part element="tns:nearlyPublishRequest" name="nearlyPublishInput" />
</wsdl:message>
<wsdl:message name="nearlyPublishResponse">
<wsdl:part element="tns:booleanResponse" name="nearlyPublishOutput" />
</wsdl:message>
<!-- ################################################################### -->
<!-- ## WSDL-Messages FAULTS -->
<!-- ################################################################### -->
<wsdl:message name="authenticationFault">
<wsdl:part element="tns:authenticationFaultResponse" name="authenticationFault" />
</wsdl:message>
<wsdl:message name="unknownProjectFault">
<wsdl:part element="tns:unknownProjectFaultResponse" name="unknownProjectFault" />
</wsdl:message>
<wsdl:message name="rbacFault">
<wsdl:part element="tns:rbacFaultResponse" name="rbacFault" />
</wsdl:message>
<wsdl:message name="notEmptyFault">
<wsdl:part element="tns:notEmptyFaultResponse" name="notEmptyFault" />
</wsdl:message>
<wsdl:message name="unknownResourceFault">
<wsdl:part element="tns:unknownResourceFaultResponse" name="unknownResourceFault" />
</wsdl:message>
<!-- ################################################################### -->
<!-- ## Port-Type-Definitionen -->
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
<!-- ################################################################### -->
<wsdl:portType name="port_tgextra_crud">
<wsdl:operation name="registerResource">
<wsdl:documentation>
Registers a resource in the database. Assigns standard permissions
to roles in project:
<table>
<tr>
<td>Role</td>
<td>Right on Resource</td>
</tr>
<tr>
<td>Projektleiter (project leader)</td>
<td>delegate, publish</td>
</tr>
<tr>
<td>Administrator</td>
<td>delete</td>
</tr>
<tr>
<td>Bearbeiter (editor)</td>
<td>read, write</td>
</tr>
<tr>
<td>Beobachter (observer)</td>
<td>read</td>
</tr>
</table>
These permissions can be adapted afterwards. User needs create right
on project resource, see createProject().
<br />
This function is
<b>only for use by TG-crud.</b>
Clients should call TG-crud.create instead.
<ul>
<li>
<b>Input Parameters</b>
registerResourceRequest, with elements
<ul>
<li>auth - String, SessionID of future owner of this resource</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
<li>project - String with project ID, such as "TGPR123".</li>
<li>uri - String holding URI of TgObject resource to be
registered in RBAC</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
operationsSetResponse, with element
<ul>
<li>operation (0..n) Strings with permissible operations on the
newly created resource</li>
</ul>
</li>
<li>
<b>Faults</b>
<ul>
<li>authenticationFault</li>
<li>rbacFault - if resource could not be registered successfully</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:registerResourceRequest" />
<wsdl:output message="tns:registerResourceResponse" />
<wsdl:fault name="rbacFault" message="tns:rbacFault" />
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
</wsdl:operation>
<wsdl:operation name="unregisterResource">
<wsdl:documentation>
Removes resource from database. User needs delete right on
resource.
<b>Only for use by TG-crud.</b>
Clients should call
TG-crud.delete instead.
<ul>
<li>
<b>Input Parameters</b>
unregisterResourceRequest, with elements
<ul>
<li>auth - String, SessionID of requester</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
<li>uri - String holding URI of TgObject resource to be
removed
from RBAC</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
booleanResponse, with element
<ul>
<li>result - boolean, true if operation was successful,
false
otherwise</li>
</ul>
</li>
<li>
<b>Faults</b>
<ul>
<li>unknownResourceFault</li>
<li>authenticationFault</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:unregisterResourceRequest" />
<wsdl:output message="tns:unregisterResourceResponse" />
<wsdl:fault name="unknownResourceFault" message="tns:unknownResourceFault" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
</wsdl:operation>
<wsdl:operation name="tgCrudCheckAccess">
<wsdl:documentation>
Returns access decision for given operation on given resource
for
session. In addition the owner of the session and informations
on the
project is returned.
<ul>
<li>
<b>Input Parameters</b>
tgCrudCheckAccessRequest, with elements
<ul>
<li>auth - String, SessionID of user (or service) that
wants to
intitiate the check</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
<li>
sid - String, SessionID of user for whom the check
is to be done.
Leave empty if check is to be done for
user's own session given
under
<em>auth</em>
</li>
<li>operation - String, such as "read", "write"</li>
<li>resource - String, name of project or role, or URI of
TgObject resource</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
See wsdl
<ul>
<li>XXX</li>
</ul>
</li>
<li>
<b>Faults</b>
<ul>
<li>unknownResourceFault</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:tgCrudCheckAccessRequest" />
<wsdl:output message="tns:tgCrudCheckAccessResponse" />
<wsdl:fault name="unknownResourceFault" message="tns:unknownResourceFault" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
</wsdl:operation>
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
<wsdl:operation name="putCRT">
<wsdl:documentation>
Puts the signed Certificate into the RBAC's accompanying daemon that
holds the key.
<ul>
<li>
<b>Input Parameters</b>
putCRTRequest, with elements
<ul>
<li>auth - String, SessionID of user</li>
<li>log - String for log information, optional</li>
<li>crt - the Certificate as a String</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
putCRTResponse, with element
<ul>
<li>success, Boolean.</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:putCRTRequest" />
<wsdl:output message="tns:putCRTResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
<wsdl:fault name="unknownResourceFault" message="tns:unknownResourceFault" />
</wsdl:operation>
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
<wsdl:operation name="getEPPN">
<wsdl:documentation>
Returns ePPN (aka TextGrid ID) of authenticated user. As ths
function could be used for SID guessing, the caller must know a
secret.
<ul>
<li>
<b>Input Parameters</b>
getEPPNRequest, with elements
<ul>
<li>auth - String, SessionID of user that wants to query his ePPN</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
getEPPNResponse, with element
<ul>
<li>eppn - String, ePPN of user.</li>
</ul>
</li>
<li>
<b>Faults</b>
<ul>
<li>authenticationFault</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:getEPPNRequest" />
<wsdl:output message="tns:getEPPNResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
</wsdl:operation>
<wsdl:operation name="getUUID">
<wsdl:documentation>
Returns UUID (full path including server address) of the resource.
User
must have read permission on the resource, or resource must be
public.
<ul>
<li>
<b>Input Parameters</b>
getUUIDRequest, with elements
<ul>
<li>auth - String, SessionID of user that wants to query
for the
UUID</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
<li>resource - String, URI of TgObject</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
getUUIDResponse, with element
<ul>
<li>uuid - String, UUID if defined.</li>
</ul>
</li>
<li>
<b>Faults</b>
<ul>
<li>authenticationFault</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:getUUIDRequest" />
<wsdl:output message="tns:getUUIDResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
</wsdl:operation>
<wsdl:operation name="publish">
<wsdl:documentation>
Sets the isPublic flag of a TextGridObject identified by its
URI to
TRUE. The resource will then be world-readable. This is
irreversible
(only by manual modification of the database) and
needs the publish
right, which by default is granted to
project leaders.
<ul>
<li>
<b>Input Parameters</b>
publishRequest, with elements
<ul>
<li>auth - String, SessionID of user that wants publish</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
<li>resource - String, URI of TgObject</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
booleanResponse, with element
<ul>
<li>result - boolean, true if operation was successful,
false
otherwise</li>
</ul>
</li>
<li>
<b>Faults</b>
<ul>
<li>authenticationFault</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:publishRequest" />
<wsdl:output message="tns:publishResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
</wsdl:operation>
<wsdl:operation name="getSLC">
<wsdl:documentation>
CRUD may use this to retrieve a Short-Lived Certificate Key pair in
PEM format for the user
<ul>
<li>
<b>Input Parameters</b>
getSLCRequest, with elements
<ul>
<li>auth - String, SessionID of user</li>
<li>log - String for log information, optional</li>
<li>secret - String known by TG-crud to authenticate
itself</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
getSLCResponse, with element
<ul>
<li>slc - Base64binary String with the key pair. Contains only
printable ASCII Character.</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:getSLCRequest" />
<wsdl:output message="tns:getSLCResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
<wsdl:fault name="unknownResourceFault" message="tns:unknownResourceFault" />
</wsdl:operation>
<wsdl:operation name="nearlyPublish">
<wsdl:documentation>++TODO++</wsdl:documentation>
<wsdl:input message="tns:nearlyPublishRequest" />
<wsdl:output message="tns:nearlyPublishResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
<wsdl:fault name="unknownResourceFault" message="tns:unknownResourceFault" />
</wsdl:operation>
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
<wsdl:operation name="getCSR">
<wsdl:documentation>
The Portal may use this to retrieve a Dummy Certificate Signing
Request (CSR)
in PEM format, for which the RBAC's accompanying daemon
will hold the real key.
<ul>
<li>
<b>Input Parameters</b>
getCSRRequest, with elements
<ul>
<li>auth - String, SessionID of user</li>
<li>log - String for log information, optional</li>
</ul>
</li>
<li>
<b>Output Parameters</b>
getCSRResponse, with element
<ul>
<li>csr - Base64binary String with the CSR. Contains only
printable ASCII Character.</li>
</ul>
</li>
</ul>
</wsdl:documentation>
<wsdl:input message="tns:getCSRRequest" />
<wsdl:output message="tns:getCSRResponse" />
<wsdl:fault name="authenticationFault" message="tns:authenticationFault" />
<wsdl:fault name="unknownResourceFault" message="tns:unknownResourceFault" />
</wsdl:operation>
</wsdl:portType>
<!-- ################################################################### -->
<!-- ################################################################### -->
<wsdl:binding name="binding_tgextra_crud" type="tns:port_tgextra_crud">

Stefan E. Funk
committed
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="nearlyPublish">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/nearlyPublish" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
<wsdl:fault name="unknownResourceFault">
<soap:fault use="literal" name="unknownResourceFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="registerResource">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/registerResource" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
<wsdl:fault name="rbacFault">
<soap:fault use="literal" name="rbacFault" />
</wsdl:fault>
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
</wsdl:operation>
<wsdl:operation name="unregisterResource">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/unregisterResource" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="unknownResourceFault">
<soap:fault use="literal" name="unknownResourceFault" />
</wsdl:fault>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="tgCrudCheckAccess">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/tgCrudCheckAccess" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="unknownResourceFault">
<soap:fault use="literal" name="unknownResourceFault" />
</wsdl:fault>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getEPPN">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/getEPPN" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getUUID">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/getUUID" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="publish">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/publish" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="getSLC">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/getSLC" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
<wsdl:fault name="unknownResourceFault">
<soap:fault use="literal" name="unknownResourceFault" />
</wsdl:fault>
</wsdl:operation>
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
<wsdl:operation name="getCSR">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/getCSR" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
<wsdl:fault name="unknownResourceFault">
<soap:fault use="literal" name="unknownResourceFault" />
</wsdl:fault>
</wsdl:operation>
<wsdl:operation name="putCRT">
<soap:operation
soapAction="http://textgrid.info/namespaces/middleware/tgauth-crud/putCRT" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="authenticationFault">
<soap:fault use="literal" name="authenticationFault" />
</wsdl:fault>
<wsdl:fault name="unknownResourceFault">
<soap:fault use="literal" name="unknownResourceFault" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<!-- ################################################################### -->
<!-- ################################################################### -->
<wsdl:service name="tgextra_crud">
<wsdl:port binding="tns:binding_tgextra_crud" name="tgextra_crud">
<soap:address location="https://textgridlab.org/dev/tgauth/tgextra-crud.php" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>