powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / Delphi [игнор отключен] [закрыт для гостей] / HTTPRIO передать guid в logoff
3 сообщений из 3, страница 1 из 1
HTTPRIO передать guid в logoff
    #39325902
Фотография adminsamara
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Как передать GUID в logoff

logon делаю так:

Код: pascal
1.
2.
3.
4.
procedure TForm1.Button1Click(Sender: TObject);
begin
(HTTPRIO1 as ClientSoap).Logon('login','pass','1.1','1.1');
end;



Это я отсылаю:
Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
POST /ClientWebService/Client.asmx HTTP/1.1
Host: 192.168.1.1
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://неважно/Logon"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <Logon xmlns="неважно">
      <Login>string</Login>
      <Password>string</Password>
      <ApplicationName>string</ApplicationName>
      <WorkstationName>string</WorkstationName>
    </Logon>
  </soap:Body>
</soap:Envelope>




это я получаю:
Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <SecurityHeader xmlns="неважно">
      <SessionGuid>guid</SessionGuid>
    </SecurityHeader>
  </soap:Header>
  <soap:Body>
    <LogonResponse xmlns="неважно">
      <LogonResult namespace="" tableTypeName="">xmlxml</LogonResult>
    </LogonResponse>
  </soap:Body>
</soap:Envelope>



В wsdl:
Код: pascal
1.
2.
function  Logon(const Login: string; const Password: string; const ApplicationName: string; const WorkstationName: string): LogonResult; stdcall;
procedure Logoff; stdcall;



пример Logoff:

Должен отправить:
Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
POST /неважно/Client.asmx HTTP/1.1
Host: 192.168.1.1
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://неважно/Logoff"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <SecurityHeader xmlns="неважно">
      <SessionGuid>guid</SessionGuid>
    </SecurityHeader>
  </soap:Header>
  <soap:Body>
    <Logoff xmlns="неважно" />
  </soap:Body>
</soap:Envelope>



Должен получить:
Код: pascal
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <SecurityHeader xmlns="неважно">
      <SessionGuid>guid</SessionGuid>
    </SecurityHeader>
  </soap:Header>
  <soap:Body>
    <LogoffResponse xmlns="http://неважно" />
  </soap:Body>
</soap:Envelope>



INDY Не предлогать!!!! все делаю через HTTPRIO. Как мне передать в Logoff guid?!
...
Рейтинг: 0 / 0
Период между сообщениями больше года.
HTTPRIO передать guid в logoff
    #39889123
Вася2021
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Аналогичная проблема, есть решение?
...
Рейтинг: 0 / 0
HTTPRIO передать guid в logoff
    #39889149
Фотография X-Cite
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Delphi [игнор отключен] [закрыт для гостей] / HTTPRIO передать guid в logoff
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]