Вниз
Скачать: 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.046 c
3-1238361532
TheEd
2009-03-30 01:18
2010.08.27
как "вытянуть" описаниея полей в DisplayLabel


15-1270656918
sniknik
2010-04-07 20:15
2010.08.27
Ubuntu 10.4


2-1273340393
User
2010-05-08 21:39
2010.08.27
Edit - поддержка символов


15-1267122258
Fenik
2010-02-25 21:24
2010.08.27
YAML под Delphi


2-1270706035
novai
2010-04-08 09:53
2010.08.27
Использование Format




   Наверх