SAP::SOAP - Perl extension to translate to and from SOAP calls
use SAP::SOAP; $rfc = new SAP::SOAP( ASHOST => 'myhost', USER => 'ME', PASSWD => 'secret', LANG => 'EN', CLIENT => '200', SYSNR => '00', TRACE => '1' );
my $sr =<<EOF; <?xml version="1.0" encoding="iso-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/envoding/" xmlns:xsd="http://www.w3c.org/1999/XMLSchema" xmlns:xsi="http://www.w3c.org/1999/XMLSchema-instance"> <SOAP-ENV:Body> <rfc:RFC_READ_TABLE xmlns:rfc="urn:sap-com:document:sap:rfc:functions"> <DELIMITER>|</DELIMITER> <QUERY_TABLE>TRDIR </QUERY_TABLE> <ROWCOUNT>5</ROWCOUNT> <ROWSKIPS>0</ROWSKIPS> <FIELDS> </FIELDS> <DATA> </DATA> <OPTIONS> <item> <TEXT>NAME LIKE 'RS%' </TEXT> </item> </OPTIONS> </rfc:RFC_READ_TABLE> </SOAP-ENV:Body> </SOAP-ENV:Envelope> EOF
print $rfc->soapCall( $sr );
$rfc->close();
The best way to discribe this package is to give a brief over view, and then launch into several examples.
soapRequest Translate a SOAP request into an SAP::Iface object ready for a call via SAP::Rfc.
soapCall Accepts a SOAP request, processes the SAP RFC and provides a SOAP response or fault.
soapFault Accepts fault code, fault string, and a fault description - Returns a SOAP fault response.
Piers Harding, piers@ompa.net.
But Credit must go to all those that have helped.
perl(1), SAP::Rfc(3), SAP::Iface(3), SOAP::Lite(3).
To install SAP::Rfc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SAP::Rfc
CPAN shell
perl -MCPAN -e shell install SAP::Rfc
For more information on module installation, please visit the detailed CPAN module installation guide.