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

3220Re: [soaplite] does it make sense to give no return value?

Expand Messages
  • Tilman Baumann
    Dec 8, 2003
      Nice. Now i can give really sensefull faultmessages.

      But im allready not sure what i have to return on success. Well i can
      return a string 'true' or 'success' but is this the common way?

      Jens Puruckherr wrote:
      > Tilman Baumann <Tilman.Baumann@...> writes:
      >
      >>Is that the right thinking? What is the common way? Is it supposed
      >>to do
      >>this in this way?
      >>
      >>I get a empty <s-gensym3 xsi:type="xsd:string"/> back. That looks a
      >>bit
      >>strange. :) (soapreturn below)
      >
      >
      > I have replaced every die() with my die_with_fault(). So can I return
      > my own fault-massage to the client.
      > The client and his logs now know exactly what ist happen.
      >
      > #############################################################################
      > sub die_with_fault {
      > #############################################################################
      > my ($self,$code,$string,$detail) = @_;
      >
      > use SOAP::Lite;
      > # Generiert eine Schöne Faultmessage für Soap
      > die SOAP::Fault->faultcode($code) # will be qualified
      > ->faultstring($string)
      > ->faultdetail($detail);
      > }
      >
      >>
      >
      > Mit freundlichen Grüßen
      >
      > Jens Puruckherr
      >
      >


      --
      Tilman Baumann

      pyramid computer GmbH
      Boetzinger Strasse 60 D-79111 Freiburg

      ----------------------------------
      They who would give up an essential liberty for temporary security, deserve
      neither liberty or security
      - Benjamin Franklin
    • Show all 4 messages in this topic