Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add support for HTTPS WSDLs #7

Closed
wants to merge 33 commits into
from

Conversation

Projects
None yet
4 participants
Contributor

afternoon commented Feb 8, 2013

I've refactored the get_url_file function to add support for HTTPS without introducing code duplication.

Devin Torres and others added some commits Apr 8, 2010

Define #call_opts{} record
The idea is to provide an easily upgradable options record which
will allow the caller to pass in various parameters that will be
used when making the final HTTP part of the soap call.

The first supported options are:

    * url - This specifies the end-point address to make the HTTP call.
            It is used when the actual end-point is different from
            that exposed in the WSDL document
    * http_headers - Headers to be included in the HTTP call
    * http_client_options - Options that will affect the behaviour of
            the HTTP client. E.g. proxy settings, HTTP Basic auth credentials

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Set default values for http_headers and http_client_options
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Modify call_attach/7 to take #call_opts{} record
 * HttpHeaders and HttpClientOptions now use the values
   pass in from the #call_opts{} record
 * Change the arity from call_attach/7 to call_attach/8

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Use Url from #call_opts{} if it is set
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Pass #call_opts{} when calling with attachments
Modify all the call_attach clauses to handle and
pass along #call_opts{} nicely

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Implement call/7 to receive #call_opts{}
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Add new #call_opts{} field 'prefix'
The prefix field is used to specify the xmlns prefix
when calling the WSDL.

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
This clause is superflous
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Call the expanded call/7 instead of call_attach
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Implement call/5 to take #call_opts{}
Use the new prefix field in #call_opts{} to hold
the prefix

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Use #call_opts{} in the remaining call clauses
This removes the need for the 'prefix' tag used in
the previous call/5 to specify the prefix

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Redefine ?DEFAULT_PREFIX in detergent.hrl
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Protect detergent.hrl with -ifndef foo
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Use the 'prefix' field in #call_opts{}
The prefix field in #call_opts{} replaces the ?DEFAULT_PREFIX
macro. This allows the user to change the prefix by specifying the
prefix field properly in #call_opts{}

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
More accurately rename DefaultPrefix to Prefix.
It's not really the default prefix, its just whatever
prefix is set in #call_opts{}

Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Beef up the README as rudimentary documentation
Signed-off-by: Essien Ita Essien <essiene@gmail.com>
Add the wsdl dirname to the include dirs list instead of '.' so you d…
…on't have to be in the same directory as the wsdl for it to include files

@devinus devinus closed this Aug 13, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment