Вниз
Скачать: CL | DM;

как создать "нужный" пакет SOAP-WSDL   Найти похожие ветки 

← →
lordalex ©   (2010-04-20 13:46) [0]

Доброго Вам!!!

Такая задача:
- Клиент общается с сервером по стандарту WSDL (+SSL)
- имеется  файл Gate.wsdl и несколько файлов типа gate.subscribers_1.0.wsd

Сделал импорт из файла Gate.wsdl, настроил соединение - тут все "Ок".
далее проблема:
задаю параметры и в итоге получаю пакет:
<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
 <SubscriberDescriptionsRequest xmlns="http://bill.ru/xsd/gate/gate_1.x">
  <criteria>
    <restrictions xmlns="http://bill.ru/xsd/gate/subscribers_1.x">
    <limit>1</limit>
    <serviceIds>
      <serviceId>1</serviceId>
      <serviceId>5</serviceId>
    </serviceIds>
    <accounts>
      <account>9988/8606</account>
    </sub:accounts>
    <additionals>
      <additionalRestriction key="area" value="Город"/>
    </additionals>
   </restrictions>
  </criteria>
 </SubscriberDescriptionsRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


а мне необходимо получить пакет формата:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:gate="http://bill.ru/xsd/gate/gate_1.x"
xmlns:sub="http://bill.ru/xsd/gate/subscribers_1.x">
  <soapenv:Header/>
  <soapenv:Body>
     <gate:SubscriberDescriptionsRequest>
        <gate:criteria>
           <sub:restrictions>
              <sub:limit>1</sub:limit>
              <sub:serviceIds>
                 <sub:serviceId>1</sub:serviceId>
              </sub:serviceIds>
              <sub:accounts>
                 <sub:account>9988/8606</sub:account>
              </sub:accounts>
              <sub:additionals>
                 <sub:additionalRestriction key="area" value="Город"/>
              </sub:additionals>
           </sub:restrictions>
        </gate:criteria>
     </gate:SubscriberDescriptionsRequest>
  </soapenv:Body>
</soapenv:Envelope>


Вопросы:
?- как изменить "SOAP-ENV:" на "SOAPENV:"

?- как заменить шапку
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

на
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:gate="http://bill.ru/xsd/gate/gate_1.x"
xmlns:sub="http://bill.ru/xsd/gate/subscribers_1.x">


?- как сформировать теги
<gate:criteria> <sub:restrictions> вместо <criteria> <restrictions>


← →
LordAlex ©   (2010-04-21 05:44) [1]

Простите, забыл указать на чем все строю:

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, IdBaseComponent, IdComponent, IdIOHandler, IdSOAPHTTPClient, IdIOHandlerStack, IdSSL, IdSSLOpenSSL, IdTCPConnection, IdTCPClient, IdHTTP, Rio, InvokeRegistry, SOAPHTTPClient;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.079 c
3-1242293156
Ega23
2009-05-14 13:25
2010.08.27
Выполнение скрипта под разными учетными записями


4-1233843462
R13
2009-02-05 17:17
2010.08.27
Обрезка канваса при методе PrintWindow


15-1265873696
12
2010-02-11 10:34
2010.08.27
Начать писать на php.


15-1274076594
Anatoly Podgoretsky
2010-05-17 10:09
2010.08.27
Выбор писалки DVD


6-1218572715
grisme
2008-08-13 00:25
2010.08.27
recv + HTTP в блокирующем режиме




   Наверх