SAP Knowledge Base Article - Preview

1958295 - SoapException functions getDetailMessage(), getFaultCode() and getFaultString() return empty strings

Symptom

A PowerBuilder Web services client application using the .NET Web service engine calls a Web service.

There is an error in the call and the Web service server responses with a Soap exception with detailed error information.

In the client application the SoapException function getMessage() returns a general error message, but the functions getDetailMessage(), getFaultCode() and getFaultString() only return empty strings.

 

Example response from the server:

 <?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode>S:Server</faultcode><faultstring>myfaultstring</faultstring><detail><ns2:myException xmlns:ns2="http://webservicedata.my.org/"><errorCode>my error</errorCode><message>my message</message></ns2:myException></detail></S:Fault></S:Body></S:Envelope>


Read more...

Environment

  • PowerBuilder 12.5.1
  • .NET Web service engine

Product

SAP PowerBuilder 12.5

Keywords

PowerBuilder Web services SoapException getDetailMessage getFaultCode getFaultString   , KBA , BC-SYB-PB , PowerBuilder , Bug Filed

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.