Jump to content

exceptions/soap : exception contains msg in faultstring but not getMessage()


10011010

Recommended Posts

Hi,

 

  I have some webservices which return a soap fault on a failed login, which the php SoapClient turns into a php exception. Calling getMessage() for the exception returns the error string I initally threw the exception with.

 

Thats on a machine running php 5.2.0. The server I'm trying to deploy to runs php 5.0.4. getMessage() here is empty. when I var_dump the exception, I see the string I expect is in "faultstring" but is not returned by getMessage().

 

Was there a change in the contruction of php exceptions from the php soap library between these versions? I'm relatively new to soap and webservices so any insight is welcome. Upgrading php on the target host is not very possible.

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.