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

3400Re: [soaplite] Very simple SOAP::Lite question

Expand Messages
  • Todd Tyree
    Mar 4, 2004
    • 0 Attachment
      Luc,

      Try using ->call instead:

      <example>
      import SOAP::Data 'name';

      print SOAP::Lite
      ->uri($endpoint)
      ->proxy($proxy)
      ->call(
      name('authoriseApplicationEvent')
      ->attr({'xmlns' => 'some namespace'}) # Optional
      =>(
      name('sessionID')->value($sessionID),
      name('applicationID')->value($applicationID),
      '''
      )
      )
      ->result;
      </example>

      Also, if you're running against a .NET server, you'll almost certainly
      have to set ->on_action.

      Hope that helps,
      Best,
      Todd

      lucprieur wrote:
      > Hi All,
      >
      > I am trying to do a very simple thing... please help me, I really
      > don't know how to move forward (I have read all SOAP Lite docs,
      > guides, and books...with no answers)..
      >
      > I am building a SOAP client. The client needs to send the following
      > data:
      >
      > applicationID -> string
      > sessionID -> string
      > event ->
      > eventID -> string
      > description -> string
      >
      > I do not know how to specify the "event" data element.. Please help
      > me!!
      >
      >
      > what I have now is:
      >
      > #!perl -w
      >
      > use SOAP::Lite;
      >
      > use SOAP::Lite +trace => qw(result);
      >
      > my $soap = SOAP::Lite
      > -> uri('http://somewhere/wsdl/service/1.0')
      > -> proxy('https:///somewhere/soap/1.0/');
      >
      > my $result = $soap->authoriseApplicationEvent(
      > SOAP::Data->name(sessionID => 'rwr4rewr'),
      > SOAP::Data->name(applicationID => '650238'),
      > ??? SOAP::Data->name('event')->value(???)
      > );
      >
      > unless ($result->fault)
      > {
      > print $result->result();
      > }
      > else
      > {
      > print join ', ',
      > $result->faultcode,
      > $result->faultstring;
      > }
      >
      >
      > It seems to crap out on the line identified with ????
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
    • Show all 3 messages in this topic