SOAP::Lite માં endpoint અને forward proxy
SOAP endpoint અને HTTP transport નું proxy map SOAP::Lite માં યોગ્ય જગ્યાએ મૂકો.
SOAP::Lite માં proxy() માટેનો પ્રથમ argument SOAP endpoint છે. forward network proxy HTTP transport ના વિકલ્પોમાં જાય છે:
use SOAP::Lite;
my $soap = SOAP::Lite->new;
$soap->proxy(
'https://service.example/soap',
proxy => ['https' => 'http://gateway.example:8080'],
timeout => 15,
);બહારની method સેવા પસંદ કરે છે. અંદરનું map LWP-આધારિત transport ને HTTPS લક્ષ્યો માટે HTTP proxy આપે છે, CONNECT વાપરીને. આ વિકલ્પ ત્યાં લાગુ કરો જ્યાં એપ્લિકેશનનો વાસ્તવિક SOAP::Lite ઑબ્જેક્ટ બનાવવામાં આવે છે, જ્યારે wrapper તેને બનાવે ત્યારે પણ. જાહેર SOAP endpoint માટે જ્યાં પ્રમાણીકરણ વગરનું જાહેર મધ્યસ્થ સ્વીકાર્ય હોય, ત્યાં HTTP proxy યાદી અંદરના proxy URL માટે ઉમેદવારો આપે છે.
સેવાનું namespace તેના SOAP સંદેશાઓ માટે ગોઠવાયેલું રાખો. તે URI XML નામો ઓળખે છે અને બંને નેટવર્ક endpoint માંથી એક પણ બદલતું નથી.