zaus / forms-3rdparty-xpost

Converts external submission from [Forms: 3rdparty Integration](http://wordpress.org/plugins/forms-3rdparty-integration/) plugin to XML post; optionally can add custom headers (to allow SOAP submissions).
4 stars 2 forks source link

Newbie...needs more hand holding! #17

Closed shannonrenner closed 8 years ago

shannonrenner commented 8 years ago

I am using Contact Form 7 v.4.4.1, with 3rd party integration 1.6.6.4 and 3rd party xml post 1.3. I know what my XML file needs to look like but do not know how to get there. The form data seems to be working fine, but the soap tags and the AddEnhancedWebContact part I don't know where to put. Can you help? Thanks Shannon

POST /webservices/Narrowcast/Narrowcast.asmx HTTP/1.1
Host: www.navistechnologies.info
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/AddEnhancedWebContact"

<?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>
    <AddEnhancedWebContact xmlns="http://tempuri.org/">
      <Account>string</Account>
      <Password>string</Password>
      <ResAccount>string</ResAccount>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <City>string</City>
      <State>string</State>
      <ZipCode>string</ZipCode>
      <Country>string</Country>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <CellPhone>string</CellPhone>
      <EmailAddress>string</EmailAddress>
      <Subject>string</Subject>
      <Message>string</Message>
      <CheckinDate>string</CheckinDate>
      <CheckoutDate>string</CheckoutDate>
      <Adults>int</Adults>
      <Children>int</Children>
      <Nights>int</Nights>
      <Unit>string</Unit>
      <ReasonForStay>string</ReasonForStay>
      <Campaign>string</Campaign>
      <Optin>boolean</Optin>
      <Keyword>string</Keyword>
      <attachmentPath>string</attachmentPath>
    </AddEnhancedWebContact>
  </soap:Body>
</soap:Envelope>
shannonrenner commented 8 years ago

POST.docx

zaus commented 8 years ago

I think you can set the root element to something like soap:Envelope/soap:Body/AddEnhancedWebContact. If that doesn't work, I think you can set the entire XML root per FAQ suggestion https://github.com/zaus/forms-3rdparty-xpost#how-do-i-set-xml-prolog-attributes

Failing all of that, try using the 'mask' format.

luisdiazvenero commented 7 years ago

hello @shannonrenner i'm trying to send something similar, how did you resolved it?