Forum: Rails France [Web Services] Add namespaces to the SOAP Body and Header

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
David Alphen (Guest)
on 2007-06-04 15:50
Bonjour,

Lorsque j'exécute mon client Web Service SOAP Ruby, J'essaie d'ajouter
des namespaces aux balises Header et Body.
Voici le début de la requête XML que j'envoie:

<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <env:Body>
    <n1:Air_MultiAvailability xmlns:n1="http://my.url.com/SAR_07">

Mais je voudrais envoyer:

<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header
xmlns="http://webservices.site.com/definitions"></env:Hea...
  <env:Body xmlns="http://my.url.com/SAR_07">
    <Air_MultiAvailability>

J'ai besoin:

_d'ajouter des namespaces aux balises Header et Body,
_d'ajouter aussi la balise Header "vide", c'est à dire sans fils:

<env:Header
xmlns="http://webservices.site.com/definitions"></soap:He...

Merci.

--
David Alphen
This topic is locked and can not be replied to.