Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2010.08.27;
Скачать: 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 вся ветка

Текущий архив: 2010.08.27;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.14 c
2-1266751523
Fr
2010-02-21 14:25
2010.08.27
TRichEdit, вставка текста


8-1204713238
Vredinka
2008-03-05 13:33
2010.08.27
Ссылка на видео


2-1268353155
Женя
2010-03-12 03:19
2010.08.27
связанные таблицы


2-1267552320
HRustBB
2010-03-02 20:52
2010.08.27
Виртуальный диск с источником FTP


2-1265981290
Mestar
2010-02-12 16:28
2010.08.27
1C и Delphi