My Oracle Support Banner

Oracle WebLogic Server (WLS) Web Services Support Patterns: Issues with Using Custom Faults or User-defined Exceptions (Doc ID 761142.1)

Last updated on MAY 09, 2024

Applies to:

Oracle WebLogic Server - Version 6.1 to 8.1
Information in this document applies to any platform.

Purpose

NOTE:  The WebLogic Server names and port numbers; WebService application/package/schema names; other attributes used in this article represent a fictitious sample names that made up as example. Any similarity to actual code, is purely coincidental and not intended in any other manner.

Problem Description

When a WSDL contains wsdl:fault which refers to a complexType such as:

you would see the following behavior while generating web services from this WSDL using WLS:

Conversely, similar issues are encountered when generating a web service from a java application which throws user-defined exceptions.

Problem Troubleshooting

Please note that not all of the following items would need to be done. Some issues can be solved by only following a few of the items.

Troubleshooting Steps

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Purpose
 Problem Description
 Problem Troubleshooting
Troubleshooting Steps
 Problem Description
 Problem Troubleshooting
 Why does the problem occur?
 Handling SOAPFaultException
 Service Implementation
 Client Implementation
 Handling Service-specific Exception
 Service Implementation
 Client Implementation
 SOAP Request/Response Messages of Invoking sendSOAPFault()
 Using Stubs-based Client
 Using Dynamic Invocation Interface (DII) Client
 Troubleshooting Tips
 Using weblogic.webservice.verbose=true
 Using weblogic.webservice.tools.debug.Post utility

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.