PHP SOAP error catching

后端 未结 7 1333
北恋
北恋 2020-12-14 07:49

I\'m getting desperate, all I want is simple error handling when the PHP SOAP Web Service is down to echo an error message login service down. Please help me!

7条回答
  •  盖世英雄少女心
    2020-12-14 08:03

    Everything turned out to be much more trivial - when using namespaces, be sure to specify the root ns! Those catch (SoapFailt $fault) - is wrong, right way catch (\SoapFault $fault)

提交回复
热议问题