Skip to content

Commit

Permalink
Merge pull request #6 from willemdj/test_soap
Browse files Browse the repository at this point in the history
Support for rpc style WSDLs. Thank you @willemdj
  • Loading branch information
cmullaparthi committed May 27, 2016
2 parents 4ca54cd + a7d2c2e commit 16e3279
Show file tree
Hide file tree
Showing 11 changed files with 727 additions and 164 deletions.
12 changes: 10 additions & 2 deletions src/soap.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
name :: string(),
operation :: atom(), %% name of function as used in handler module
soap_action = [] :: string(),
wrapper_ns = [] :: string(), %% namespace for the wrapper element (in
%% case of rpc style)
op_type :: notification | request_response,
in_type :: atom(),
out_type :: undefined | atom(),
in_type :: [{string(), atom()}] | atom(), %% the list type is only used
%% during construction of the
%% interface
out_type :: [{string(), atom()}] | undefined | atom(), %% see above
fault_types :: [atom()]}).
-type op() :: #op{}.

Expand All @@ -40,7 +44,9 @@
server_handler :: module(),
client_handler :: module(),
http_options = [] :: [any()],
target_ns :: string(),
soap_ns :: string(),
style :: string() | undefined, %% "rpc" | "document"
decoders :: [{string(), module}],
url :: string(),
port :: string(),
Expand All @@ -50,6 +56,8 @@
model :: erlsom:model(),
%% the fields below are only used during the creation of the interface
prefix_count = 0 :: integer(), %% used to assign unique prefixes
tns_prefix :: string() | undefined, %% used for rpc type wsdl if the target ns
%% is also used as the ns of an operation.
imported = [] :: [{string(), string() | undefined}] %% imported namespaces,
%% {URI, Prefix}, to prevent duplicates and to be able to add the
%% prefix later on.
Expand Down
Loading

0 comments on commit 16e3279

Please sign in to comment.