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
3
votes
1 answer

php try catch error reporting

I have an application which relies on a soap server to produce content. Additionally authentication to the site is based on a separate LDAP server. Obviously if either of these are down or not responding the site is down. I am trying to lay out…
Chris
  • 11,780
  • 13
  • 48
  • 70
3
votes
3 answers

ASP.Net Web Service - What is the correct way to add a detail element to a SOAP fault response that works for both SOAP 1.1 and SOAP 1.2?

ASP.Net 2.0 Web Services automatically create both SOAP 1.1 and SOAP 1.2 bindings. Our web service, however, has SOAP extensions and custom exception handling that make the assumption that only the SOAP 1.1 binding is used (for example, the SOAP…
GBegen
  • 6,107
  • 3
  • 31
  • 52
3
votes
1 answer

Intercept deserialization errors in WCF

I was recently asked by a security team if it was possible to change the message returned from deserialization issues within a WCF service. The error in question was when they intercepted the message and passed an integer that was outside the bounds…
Tom Fobear
  • 6,729
  • 7
  • 42
  • 74
3
votes
1 answer

How do I access the section in a SOAP Fault when there is no FaultContract defined?

I am using WCF to connect to a business partner's web service. The web service does not have a defined fault contract - there are no elements in the WSDL. When a fault occurs I get back a response like so (namespaces pruned for…
Scott Mitchell
  • 8,659
  • 3
  • 55
  • 71
3
votes
1 answer

Android : Ksoap2 SoapFault - faultcode: 'soap-env:Server' faultstring: 'Processing Error. More details in WS Error Log'

I am using KSoap2 to access SAP web service. below is my code package com.example.getcustomerwsdl; public class GetCustomerActivity extends Activity { static final int CONNECTING_PROGRESS_DIALOG = 0; private static final String TAG =…
Rana Osama
  • 1,313
  • 2
  • 17
  • 27
3
votes
1 answer

Php SoapClient verify_peer=>true fails with ca-signed certificate

When doing a soap request to a https soap server using php:s SoapClient fails with a SoapFault: faultstring: Could not connect to host faultcode: HTTP I have to be sure that the soap servers ssl certificate is valid so i am using
Macke
  • 333
  • 1
  • 4
  • 10
3
votes
1 answer

PHP SoapClient - SOAP ERROR Fatal error couldn't load from external entity

I'm using PHP SoapClient in order to connect to a webservice. $this->client = new SoapClient($this->wsdl, array('trace'=>true, 'cache' => WSDL_CACHE_DISK)); I have many requests each day and sometimes i'm getting the following error exception from…
Catalin Minovici
  • 181
  • 1
  • 13
3
votes
1 answer

SoapFault in PHP Soap Server (Error Handling)

I'm working on a new Soap Web Service. The previous Web Service used to return an array('error'=>"Please login first"); when an error was encountered. From what I've read, its better to use a SoapFault instead. The following line is used to call a…
Xethron
  • 1,116
  • 9
  • 24
3
votes
3 answers

How to parse soapfault's detail?

I am trying to get the values inside this soap fault's "detail", but I haven't found any ways of doing so. The response from the server:
Alex Styl
  • 3,982
  • 2
  • 28
  • 47
3
votes
3 answers

CXF Fault interceptor: log useful information

I would like to log some information in case of fault. In particular I'd like to log the ip address and port of the client contacting the server, the username if the security in active, and, if possible, also the incoming message. I added an…
Francesco
  • 1,840
  • 19
  • 24
2
votes
1 answer

How to get Soap Fault details elements in ASP.NET Core app

I try to cath a SOAP exception from ASMX Websirvice in my ASP.NET Core API. The legacy ASMX Webservice throw a SOAP Exception like this:
Poiser
  • 101
  • 2
  • 6
2
votes
1 answer

How to create a WCF MessageFault

I see two ways to create a MessageFault: FaultException fe = new FaultException("error"); MessageFault f = fe.CreateMessageFault(); Or FaultCode fc = new FaultCode("error"); MessageFault f = MessageFault.CreateFault(fc,…
Stranger
  • 21
  • 2
2
votes
0 answers

SOAP Client Request in PHP failing at 4MB or greater

I've spent almost two full days trying to resolve this issue, but to no avail. Any help is greatly appreciated. I am trying to make a Soap Request in PHP using php's build in SoapClient. I have verified that trying to send a request where the size…
2
votes
1 answer

How do I raise a SOAP Fault with a structured detail element in Spyne?

The Spyne manual points out that the right way to create SOAP Faults with Spyne is to raise instances of spyne.model.fault.Fault (or your own subclass): @add_metaclass(ComplexModelMeta) class Fault(ComplexModelBase, Exception): # ... I'm trying…
Henrik Heimbuerger
  • 9,924
  • 6
  • 56
  • 69
2
votes
2 answers

Error Fetching http headers SOAP

i have a problem with SOAP, havent found a real answer. try { $objResponse = $objSoapClient->$strMethod($objMethod->getSoapRequest()); } catch (SoapFault $e) { GlobalLogState::write("exception with code(".$e->getCode()."):…
Tigran Muradyan
  • 402
  • 1
  • 8
  • 24
1 2
3
9 10