Here is my scenario:
sceenario.json (10.3 KB)
I need to use my API key to log in to a service from which I will receive a SID. I need the SID to log in to service number 2.
The blueprint shows a module attempting to log in to service number 1. The module works correctly and shows code 200 upon execution.
However, the problem is that the output of this module is truncated, meaning it is shorter than it should be. Unfortunately, this truncated part contains my SID.
I want the HTTP module to give me the same output as ReadyAPI does.
The input of ReadyAPI and HTTP module is the same.
Output from ReadyAPI:
HTTP/1.1 200 OK
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:63646771-c2bf-4b42-951b-7354a8a3252c+id=2617734";start-info="application/soap+xml"
Server: Microsoft-IIS/10.0
MIME-Version: 1.0
X-Powered-By: ASP.NET
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Frame-Options: deny
X-Content-Type-Options: nosniff
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';
Date: Thu, 30 May 2024 11:30:08 GMT
Content-Length: 652
--uuid:63646771-c2bf-4b42-951b-7354a8a3252c+id=2617734
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action s:mustUnderstand="1">http://CIS/BIR/PUBL/2014/07/IUslugaBIRzewnPubl/ZalogujResponse</a:Action></s:Header><s:Body><ZalogujResponse xmlns="http://CIS/BIR/PUBL/2014/07"><ZalogujResult>**MY_SID**</ZalogujResult></ZalogujResponse></s:Body></s:Envelope>
--uuid:63646771-c2bf-4b42-951b-7354a8a3252c+id=2617734--
Output of the HTTP module (it is encoded):
[
{
"statusCode": 200,
"headers": [
{ "name": "cache-control",
"value": "no-cache, no-store, max-age=0, must-revalidate"
},
{
"name": "pragma",
"value": "no-cache"
},
{
"name": "content-type",
"value": "multipart/related; type=\"application/xop+xml\";start=\"<http://tempuri.org/0>\";boundary=\"uuid:63646771-c2bf-4b42-951b-7354a8a3252c+id=2582239\";start-info=\"application/soap+xml\""
},
{
"name": "server",
"value": "Microsoft-IIS/10.0"
},
{
"name": "mime-version",
"value": "1.0"
},
{
"name": "x-powered-by",
"value": "ASP.NET"
},
{
"name": "strict-transport-security",
"value": "max-age=31536000; includeSubDomains"
},
{
"name": "x-frame-options",
"value": "deny"
},
{
"name": "x-content-type-options",
"value": "nosniff"
},
{
"name": "content-security-policy",
"value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline';"
},
{
"name": "date",
"value": "Thu, 30 May 2024 11:20:21 GMT"
},
{
"name": "content-length",
"value": "652"
}
],
"cookieHeaders": [],
"data": "IMTBuffer(652, binary, 95f26867a1139293dab25fd59f4a4cab64da6c10): 0d0a2d2d757569643a36333634363737312d633262662d346234322d393531622d3733353461386133323532632b69643d323538323233390d0a436f6e74656e742d49443a203c687474703a2f2f74656d707572692e6f72672f303e0d0a436f6e74656e",
"fileSize": 652
}
]
Decoded output of the HTTP module:
--uuid:63646771-c2bf-4b42-951b-7354a8a3252c+id=2582239
Content-ID: <http://tempuri.org/0>
Conten