{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/3186","repository_url":"https://api.github.com/repos/Codeception/Codeception","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/3186/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/3186/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/3186/events","html_url":"https://github.com/Codeception/Codeception/pull/3186","id":158857389,"number":3186,"title":"[Module : SOAP] Implement onReconfigure() ","user":{"login":"eXorus","id":1255561,"avatar_url":"https://avatars.githubusercontent.com/u/1255561?v=3","gravatar_id":"","url":"https://api.github.com/users/eXorus","html_url":"https://github.com/eXorus","followers_url":"https://api.github.com/users/eXorus/followers","following_url":"https://api.github.com/users/eXorus/following{/other_user}","gists_url":"https://api.github.com/users/eXorus/gists{/gist_id}","starred_url":"https://api.github.com/users/eXorus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eXorus/subscriptions","organizations_url":"https://api.github.com/users/eXorus/orgs","repos_url":"https://api.github.com/users/eXorus/repos","events_url":"https://api.github.com/users/eXorus/events{/privacy}","received_events_url":"https://api.github.com/users/eXorus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T07:31:23Z","updated_at":"2016-06-07T17:24:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Codeception/Codeception/pulls/3186","html_url":"https://github.com/Codeception/Codeception/pull/3186","diff_url":"https://github.com/Codeception/Codeception/pull/3186.diff","patch_url":"https://github.com/Codeception/Codeception/pull/3186.patch"},"body":"Hello,\r\n\r\nThis PR allow to send different request on different endpoint in the same test case.\r\n\r\nCest file :\r\n```php\r\nclass testApiCest\r\n{\r\n    public function test(ApiTester $I)\r\n    {\r\n        $I->switchEndPoint(\"https://api1.company.com\");\r\n        $I->sendSoapRequest('UpdateUser', '<user><id>1</id><name>notdavert</name></user>');\r\n\r\n        $I->switchEndPoint(\"https://api2.company.com\");\r\n        $I->sendSoapRequest('UpdateUser', '<user><id>1</id><name>notdavert</name></user>');\r\n    }\r\n}\r\n```\r\n\r\nHelper file :\r\n```php\r\n    public function switchEndPoint ($endpoint)\r\n    {\r\n        $this->getModule('SOAP')->_reconfigure(['endpoint' => $endpoint]);\r\n    }\r\n```\r\n\r\nActual result :\r\n- First UpdateUser on API1\r\n- Second UpdateUser on API1\r\n\r\nExpected result :\r\n- First UpdateUser on API1\r\n- Second UpdateUser on API2\r\n\r\nWith this PR it's working like expected result.\r\n\r\nRelated to #3182 (PR on master)\r\nRelated to #3168 (Issue)"},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/224352446","html_url":"https://github.com/Codeception/Codeception/pull/3186#issuecomment-224352446","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/3186","id":224352446,"user":{"login":"DavertMik","id":220264,"avatar_url":"https://avatars.githubusercontent.com/u/220264?v=3","gravatar_id":"","url":"https://api.github.com/users/DavertMik","html_url":"https://github.com/DavertMik","followers_url":"https://api.github.com/users/DavertMik/followers","following_url":"https://api.github.com/users/DavertMik/following{/other_user}","gists_url":"https://api.github.com/users/DavertMik/gists{/gist_id}","starred_url":"https://api.github.com/users/DavertMik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavertMik/subscriptions","organizations_url":"https://api.github.com/users/DavertMik/orgs","repos_url":"https://api.github.com/users/DavertMik/repos","events_url":"https://api.github.com/users/DavertMik/events{/privacy}","received_events_url":"https://api.github.com/users/DavertMik/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T17:24:53Z","updated_at":"2016-06-07T17:24:53Z","body":"Thanks!"}}
{"actor":{"display_login":"DavertMik"}}