Вниз
Скачать: 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.949 c
10-1167245489
red123
2006-12-27 21:51
2010.08.27
com сервер с формой


9-1185035010
Evgraf
2007-07-21 20:23
2010.08.27
Подскажите


6-1216631498
mv
2008-07-21 13:11
2010.08.27
XML


2-1267733813
mops
2010-03-04 23:16
2010.08.27
сортировка по типам


15-1264250963
xayam
2010-01-23 15:49
2010.08.27
К разработчикам клиентов форума




   Наверх