ReSTful Webservices: Input XML structure
When a webservice is called, a document is passed to the corresponding Technical Process. If you have defined HTTP content as input mode in the webservice configuration, this document only includes the content of the HTTP entity. Media Type and Charset from the Content Type header are transferred to the input document.
If HTTP-MetaXml has been defined as the input mode, an XML document with HTTP header information, among other things, is passed to the Technical Process during the webservice call, which is structured according to the following pattern:
<Request>
<Path>
<Method>ReST-Methode (z. B. GET)</Method>
<FullPath>Komplette URL inkl. konstantem und variablem URL-Part</FullPath>
<Server>URL des Servers</Server>
<RequestPath>Pfad, der im Aufruf verwendet wurde</RequestPath>
<ContextPrefix>Basis-URL von X4 ReST (immer gleich)</ContextPrefix>
<PathInfo>Konstanter und variabler URL-Part</PathInfo>
<Parts>
<Constant name="Konstanter URL-Part" />
<Variable name="Name des variablen URL-Parts">tatsächl. URL-Part</Variable>
</Parts>
</Path>
<Headers>
<Header>
<Name>Header-Name</Name>
<Value>Header-Wert</Value>
</Header>
<!-- Oder bei Datumswerten: -->
<Header>
<Name>HTTP-Header-Name</Name>
<Date timezone="Zeitzone">Header-Datumswert</Date>
</Header>
</Headers>
<Query>
<QueryString>Über die URL übergebene Parameter</QueryString>
<Parameter name="Parameter-Name">Parameter-Wert</Parameter>
</Query>
<Security realm="Sicherheitsbereich">
<Principal class="Prinzipalklasse" name="Prinzipal-Name" />
</Security>
<Body encoding="Datenkodierung">Übermittelte Daten</Body>
</Request>
The <Request> root element contains the following elements:
Element | Description |
|---|---|
| Contains, among other things, the calling URL and the individual, broken down URL parts. Note: Note that when migrating from X4 BPMS 6.x to X4 BPMS 7.x, the expected contents of the Example 6.x
CODE
Example 7.x
CODE
|
| Contains the individual HTTP headers with name and value in one |
Contains the | |
| Contains the associated JAAS subjects (simple principals or principal groups) if it is not in guest access. |
| Contains the |