import SOAP-WSDL 2.00.01 from CPAN
git-cpan-module: SOAP-WSDL git-cpan-version: 2.00.01 git-cpan-authorid: MKUTTER git-cpan-file: authors/id/M/MK/MKUTTER/SOAP-WSDL-2.00.01.tar.gz
This commit is contained in:
1 parent
0cbf981665
commit
745ce925c1
111 files changed
+1106
-673
No files matched your search
@@ -3,15 +3,48 @@
|
||||
|
||||
[% head3 %] [% operation.get_name %]
|
||||
|
||||
[% type = definitions.find_portType( binding.expand( binding.get_type ) );
|
||||
port_op = type.find_operation( definitions.get_targetNamespace, operation.get_name );
|
||||
port_op.get_documentation %]
|
||||
[% type = definitions.find_portType( binding.expand( binding.get_type ) );
|
||||
port_op = '';
|
||||
FOREACH port_op = type.get_operation();
|
||||
IF (port_op.get_name == operation.get_name);
|
||||
LAST;
|
||||
END;
|
||||
END;
|
||||
|
||||
input_message_name = port_op.first_input.get_message();
|
||||
output_message_name = port_op.first_output.get_message();
|
||||
|
||||
input_message = definitions.find_message(port_op.first_input.expand(input_message_name));
|
||||
output_message = definitions.find_message(port_op.first_output.expand(output_message_name));
|
||||
|
||||
input_parts = input_message.get_part();
|
||||
output_parts = output_message.get_part();
|
||||
|
||||
# port_op.get_documentation
|
||||
%]
|
||||
|
||||
sub [% operation.get_name %] {
|
||||
my ($self, $body, $header) = @_;
|
||||
# body is a ??? object - sorry, POD not implemented yet
|
||||
# header is a ??? object - sorry, POD not implemented yet
|
||||
|
||||
[%
|
||||
IF (input_parts.size() > 1); -%]
|
||||
# body is a list ref of the following objects:
|
||||
# [
|
||||
# sorry - POD support not implemented yet
|
||||
# ]
|
||||
[% ELSE;
|
||||
input_element = definitions.first_types.find_element(input_parts.0.expand(input_parts.0.get_element));
|
||||
IF (input_element);
|
||||
class = XSD.create_xsd_name( input_element );
|
||||
ELSE;
|
||||
input_type = definitions.first_types.find_type(input_parts.0.expand(input_parts.0.get_type));
|
||||
class = XSD.create_xsd_name( input_type );
|
||||
END;
|
||||
-%]
|
||||
# body is a [% class %] object
|
||||
[%-
|
||||
END;
|
||||
%]
|
||||
# header is a ??? object - sorry, POD support not implemented yet
|
||||
# do something with body and header...
|
||||
|
||||
return [% INCLUDE Server/POD/Message.tt %]
|
||||
|
||||
Reference in new issue
Block a user