> For the complete documentation index, see [llms.txt](https://ivalexev.gitbook.io/rednote/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ivalexev.gitbook.io/rednote/pentesting-process/other/web-service.md).

# Web Service

{% tabs %}
{% tab title="XML-RPC" %}
[Information](https://xmlrpc.com/spec.md).

Remote Procedure Call (RPC) protocol that uses XML (usually over HTTP) to invoke functionality. Composed of `<methodCall>`, `<methodName>` and `<params>`.

{% code overflow="wrap" %}

```xml
<!-- Content-Type: text/xml -->

<methodCall>
    <methodName>examples.getValue</methodName>
    <params>
       <param>
 	  <value>RandomValue</value>
       </param>
    </params>
 </methodCall>
```

{% endcode %}
{% endtab %}

{% tab title="JSON-RPC" %}
[Information](https://www.jsonrpc.org/specification).

Remote Procedure Call (RPC) protocol using JSON. Composed of `method`, `params`, `id`.

{% code overflow="wrap" %}

```json
// Content-Type: application/json-rpc

{"method": "sum", "params": {"a":3, "b":4}, "id":0}
```

{% endcode %}
{% endtab %}

{% tab title="SOAP" %}
[Information](https://www.w3schools.com/xml/xml_soap.asp).

Simple Object Access Protocol.\
Messaging protocol that uses XML and provides more functionality than XML-RPC. Composed of `<soap:Envelope>`, `<soap:Header>`, `<soap:Body>` and `<soap:Fault>`. Of which only Envelope and Body are mandatory.

[WSDL](https://www.w3.org/TR/wsdl/) (Web Services Definition Language) [`1.1`](https://www.w3.org/TR/2001/NOTE-wsdl-20010315)    [`2.0`](https://www.w3.org/TR/wsdl20-primer/) \
SOAP can optionally also provide a WSDL declaration that specifies how services can be used. Look for them with `?.wsdl`, `.wsdl`, `?.disk`, `.disk` or on [UDDI](https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/cy2a3ybs\(v=vs.100\)?redirectedfrom=MSDN): directory service for Public Web Service.

<pre class="language-xml" data-overflow="wrap"><code class="lang-xml"><strong>&#x3C;!-- 
</strong><strong>Content-Type: text/xml; charset = utf-8
</strong>[ SOAPAction: "OperationName" ] 
-->

&#x3C;?xml version="1.0"?> 
&#x3C;soap:Envelope
 xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
 soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
   &#x3C;soap:Header> ... &#x3C;/soap:Header>
   &#x3C;soap:Body> 
        ... 
       &#x3C;soap:Fault> ... &#x3C;/soap:Fault>
   &#x3C;/soap:Body>
&#x3C;/soap:Envelope>
</code></pre>

{% endtab %}

{% tab title="RESTful" %}
[Information](https://developer.ibm.com/articles/ws-restful/).

Representational State Transfer.\
It usually uses XML or JSON and relies on sets or principles to build a Web service. RESTful APIs are usually based on HTTP verbs to determine the actions to be taken.

**`POST /api/2.2/auth/signin HTTP/1.1`**

{% code overflow="wrap" %}

```xml
<!-- Content-Type:text/xml -->
<tsRequest>
  <credentials name="A" password="B"> … </credentials>
</tsRequest>
```

{% endcode %}

{% code overflow="wrap" %}

```json
// Content-Type:application/json
{ "credentials": 
    { "name": "A", "password": "B",  …  }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

Use **`Wsdler`** extension of BurpSuite.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ivalexev.gitbook.io/rednote/pentesting-process/other/web-service.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
