Help for this page

Select Code to Download


  1. or download this
    $svc = SOAP::Lite 
    -> service('http://localhost:8000/Hello.wsdl') 
    ...
    -> on_action(sub {sprintf '%s/%s', @_}); 
    
    $resp = $svc->Hello("Jimmy");
    
  2. or download this
    <readmore title ="See the code">
    $resp = $svc->call(SOAP::Data->name('Hello') 
    ->attr ({'xmlns'=>'sth'}) 
    => SOAP::Data->name('')->value("Jimmy"));
    
  3. or download this
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi=htt
    +p://www.w3.org/1999/XMLSchema-instance xmlns:SOAP-ENC=http://schemas.
    +xmlsoap.org/soap/encoding/ xmlns:SOAP-ENV="http://schemas.xmlsoap.org
    +/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-EN
    +V:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV
    +:Body><Hello xmlns="sth"><c-gensym3>Jimmy</c-gensym3></Hello></SOAP-E
    +NV:Body></SOAP-ENV:Envelope>
    
  4. or download this
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi=htt
    +p://www.w3.org/1999/XMLSchema-instance xmlns:SOAP-ENC=http://schemas.
    +xmlsoap.org/soap/encoding/ xmlns:SOAP-ENV="http://schemas.xmlsoap.org
    +/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-EN
    +V:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV
    +:Body><Hello xmlns="sth">Jimmy</Hello></SOAP-ENV:Body></SOAP-ENV:Enve
    +lope>