diff --git a/app/Http/Controllers/Barobill/HometaxController.php b/app/Http/Controllers/Barobill/HometaxController.php index 5bdee3df..55aa0ba9 100644 --- a/app/Http/Controllers/Barobill/HometaxController.php +++ b/app/Http/Controllers/Barobill/HometaxController.php @@ -595,7 +595,7 @@ private function callSoap(string $method, array $params = []): array ]) ->withHeaders([ 'Content-Type' => 'text/xml; charset=utf-8', - 'SOAPAction' => 'https://www.baroservice.com/' . $method, + 'SOAPAction' => 'http://ws.baroservice.com/' . $method, ]) ->withBody($soapXml, 'text/xml') ->timeout(30) @@ -634,7 +634,7 @@ private function buildSoapRequest(string $method, array $params): string } return ' - + ' . $paramsXml . ' @@ -660,7 +660,7 @@ private function parseSoapResponse(string $xmlResponse, string $method): array // 네임스페이스 등록 $xml->registerXPathNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/'); - $xml->registerXPathNamespace('bar', 'https://www.baroservice.com/'); + $xml->registerXPathNamespace('bar', 'http://ws.baroservice.com/'); // 결과 노드 찾기 $resultNodes = $xml->xpath("//bar:{$method}Response/bar:{$method}Result");