/** * //typograf.artlebedev.ru/webservices/ */ private function artlebedev($data) { $request = new CSOAPRequest("ProcessText", "http://typograf.artlebedev.ru/webservices/"); $request->addParameter("text", htmlspecialchars($data)); $request->addParameter("entityType", $entityType); $request->addParameter("useBr", $useBr); $request->addParameter("useP", $useP); $request->addParameter("maxNobr", $maxNobr); $request->addParameter("quotA", $quotA); $request->addParameter("quotB", $quotB); $client = new CSOAPClient('typograf.artlebedev.ru', '/webservices/typograf.asmx'); $response = $client->send($request); return $response->Value['ProcessTextResult']; }
break; case "ACTIVATION": if (!$_REQUEST['ACTIVATION_CODE']) { $arResult["RESULT"]['ERROR'] = GetMessage("EMPTY_ACTIVATION_CODE_ERROR"); break; } $arResult["IS_ACTIVATION"] = true; $arSoapParams[GetMessage("SOAP_ACTIVATION_CODE")] = $_REQUEST['ACTIVATION_CODE']; $arSoapMethod = GetMessage("SOAP_ACTIVATION_METHOD"); break; default: ShowError(GetMessage("USER_AUTH_ERROR")); return; } if (!$arResult["RESULT"]['ERROR']) { $arSoapRequest = new CSOAPRequest($arSoapMethod, $arParams["PR_NAMESPACE"], $arSoapParams); $request_body = $arSoapRequest->payload(); if (!$isUTF) { $request_body = $APPLICATION->ConvertCharset($request_body, SITE_CHARSET, "UTF-8"); $arSoapMethod = $APPLICATION->ConvertCharset($arSoapMethod, SITE_CHARSET, "UTF-8"); } $req = new CHTTP(); $arUrl = $req->ParseURL($arWebServiceUrl); $arUrl["port"] = $arPort; $req->SetAuthBasic($arLogin, $arPassword); $req->user_agent = "BITRIX SOAP Client"; $req->http_timeout = $arTimeout; $req->additional_headers['SOAPAction'] = $arParams["PR_NAMESPACE"] . $arSoapMethod; $result = $req->Query("POST", $arUrl["host"], $arUrl["port"], $arUrl["path"], $request_body, $arUrl["proto"], "text/xml; charset=utf-8"); if (!$req->errstr) { if ($req->status == 401) {