Я отправляю запрос в веб-сервис, используя xml soap, но провайдер сказал, что мне не хватает тега body и soap close.
Я использую PHP 5.3 и Apache 2.2
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "xxxx",
CURLOPT_URL => "http://subdomain.maindomain.com:xxxx/service/ProxyServices/corpservice",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
//CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:get=\"http://xmlns.oracle.com/pcbpel/adapter/db/top/corpservice\">\n <soapenv:Header/>\n <soapenv:Body>\n <get:getcorpackage>\n <get:corpPackage>xxxxxxxxxxxxxxxxxx</get:corpPackage>\n </get:getcorpackage>\n </soapenv:Body>\n</soapenv:Envelope>",
CURLOPT_HTTPHEADER => array(
"Content-Length: 404",
"Content-Type: text/xml;charset=UTF-8",
"SOAPAction: xxxxxxxxz-xxxxx"
),
));
Как я могу это исправить?