I have a spec for a SOAP service where the action needs a namespace:

SOAPAction: "http://www.example.com/ActionName"

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

AFAIK this isn't possible with nanosoap -- see also #2611648: crashes with DOMException when SOAP action is a URI.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

joachim’s picture

Status: Active » Needs review
FileSize
874 bytes

Here's a patch which applies on top of #2611648: crashes with DOMException when SOAP action is a URI.

I'm not sure this is the best approach. It might be a better idea to just split up the header action and the XML element action completely.