Loading ...
Sorry, an error occurred while loading the content.

dispatch without method

Expand Messages
  • tilmant_a
    Hello, I tried to write a soap server (perl cgi). The server receive this request :
    Message 1 of 1 , Apr 26 2:24 AM
    • 0 Attachment

      Hello,

      I tried to write a soap server (perl cgi). The server receive this request :

      <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:wsmancat="http://schemas.xmlsoap.org/ws/2005/06/wsmancat" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">

      <env:Header><wsa:MessageID>urn:uuid:89e30458-2e4b-76a3-8d24-c10afacc1a88</wsa:MessageID>

      <wsa:To>http://localhost:80/cgi-bin/events_4.cgi</wsa:To></env:Header><env:Body /></env:Envelope>

      When it receives the request I just want to write something in a file.

      So I wrote  a file named events_4.cgi:

      #!D:\Perl\bin\perl.exe
      use events_4;
      use SOAP::Lite;
      use SOAP::Transport::HTTP;
      $request =SOAP::Transport::HTTP::CGI
      ->request;
       SOAP::Transport::HTTP::CGI
      ->dispatch_with('http://schemas.xmlsoap.org/ws/2004/08/addressing#MessageID'=>'events_4')
      ->handle;

      and a file events_4.pm

      package events_4;

      use SOAP::Lite;
      sub MessageID{open (FIC4,'>D:\titi');    
                                       print FIC4 ("TEST WRITE ");
                                       close(FIC4);
      }
      1;

      Each time I have the error  :can't find method element in the message.  So what I am doing wrong ? I can't modified the request. I think the error is the name of my sub but I don't know what name I have to write.

      Thanks a lot,

      Amelie

       


       

    Your message has been successfully submitted and would be delivered to recipients shortly.