This discussion is archived
1 Reply Latest reply: Oct 11, 2010 8:55 PM by 682629 RSS

Salt - how to get tpfail code from tuxedo service ?

804487 Newbie
Currently Being Moderated

My app returns tpfail like this:

tpreturn(TPFAIL, -200, (char *)outBuf, 0L, 0);

how should I write wsdl file to get this '-200' code (or maybe mif file) ?

  • 1. Re: Salt - how to get tpfail code from tuxedo service ?
    682629 Journeyer
    Currently Being Moderated

    If you're using the GWWS, the documentation at
    describes an "Outbound SOAP Fault Errbuf Definition" in Table 4-3. When a TPFAIL occurs, the detail field will be fo the form "tpurcode = %ld, Application error message: %s". (The "Application error message: %s" is included only if the application returns data.)

    If you're using SCA, the documentation at
    contains a "Handling TPFAIL Data" section which describes an abe.getData() method to get data returned by the application. There is a similar method "const long getTpurcode() const;" which can be called to get the tpurcode value. getTpurcode() is included in <tuxsca.h> although it is not mentioned in the SCA Programming Guide.




  • Correct Answers - 10 points
  • Helpful Answers - 5 points