簡體   English   中英

如何處理肥皂錯誤,例如在WSDL中找不到WSDL或在PHP中找不到服務器?

[英]How to handle soap error such as WSDL not found or Server not found in PHP?

我該怎么辦

  1. 使用PHP處理Soap錯誤/錯誤?
  2. 將錯誤或故障狀態發送到客戶端腳本?

在肥皂客戶端上:

try{ 
} catch a SoapFault

在服務器端,您可以根據需要將所有異常定向到SoapFault。

本教程涉及Zend Soap,但應該有所幫助:

http://www.ibm.com/developerworks/webservices/library/x-zsoap/

編輯

這是有關Soap Server處理錯誤的最佳方法的另一種討論:

http://zend-framework-community.634137.n4.nabble.com/Zend-SOAP-server-what-is-the-best-approach-for-error-exception-handling-td676006.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM