-
Notifications
You must be signed in to change notification settings - Fork 10
SOAP Envelopes in ORACC
Raquel Alegre edited this page Jun 8, 2016
·
3 revisions
The following SOAP envelope contains a Body
element following the specifications given by the ORACC server. It has:
-
<osc-data:key>atf</osc-data:key>
:atf
is the command the server is expecting to validate the attached ATF file. -
<osc-data:key>cams/gkab</osc-data:key>
:cams/gkab
is the project the ATF belongs to. It is extracted by Nammu from the ATF text "#project" line. -
<osc-data:key>00atf/belsunu.atf</osc-data:key>
:00atf/belsunu.atf
is the path inside the attached zip sent to the server.
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime5="http://www.w3.org/2005/05/xmlmime"
xmlns:osc-data="http://oracc.org/wsdl/ows.xsd"
xmlns:osc-meth="http://oracc.org/wsdl/ows.wsdl">
<SOAP-ENV:Body>
<osc-meth:Request>
<osc-data:keys>
<osc-data:key>atf</osc-data:key>
<osc-data:key>cams/gkab</osc-data:key>
<osc-data:key>00atf/belsunu.atf</osc-data:key>
</osc-data:keys>
<osc-data:data>
<osc-data:item xmime5:contentType="*/*">
<xop:Include href="cid:request_zip"/>
</osc-data:item>
</osc-data:data>
</osc-meth:Request>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The following SOAP Envelope contains a Body following the format defined by the ORACC server. Inside the body there is a osc-data:key
element with the request_id g9OnhU
returned by the server after submitting an ATF for validation/lemmatisation.
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xop="http://www.w3.org/2004/08/xop/include"
xmlns:xmime5="http://www.w3.org/2005/05/xmlmime"
xmlns:osc-data="http://oracc.org/wsdl/ows.xsd"
xmlns:osc-meth="http://oracc.org/wsdl/ows.wsdl">
<SOAP-ENV:Body>
<osc-meth:Response>
<osc-data:keys>
<osc-data:key>g9OnhU</osc-data:key>
</osc-data:keys>
</osc-meth:Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>