Author image Pierre Denis
and 1 contributors

NAME

WSDL::Generator::Binding - Generate wsdl messages and portType for WSDL::Generator

SYNOPSIS

  use WSDL::Generator::Binding;
  my $param = { 'services'     => 'AcmeTravelCompany',
                                'service_name' => 'Book_a_Flight' };
  my $bind = WSDL::Generator::Binding->new($param);
  $bind->add_request('GetPrice');
  $bind->add_response('GetPrice');
  print $bind->get_message->to_string;
  print $bind->get_porttype->to_string;
  print $bind->get_binding->to_string;

CONSTRUCTOR

new($param)

  $param = {    'services'     => 'AcmeTravelCompany',
                                'service_name' => 'Book_a_Flight' };
$param is optional.
Returns WSDL::Generator::Binding object

METHODS

add_request($method)

Adds a method with its request for binding

add_reponse($method)

Adds a method with its response for binding

generate($param)

  $param = {    'services'     => 'AcmeTravelCompany',
                                'service_name' => 'Book_a_Flight' };
$param is optional.
Prepare a wsdl structure ready to be fetched

get_message()

Returns WSDL message object

get_porttype()

Returns WSDL porttype object

get_binding()

Returns WSDL binding object

SEE ALSO

  WSDL::Generator

AUTHOR

"Pierre Denis" <pdenis@fotango.com>

COPYRIGHT

Copyright (C) 2001, Fotango Ltd - All rights reserved. This is free software. This software may be modified and/or distributed under the same terms as Perl itself.