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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.