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

Soap API server needs basic authentication #27

Open alvacoder opened 7 years ago

alvacoder commented 7 years ago

The soap server needed to post data into needs basic plain authentication with username and password in the post header before submitted fields can be accepted.

see below example:

Plain authentication in the soap header is required. URL: http://127.0.0.1/SOAP_USER/SubscribeWebServices/wsdl username: webapp01 password: webpass01

zaus commented 7 years ago

https://github.com/zaus/forms-3rdparty-xpost/blob/master/README.md#how-do-i-set-headers https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication

Add to the header field, something like

Authorization=Basic [base64]user:pass[/base64]