soap::lite question

--===============0586927618==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_E89BB53E33CBDA43BB99E7ED011C7C150BC511EEAAxch angejimsok_"

--_000_E89BB53E33CBDA43BB99E7ED011C7C150BC511EEAAxchangejims ok_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

greetings and merry Christmas to all,
I'm using SOAP::Lite in a perl app on a windows server running perl 5.10.0,=
to connect to a web service. it mostly works fine except i sometimes am ge=
tting a 400 Bad Request error sent back by the web service. I'm not too fam=
iliar with the use of SOAP, and my question involves the following snippet:

my $soap =3D SOAP::Lite
-> uri('https://services.websiteurl.com/')
-> on_action( sub { join '/', 'https://services.websiteurl.com', $_[1] =
} )
-> proxy('https://services.websiteurl.com/ReferralServices/Warm xfer.asm=
x');

my $method =3D SOAP::Data->name('service_name')
->attr({xmlns =3D> 'https://services.websiteurl.com/'});

note the $_[1] reference in the ON_ACTION line. I can't figure out what the=
value of $_[1] is or when it's being resolved to determine its value. it a=
ppears to have no value immediately preceding the snippet above, nor does i=
t have a value immediately preceding this line of code later in the program=
:
eval { $result =3D $soap->call($method =3D> [at] params=
) };

please let me know if you know how I can determine the value of $_[1]. much=
thanks.

John DePasquale
IT Manager
Law Offices of James Sokolove
1340 Centre Street - Suite 102
Newton, MA 02459
Direct line: 617-467-6932
Fax: 617-964-4336
This email is intended solely for the use of the individual to whom it is a=
ddressed and may contain information that is privileged, confidential or ot=
herwise exempt from disclosure under applicable law. If the reader of this =
email is not the intended recipient or the employee or agent responsible fo=
r delivering the message to the intended recipient, you are hereby notified=
that any dissemination, distribution, or copying of this communication is =
strictly prohibited. If you have received this communication in error, plea=
se immediately notify us by telephone and return the original message to us=
at the listed email address. Thank You.


--_000_E89BB53E33CBDA43BB99E7ED011C7C150BC511EEAAxchangejims ok_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc=
hemas-microsoft-com:office:word" xmlns:st1=3D"urn:schemas-microsoft-com:off=
ice:smarttags" xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"place"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"PostalCode"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"State"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"City"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"Street"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"address"/>
<o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
[at] font-face
{font-family:"Microsoft Sans Serif";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
[at] page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>greetings and merry Christmas to all,<o:p></o:p></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>I’m using SOAP::Lite in a perl app on a windows se=
rver
running perl 5.10.0, to connect to a web service. it mostly works fine exce=
pt i
sometimes am getting a 400 Bad Request error sent back by the web service. =
I’m
not too familiar with the use of SOAP, and my question involves the followi=
ng
snippet:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>my $soap =3D SOAP::Lite<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    -> uri('https://services.websiteur=
l.com/')<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    -> on_action( sub { join '/', 'htt=
ps://services.websiteurl.com',
$_[1] } )<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>    -> proxy('https://services.website=
url.com/ReferralServices/Warmxfer.asmx');<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>my $method =3D SOAP::Data->name('service_name')<o:p><=
/o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>      ->attr({xmlns =3D> =
'https://services.websiteurl.com/'});<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>note the $_[1] reference in the ON_ACTION line. I can=
217;t
figure out what the value of $_[1] is or when it’s being resolved to
determine its value. it appears to have no value immediately preceding the
snippet above, nor does it have a value immediately preceding this line of =
code
later in the program:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>         &n=
bsp;            =
;  eval { $result =3D
$soap->call($method =3D> [at] params) };<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'>please let me know if you know how I can determine the v=
alue
of $_[1]. much thanks.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span style=3D'font-size:1=
0.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>

<p class=3DMsoNormal><st1:PersonName w:st=3D"on"><font size=3D2 color=3Dnav=
y
face=3D"Times New Roman"><span style=3D'font-size:10.0pt;color:navy'>John
DePasquale</span></font></st1:PersonName><font color=3Dnavy><span
style=3D'color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3D"Times New Roman"><=
span
style=3D'font-size:10.0pt;color:navy'>IT Manager</span></font><font color=
=3Dnavy><span
style=3D'color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3D"Times New Roman"><=
span
style=3D'font-size:10.0pt;color:navy'>Law Offices of James Sokolove</span><=
/font><font
color=3Dnavy><span style=3D'color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><st1:Street w:st=3D"on"><st1:address tabIndex=3D"0"
style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://iet=
ag.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st=3D"on"><font size=3D2 color=3Dnavy face=3D"Times New Roman"><span
style=3D'font-size:10.0pt;color:navy'>1340 Centre Street</span></font></s=
t1:address></st1:Street><font
size=3D2 color=3Dnavy><span style=3D'font-size:10.0pt;color:navy'> – =
<st1:address
tabIndex=3D"0"
style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta=
g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x"
w:st=3D"on"><st1:Street w:st=3D"on">Suite</st1:Street> 102</st1:address></s=
pan></font><font
color=3Dnavy><span style=3D'color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><st1:place w:st=3D"on"><st1:City w:st=3D"on"><font siz=
e=3D2
color=3Dnavy face=3D"Times New Roman"><span style=3D'font-size:10.0pt;col=
or:navy'>Newton</span></font></st1:City><font
size=3D2 color=3Dnavy><span style=3D'font-size:10.0pt;color:navy'>, <st1:S=
tate
w:st=3D"on">MA</st1:State> <st1:PostalCode w:st=3D"on">02459</st1:PostalCo=
de></span></font></st1:place><font
color=3Dnavy><span style=3D'color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3D"Times New Roman"><=
span
style=3D'font-size:10.0pt;color:navy'>Direct line: 617-467-6932</span></fon=
t><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3D"Times New Roman"><=
span
style=3D'font-size:10.0pt;color:navy'>Fax: 617-964-4336</span></font><font
color=3Dnavy><span style=3D'color:navy'><o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Microsoft Sans Serif"><span
style=3D'font-size:7.5pt;font-family:"Microsoft Sans Serif"'>This email is
intended solely for the use of the individual to whom it is addressed and m=
ay
contain information that is privileged, confidential or otherwise exempt fr=
om
disclosure under applicable law. If the reader of this email is not the
intended recipient or the employee or agent responsible for delivering the
message to the intended recipient, you are hereby notified that any dissemi=
nation,
distribution, or copying of this communication is strictly prohibited. If y=
ou
have received this communication in error, please immediately notify us by
telephone and return the original message to us at the listed email address=
..
Thank You.</span></font><font size=3D1 face=3D"Microsoft Sans Serif"><span
style=3D'font-size:7.5pt;font-family:"Microsoft Sans Serif"'><o:p></o:p></s=
pan></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D=
'font-size:
12.0pt'><o:p> </o:p></span></font></p>

</div>

</body>

</html>

--_000_E89BB53E33CBDA43BB99E7ED011C7C150BC511EEAAxchangejims ok_--

--===============0586927618==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ActivePerl mailing list
ActivePerl [at] listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0586927618==--
John DePasquale [ Mi, 24 Dezember 2008 18:44 ] [ ID #1982261 ]
Perl » gmane.comp.lang.perl.active-perl » soap::lite question

Vorheriges Thema: Does anyone know how to submit a patch to CPAN?
Nächstes Thema: Graeme Lawry/AU/ITS/ORICA is out of the office