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

Need help configuring or hire you #23

Closed MartijnLindeboom closed 7 years ago

MartijnLindeboom commented 8 years ago

Hi @zaus , for a customer we build a form that needs to be sended as XML over SOAP but we can't figure it out while your awesome plugin could be able to do it.

Could we hire you or something?

The export message should look like attached but i get errors. The company says i don't call a method and therefor even the credentials can't be verified and therefor i get no access denied message.

We have more documentation about the api from the company.

I have already mapped the fields etc. But there is something going wrong and i think you could fix this within a few minutes but could you please let me know if your open for this and what's your criteria?

I have a budget of €250 euro for this so i think this could be very quickly earned while i think some basic configuration of headers en format is the only thing needed.

Thanks in advance for your reply


***How it should look like:


<?xml version="1.0" encoding="UTF-8"?> <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://tempuri.org/">
<env:Body>
<ns1:InsertOrUpdateCustomer>
<ns1:Credentials>
<ns1:Username>***</ns1:Username>
<ns1:Password>***</ns1:Password>
<ns1:GuidionSubscriptionID>***</ns1:GuidionSubscriptionID>
</ns1:Credentials>
<ns1:Customer>
<ns1:GuidionCustomerID>***</ns1:GuidionCustomerID>
<ns1:PartnerCustomerID>***</ns1:PartnerCustomerID>
<ns1:Firstname>PHP</ns1:Firstname>
<ns1:Middlename>
</ns1:Middlename>
<ns1:Lastname>Unit</ns1:Lastname>
<ns1:Street>Teststraat</ns1:Street>
<ns1:Housenumber>1</ns1:Housenumber>
<ns1:HousenumberExt>a</ns1:HousenumberExt>
<ns1:Postalcode>1111AA</ns1:Postalcode>
<ns1:City>Breda</ns1:City>
<ns1:Phonenumber>0123456789</ns1:Phonenumber>
<ns1:Mobile>0612345678</ns1:Mobile>
<ns1:Email>development@domain.nl</ns1:Email>
</ns1:Customer>
</ns1:InsertOrUpdateCustomer>
</env:Body>
</env:Envelope>

Current debug message: (deleted details)


*** Service ***
Array
(
    [name] =>  ***.nl
    [url] => https://business.guidion.nl/2/nl/test/soap/guidion.soap
    [forms] => Array
        (
            [0] => gf_1
        )

    [success] => 0
    [failure] =>
    [timeout] => 10
    [as-xpost] => true
    [xpost-wrapper] => post
    [xpost-header] => 'Content-Type=XML'
    [xpostac] => 1
    [mapping] => Array
        (
            [0] => Array
                (
                    [val] => 1
                    [lbl] =>
                    [src] =>
                    [3rd] => Credentials
                )

            [1] => Array
                (
                    [val] => 1
                    [lbl] =>
                    [src] => ***
                    [3rd] => Username
                )

            [2] => Array
                (
                    [val] => 1
                    [lbl] =>
                    [src] => ***
                    [3rd] => Password
                )

            [3] => Array
                (
                    [val] => 1
                    [lbl] =>
                    [src] => ***
                    [3rd] => GuidionSubscriptionID
                )

            [4] => Array
                (
                    [val] => 1
                    [lbl] =>
                    [src] =>
                    [3rd] => Customer
                )

            [5] => Array
                (
                    [lbl] => Voornaam
                    [src] => input_7_3
                    [3rd] => Firstname
                )

            [6] => Array
                (
                    [lbl] => Achternaam
                    [src] => input_7_6
                    [3rd] => Lastname
                )

            [7] => Array
                (
                    [lbl] => Straat + huisnummer
                    [src] => input_6_1
                    [3rd] => Street
                )

            [8] => Array
                (
                    [lbl] => Postcode
                    [src] => input_6_5
                    [3rd] => Postalcode
                )

            [9] => Array
                (
                    [lbl] => Plaats
                    [src] => input_6_3
                    [3rd] => City
                )

            [10] => Array
                (
                    [lbl] => Telefoon
                    [src] => input_3
                    [3rd] => Phonenumber
                )

            [11] => Array
                (
                    [lbl] => E-mailadres
                    [src] => input_4
                    [3rd] => Email
                )

            [12] => Array
                (
                    [lbl] => Aantal melders
                    [src] => input_10
                    [3rd] => FreeFieldID
                )

        )

    [separator] => ,
)

