Questions tagged [soapfault]

The SOAP Fault element is defined as part of the W3C SOAP specification. The SOAP Fault element is used to carry error information within a SOAP message.

The SOAP Fault element defines the following four subelements:

faultcode
The faultcode element is intended for use by software to provide an algorithmic mechanism for identifying the fault. The faultcode MUST be present in a SOAP Fault element and the faultcode value MUST be a qualified name.

faultstring
The faultstring element is intended to provide a human readable explanation of the fault and is not intended for algorithmic processing. The faultstring element is similar to the 'Reason-Phrase' defined by HTTP. It MUST be present in a SOAP Fault element and SHOULD provide at least some information explaining the nature of the fault.

faultactor
The faultactor element is intended to provide information about who caused the fault to happen within the message path. It is similar to the SOAP actor attribute but instead it indicates the source of the fault. The value of the faultactor attribute is a URI identifying the source.

detail
The detail element is intended for carrying application specific error information related to the Body element. It MUST be present if the contents of the Body element could not be successfully processed.

Refer to the W3C Simple Object Access Protocol (SOAP) specification (Section 4.4) for additional information: http://www.w3.org/TR/2000/NOTE-SOAP-20000508/#_Toc478383507

139 questions
2
votes
1 answer

PHP SoapFault detail namespace

I'm trying to return a SoapFault from PHP SoapServer, but am stuck with creating the right format of response. When handling exceptions, I am returning: $detail = "message"; return new SoapFault("Client", "ValidationException", null, $detail,…
Jakub Žitný
  • 962
  • 1
  • 9
  • 38
2
votes
1 answer

PHP SoapServer addSoapHeader ignored with SoapFault

I have written a PHP SOAP Service that accepts Basic Authentication credentials as outlined at http://www.whitemesa.com/soapauth.html. I did this by defining a method BasicAuth inside the handler class of the SOAPServer instance. This all works…
hackedd
  • 333
  • 1
  • 10
2
votes
1 answer

resolve SoapFault exception: [HTTP] Unable to parse URL

I work on a projet which use a Soap based webservice queried by PHP and 2 native smartphone apps (ios and android) , after some edits made by the webservice development team, things were broken on PHP side but no problems from smartphone apps. here…
Nico AD
  • 1,657
  • 4
  • 31
  • 51
2
votes
2 answers

WCF Message.IsFault

I am trying to write a test and need to create a Message object with the IsFault property set to true. However, this property only has a getter. Does anyone know the best way to create a message where this property would be set to true? Thanks
Jon Archway
  • 4,852
  • 3
  • 33
  • 43
2
votes
1 answer

UPS Shipping API Integration Error (PHP)

I download the ShippingGroundFreightWebService PHP examples from UPS.com. I got following error message: SoapFault Object ( [message:protected] => An exception has been raised as a result of client data. [string:private] => [code:protected] =>…
Andy Ye
  • 21
  • 3
1
vote
2 answers

android soapfault error

I am a begginer in android,here I have activity that use web service: SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); GetBoundData val = new GetBoundData() { }; PropertyInfo pi = new PropertyInfo(); …
Hamhame
  • 47
  • 1
  • 10
1
vote
1 answer

soapfault: Couldn't create SOAP message

11-23 16:19:30.085: SoapFault - faultcode: 'S:Client' faultstring: 'Couldn't create SOAP message due to exception: Unable to create StAX reader or writer' faultactor: 'null' detail: null 11-23 16:19:30.085: at…
polarw
  • 11
  • 2
1
vote
0 answers

Getting stream closed error for get the details of SoapFaultClientException in weblogic 12c

I am trying to get the values inside this soap fault's "detail". The response from the server: S:Server AuthException
Behrouz Takhti
  • 133
  • 1
  • 1
  • 11
1
vote
0 answers

Spring WebService, Spring Boot, SoapFault with SOAPFaultException in SOAP 1.2 not showing attributes like Details, Role

im developing SOAP WebService Server with Spring boot with SOAP 1.2 Protocol. Im trying to fill the SOAPFault with all details it needs and throwing wrapped in SOAPFaultException. But the SOAPFault response in SOAPUI is not showing the detail…
Erik Bors
  • 133
  • 1
  • 14
1
vote
1 answer

What's the Fault element declaration in WSDL good for?

In WSDL, the wsdl:Fault element declares the structure of SOAP fault messages the service may return. Or more precisely, it declares the structure of the element of the SOAP fault message. Q: What precisely is the purpose of this wsdl:Fault…
xarx
  • 627
  • 1
  • 11
  • 27
1
vote
1 answer

How to Throw WCF Exception with Customized Soap Header and Body

I know how to use [FaultException] and throw Customized [DataContract] in WCF I know how to return soap message with Customized Headers and Body Tags using [MessageContract] However, I'm going to ask: How to throw a [FaultException] in WCF with…
Vincent
  • 49
  • 3
1
vote
0 answers

How to pass xsi type of parameter in PHP SoapClient

I am trying to consume soapclient based API of https://developer.signicat.com/documentation/signing/get-started-with-signing/full-flow-example/ There are tow methods of it 1- you have to upload a document and it returns you an SDS ID, this part…
Kamran K
  • 11
  • 1
1
vote
0 answers

The SOAP function called with localhost, works, when I call with external IP and port, returns Forbidden error

Function called: public function getAcces($plngVersiune, $pstrNumeFirma, $pstrUtilizator, $pstrParolaSecurizata, $wsdl) { $this->plngVersiune = $plngVersiune; $this->pstrNumeFirma = $pstrNumeFirma; …
1
vote
1 answer

SOAP Fault response from Wiremock not detected as SOAPFault by API-Connect 2018

When I call the actual SOAP service (using Postman and SoapUI) with an invalid parameter value, it causes a SOAP-Fault response, with HTTP 200 . I copied the body of the response into a Wiremock response file, whose corresponding mapping file…
Hummingtop
  • 25
  • 1
  • 7
1
vote
0 answers

Catching SOAPFault in faultSequence

My objective is to ensure that a SOAPFault originating from a SOAP service should propagate to the caller proxy's faultSequence (by default, it goes to the out sequence). However, setting it up as documented (by setting the property…
Jang-Vijay Singh
  • 732
  • 3
  • 11