You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Mahendra Chheda <mc...@Zantaz.com> on 2001/11/27 02:06:26 UTC

Sending File Attachment using SOAP::Lite

Hello,

I am trying to send a file via my soap method call (Perl client using
SOAP::Lite) to the apache based soap server. However, the format of my call
is giving me errors. Can someone pls guide me on how should the call be
structured. 

It seems to be a pretty rudimentary question but I could not see any
documentation at http://www.soaplite.com.

Thanx.

Mahendra
 

METHOD CALL
-----------
sendFile('file:.\1.xml','mmc')
         ^^^^^^^^^^^^^^

CLIENT CODE
-----------
use SOAP::Lite;

my $s = SOAP::Lite
   ->uri('urn:zantazapi')
   ->proxy('http://localhost:8080/soap/servlet/rpcrouter')
   ->sendFile('file:.\1.xml','mmc');
print $s->result();