*** Post (Form) ***
https://***.nl/
Array
(
    [input_7_3] => Test
    [input_7_6] => Testachternaam
    [input_6_1] => Teststraat 219
    [input_6_2] =>
    [input_6_5] => 2109AB
    [input_6_3] => Teststad
    [input_6_4] =>
    [input_6_6] => Nederland
    [input_3] => 0612345678
    [input_10] => 1 = €119,- Eenmalig + €4,95 per maand
    [input_4] => m@***.nl
    [input_9] => Nee bedankt
    [input_11_1] => ja, ik accepteer de
    [gform_ajax] => form_id=1&title=&description=&tabindex=1
    [is_submit_1] => 1
    [gform_submit] => 1
    [gform_unique_id] =>
    [state_1] => ***=
    [gform_target_page_number_1] => 0
    [gform_source_page_number_1] => 1
    [gform_field_values] =>
    [Naam] => Array
        (
            [0] => Test
            [1] => Testachternaam
        )

    [Adres] => Array
        (
            [0] => Teststraat 219
            [1] =>
            [2] => 2109AB
            [3] => Teststad
            [4] =>
            [5] => Nederland
        )

    [Telefoon] => 0612345678
    [Aantal melders] => 1 = €119,- Eenmalig + €4,95 per maand
    [E-mailadres] => m@***.nl
    [Schrijf mij in voor de nieuwsbrief] => Nee bedankt
    [Privacy policy] => ja, ik accepteer de 
)

*** Post (to Service) ***
Array
(
    [timeout] => 10
    [body] => <?xml version="1.0"?>
<post><Credentials/><Username>***</Username><Password>***</Password><GuidionSubscriptionID>***</GuidionSubscriptionID><Customer/><Firstname>Test</Firstname><Lastname>Testachternaam</Lastname><Street>Teststraat 219</Street><Postalcode>2109AB</Postalcode><City>Teststad</City><Phonenumber>0612345678</Phonenumber><Email>m@***.nl</Email><FreeFieldID>1 = &#x20AC;119,- Eenmalig + &#x20AC;4,95 per maand</FreeFieldID></post>

    [headers] => Array
        (
            ['Content-Type] => XML'
            [Content-Type] => application/xml
        )

)

*** Response ***
Array
(
    [headers] => Requests_Utility_CaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [content-type] => text/html
                    [server] => Microsoft-IIS/7.5
                    [x-powered-by] => ASP.NET
                    [date] => Wed, 21 Sep 2016 08:28:55 GMT
                    [content-length] => 1233
                )

        )

    [body] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>403 - Forbidden: Access is denied.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>403 - Forbidden: Access is denied.</h2>
  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
 </fieldset></div>
</div>
</body>
</html>

    [response] => Array
        (
            [code] => 403
            [message] => Forbidden
        )

    [cookies] => Array
        (
        )

    [filename] =>
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [response:protected] => Requests_Response Object
                (
                    [body] => <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>403 - Forbidden: Access is denied.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>403 - Forbidden: Access is denied.</h2>
  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
 </fieldset></div>
</div>
</body>
</html>

                    [raw] => HTTP/1.1 403 Forbidden
Content-Type: text/html
Server: Microsoft-IIS/7.5
X-Powered-By: ASP.NET
Date: Wed, 21 Sep 2016 08:28:55 GMT
Connection: close
Content-Length: 1233

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>403 - Forbidden: Access is denied.</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
 <div class="content-container"><fieldset>
  <h2>403 - Forbidden: Access is denied.</h2>
  <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
 </fieldset></div>
</div>
</body>
</html>

                    [headers] => Requests_Response_Headers Object
                        (
                            [data:protected] => Array
                                (
                                    [content-type] => Array
                                        (
                                            [0] => text/html
                                        )

                                    [server] => Array
                                        (
                                            [0] => Microsoft-IIS/7.5
                                        )

                                    [x-powered-by] => Array
                                        (
                                            [0] => ASP.NET
                                        )

                                    [date] => Array
                                        (
                                            [0] => Wed, 21 Sep 2016 08:28:55 GMT
                                        )

                                    [content-length] => Array
                                        (
                                            [0] => 1233
                                        )

                                )

                        )

                    [status_code] => 403
                    [protocol_version] => 1.1
                    [success] =>
                    [redirects] => 0
                    [url] => https://business.guidion.nl/2/nl/test/soap/guidion.soap
                    [history] => Array
                        (
                        )

                    [cookies] => Requests_Cookie_Jar Object
                        (
                            [cookies:protected] => Array
                                (
                                )

                        )

                )

            [filename:protected] =>
            [data] =>
            [headers] =>
            [status] =>
        )

    [safe_message] => physical request failure
)
zaus commented 7 years ago

Hey thanks for contacting me -- following up via email.