rpos icon indicating copy to clipboard operation
rpos copied to clipboard

XML for Fault Codes

Open RogerHardiman opened this issue 8 years ago • 3 comments

Hi tried some of the unimplemented methods and verified them with the XML validity checker in SoapUI.

I think the fault responses are incorrect and should be like this (plus extra error codes for the future) Even so, this is not 100% correct. It needs a lang='en' attribute on the Text field

var SENDER_NOT_AUTHORIZED = {
  Fault: {
    Code: {
      Value: "soap:Sender",
      Subcode: {
        Value: "soap:NotAuthorized",
      }
    },
    Reason: {
      Text: "Sender not authorized"
    }
  }
};


var UNKNOWN_ACTION = {
  Fault: {
    Code: {
      Value: "soap:Sender",
      Subcode: {
        Value: "soap:UnknownAction",
      }
    },
    Reason: {
      Text: "Unknown Action"
    }
  }
};

var NOT_IMPLEMENTED = {
  Fault: {
    Code: {
      Value: "soap:Sender",
      Subcode: {
        Value: "soap:ActionNotSupported"
      }
    },
    Reason: {
      Text: "Optional Action Not Implemented"
    }
  }
};

RogerHardiman avatar Aug 07 '16 20:08 RogerHardiman

Hi,

I have met similar problem with Text lang settings. I tried that: 'Text xml:lang="en"' : "The service is not supported"

and in generated soap message I have xml:lang="en" present but on the both side of the section which is neither not correct.

Have you maybe found any solution for this?

BR,

Krzysztof

klukaspl avatar Mar 10 '17 14:03 klukaspl

Hi @klukaspl I had not looked at the error messages any more since writing this Problem Report 9 months ago, partly as I was not 100% sure of the format of the error other than Soap UI was saying the reply was not correct.

RogerHardiman avatar May 19 '17 05:05 RogerHardiman

Hi @klukaspl I have just solved the issue of returning a valid Error XML from RPOS. I fixed it when adding Authentication and I pass a correctly formatted Sender Not Authorized error complete with xml:lang="en"

RogerHardiman avatar Dec 30 '18 13:12 RogerHardiman