Note that there are some explanatory texts on larger screens.

plurals
  1. POPHP SOAP doesn't catch SAP PI/XI SOAP fault
    text
    copied!<p>I do SOAP request to SAP PI web service. This service return SOAP fault like that:</p> <pre><code>&lt;SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"&gt; &lt;SOAP:Body&gt; &lt;SOAP:Fault&gt; &lt;faultcode&gt;SOAP:Server&lt;/faultcode&gt; &lt;faultstring&gt;Server Error&lt;/faultstring&gt; &lt;detail&gt; &lt;s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0"&gt; &lt;context&gt;XIAdapter&lt;/context&gt; &lt;code&gt;ADAPTER.JAVA_EXCEPTION&lt;/code&gt; &lt;text&gt;com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve binding for the given channelId: Binding:CID=null; at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId(AbstractLookupManager.java:173) at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:449) .... at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)&lt;/text&gt; &lt;/s:SystemError&gt; &lt;/detail&gt; &lt;/SOAP:Fault&gt; &lt;/SOAP:Body&gt; &lt;/SOAP:Envelope&gt; </code></pre> <p>In PHP i do follow:</p> <pre><code>$client = new SoapClient('path/to/wsdl', array( 'cache_wsdl' =&gt; WSDL_CACHE_NONE, 'exceptions' =&gt; true, 'login' =&gt; 'some_login', 'password' =&gt; 'some_password', )); $result = $client-&gt;some_funtion("bla-bla-bla"); var_dump($result); </code></pre> <p>and it print <em>null</em>, but should thow exception</p> <p>If i output the same xml (soap fault) in my own web service i catch it ok.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload