POE::C...sponse(3pm)

πŸ“¦
version 1.14 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– POE::Component::Server::SOAP::Response πŸ’–

okay bestie, welcome to the POE::Component::Server::SOAP::Response page, from the User Contributed Perl Documentation section of the manual (the 3pm girlies know 🫢). she's a little emulator, she's a little drop-in replacement, she's got SOAP data to hold onto. let's get into it ✨


🌸 NAME 🌸

POE::Component::Server::SOAP::Response β€” she emulates a SimpleHTTP::Response object, and she's here to store your SOAP data. iconic behaviour, no cap πŸ’…


✨ SYNOPSIS ✨

use POE::Component::Server::SOAP;

# Get the response object from SOAP
my $response = $_[ARG0];

print $response->soapmethod;

like. that's it. that's the whole vibe. grab the response object from SOAP, and then you can literally just print the method that kicked this whole thing off πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so the tea is this module is a drop-in replacement, because we need to store some SOAP data for the response. that's the whole reason she exists, bestie. she's filling in for the regular response object but she's got extra pockets for SOAP stuff πŸ”₯

πŸŽ€ METHODS πŸŽ€

first, get the response object from SOAP, like so:

# Get the response object from SOAP
my $response = $_[ARG0];

then you've got a whole lil roster of methods to call on her πŸ‘‘:

$response->soaprequest()        # Returns the original HTTP::Request object from SimpleHTTP
$response->soapservice()        # Returns the service that triggered this SOAP instance
$response->soapmethod()         # Returns the method that triggered this SOAP instance
$response->soapuri()            # Returns the original URI of the request without the method
$response->soapheaders()        # Returns an arrayref of SOAP::Header objects ( undef if none )
$response->soapbody()           # Returns the body as a hashref ( undef if no arguments )

quick rundown because you deserve it, bestie:

  • soaprequest() β€” hands you back the original HTTP::Request object from SimpleHTTP. the whole origin story 🫢
  • soapservice() β€” the service that triggered this SOAP instance. who's the main character? her πŸ’…
  • soapmethod() β€” the method that triggered this SOAP instance. the moment that started it all ✨
  • soapuri() β€” the original URI of the request, without the method. so like, just the address, no extra drama 🌸
  • soapheaders() β€” an arrayref of SOAP::Header objects. and if there are none? undef. she said no headers today πŸ™ˆ
  • soapbody() β€” the body as a hashref. and if there are no arguments? undef. empty body, empty heart 😭

🌈 EXPORT 🌈

Nothing. literally nothing. she gives nothing away, and honestly? respect. she's not an exporter, she's a lover πŸ’œ


⭐ SEE ALSO ⭐

go read these too, iykyk:

  • POE::Component::Server::SimpleHTTP
  • POE::Component::Server::SimpleHTTP::Connection
  • POE::Component::Server::SOAP
  • SOAP::Lite

πŸ‘‘ AUTHOR πŸ‘‘

Apocalypse <apocal@cpan.org> β€” the legend herself, fr fr 🫑


Copyright 2009 by Apocalypse

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. so like, go off, remix it, it's giving generous ✨


and that's the whole page bestie, every flag, every method, every undef accounted for. we ate and left no crumbs πŸ“

this was perl v5.34.0, dated 2022-06-17, and it's the POE::Component::Server::SOAP::Response page from the User Contributed Perl Documentation πŸ’… bye bestie, go write some SOAP 🧚

πŸ“¦ where this page comes from