Handle errors of SOAP

Asked

Viewed 857 times

1

I am consuming a webservice method via Externalobject (imported from "WSDL Import").

In practice, the invocation takes the Id as parameter and the service returns the name of the corresponding file:

&NomeArquivo = getDocumentName(&DocumentId)

What happens is that when &Documentid does not exist, the application returns an error to the output window:

The remote server returned an error: (500) Internal Server Error.SOAP Fault: Error in server Execution. Message: en.xxx.Contentserverexception: DOCUMENT_NOT_FOUND: Document not found: 5722 Detail: xxxx At Genexus.Programs.Sdtcontentservicesv2.getdocumentfile(Int32 gxTp_documentId, String gxTp_revisionName) At Genexus.Programs.acarregatodosfilename.executePrivate() At Genexus.Programs.acarregatodosfilename.Main(String[] args) Execution Failed**

I wanted (1) to put this error in a table and (2) not to interrupt the execution. You can do it?

1 answer

3


  • I didn’t know this property. Solved it perfectly. Thank you very much.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.