WSO2::WSF::WSMessage - Create a WSMessage object


WSO2-WSF-Perl documentation  | view source Contained in the WSO2-WSF-Perl distribution.

Index


NAME

Top

WSO2::WSF::WSMessage - Create a WSMessage object

SYNOPSYS

Top

  use WSO2::WSF::WSMessage;

  my $message = new WSO2::WSF::WSMessage( { WSMESSAGE_OPTIONS } );

  my $message = new WSO2::WSF::WSMessage( { 'payload' => 'payload in XML' } );

DESCRIPTION

Top

A WSMessage object can be used to store all the info in order to successfully consume a Web service. This could be passed to the request method after you create a WSClient object.

WSMESSAGE_OPTIONS

Top

wsfc_home

This is a mandatory options that contain the absolute folder of your WSF/C installation.

payload

Must give the payload as an XML string.

to

Should contain the end point URI of the service that you're going to consume. This is a mandatory options on the client side. If WS-Addressing is used this'll be used as the WSA to header.

action

This is used when creating WS-A header. This URI will help to uniquely identify the operation to be invoked. This is also used as the SOAP action regardless of useWSA is specified or not.

from

A URI indicating where the response came from. WS-A From.

replyTo

URI specifying where the response should be sent to. WS-A ReplyTo.

faultTo

URI specifying where the SOAP fault should be sent to in case of an error. WS-A FaultTo.

inputHeaders

This accept an array of WSHeader objects. Even if it's one header element you have to give it in an array.

my $header1 = new WSO2::WSF::WSHeader( { ... } );

my $client = new WSO2::WSF::WSMessage( { ... 'inputHeaders' => [ $header1 ], ... } );

SEE ALSO

Top

Look at WSO2::WSF::WSClient to see how to pass a WSMessage and consume an existing Web service.

Mailing list, bug tracker, svn info can be found on the project web site at http://wso2.org/projects/wsf/perl

AUTHOR

Top

WSO2 WSF/Perl Team

COPYRIGHT AND LICENSE

Top


WSO2-WSF-Perl documentation  | view source Contained in the WSO2-WSF-Perl distribution.