Skip to content

Commit 241111a

Browse files
eXorusNaktibalda
authored andcommitted
[SOAP] AddED SOAPAction (#3396)
1 parent e136d65 commit 241111a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Codeception/Module/SOAP.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* ## Configuration
3737
*
3838
* * endpoint *required* - soap wsdl endpoint
39+
* * SOAPAction - replace SOAPAction HTTP header (Set to '' to SOAP 1.2)
3940
*
4041
* ## Public Properties
4142
*
@@ -479,7 +480,7 @@ protected function processRequest($action, $body)
479480
[
480481
'HTTP_Content-Type' => 'text/xml; charset=UTF-8',
481482
'HTTP_Content-Length' => strlen($body),
482-
'HTTP_SOAPAction' => $action
483+
'HTTP_SOAPAction' => isset($this->config['SOAPAction']) ? $this->config['SOAPAction'] : $action
483484
],
484485
$body
485486
);

0 commit comments

Comments
 (0)