Welcome to the "trac"-ing site of soap4r!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #354 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

sending Empty SOAPHeader

Reported by: nahi Assigned to: nahi
Priority: normal Milestone: 1.5.6
Component: soap4r Version: 1.5
Keywords: Cc:

Description

from ruby-talk:

I'm trying to add a namespace to the SOAP Body and Header.
I send the request:

<?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">

But I would like to send:

<?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">
<soap:Header xmlns="http://webservices.amadeus.com/definitions
"></soap:Header>
 <env:Body xmlns="http://my.url.com/SAR_07">
   <Air_MultiAvailability>

I have tested the last one and it works.
So I need several things:

_add namespaces to the Header and Body tags,
_plus the Header tag is empty, it does not contain any element (I have seen
lots of example that add element to the header but not just an empty
header):

<soap:Header xmlns="http://webservices.amadeus.com/definitions
"></soap:Header> 

Change History

06/05/07 10:34:40 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [1833]) * let Header::Handler touch SOAPHeader on on_outbound. if a method on_outboud is defined as arity > 0, on_outboud is called with a SOAPHeader as a parameter. otherwise on_bound is called with no parameter as before. closes #354.