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

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

Expand Messages
  • Todd Tyree
    Hi Luc, You re welcome. Should be exactly like the previous example: print SOAP::Lite - uri($endpoint) - proxy($proxy) - call(
    Message 1 of 3 , Mar 4, 2004
    • 0 Attachment
      Hi Luc,

      You're welcome. Should be exactly like the previous example:

      <example>
      print SOAP::Lite
      ->uri($endpoint)
      ->proxy($proxy)
      ->call(
      name('sessionID')->value(somevalue),
      name('applicationID')->value(somevalue),
      name('event')
      =>(
      name('sessionID')->value(somevalue),
      name('description')->value(somevalue),
      '''
      )
      )
      ->result;
      </example>

      Turn +trace on to see exactly what you're sending, but I thing that will
      do the job.

      Best,
      Todd

      Luc Prieur wrote:
      > Hi Todd,
      >
      >
      >
      > Thanks for the answer. However, I am still confused on how to specify
      > the following data structure (the part in red).
      >
      >
      >
      > Many thanks again.
      >
      >
      >
      > <example>
      >
      >
      >
      > <sessionID>somestring</sessionID>
      >
      > <applicationID>somestring</applicationID>
      >
      > <event>
      >
      > <eventID>somenumber</eventID>
      >
      > <description>sometext</description>
      >
      > </event>
      >
      >
      >
      > </example>
      >
      >
      >
      > Luc Prieur
      >
      > Sales & Technology
      >
      > PhoneBox Entertainment Inc.
      >
      > Office: +1-450-979-5209
      >
      > Mobile: +1-514-994-6191
      >
      > www.phonebox-e.com
      >
      >
      >
      > -----Original Message-----
      > *From:* Todd Tyree [mailto:todd@...]
      > *Sent:* March 4, 2004 3:32 AM
      > *To:* lucprieur
      > *Cc:* soaplite@yahoogroups.com
      > *Subject:* Re: [soaplite] Very simple SOAP::Lite question
      >
      >
      >
      > 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/');
      > <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
      >>
      >>
      >>
      >>
      >>
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      > *Yahoo! Groups Links*
      >
      > · To visit your group on the web, go to:
      > http://groups.yahoo.com/group/soaplite/
      >
      >
      > · To unsubscribe from this group, send an email to:
      > soaplite-unsubscribe@yahoogroups.com
      > <mailto:soaplite-unsubscribe@yahoogroups.com?subject=Unsubscribe>
      >
      >
      > · Your use of Yahoo! Groups is subject to the Yahoo! Terms of
      > Service <http://docs.yahoo.com/info/terms/>.
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.