Setting SOAPFaultExcepion fault codes and fault detail

I'm using WLS 7 SP1.
I'm having a couple of problems with SOAPFaultExceptions in WLS 7 SP1.
i) The generated web service front end happily wraps SOAP Fault fault string with
"EJB exception..." and always reports the fault code as "Server"; I believe the
latter problem is is a known issue.
ii) In an effort to get around the above problems, I thought I would simply add
detail entries but to be honest I can't quite figure out how to do it. I thought
I would create a Detail container via a SOAPFactory and add a detail entry via
Detail addEntry().
Am I able to do this with WLS 7 SP1 as is or do I need to use additional SOAP
libraries (pointers would be appreciated)?
Thanks.

In your orchestration, capture the SOAPFault (hope you're already doing this), then in the captured message if you use the XPATH as below, it will capture the ErrorCode and ErrorText from the above shown fault structure.
sErrorCode = xpath(msgYourSOAFFault,"string(/*[local-name()='Envelope' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='Body' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='Fault' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='detail' and namespace-uri()='']/*[local-name()='errorDetail' and namespace-uri()='http://integration.com/ErrorDetails.xsd']/*[local-name()='Error' and namespace-uri()='http://integration.com/ErrorDetails.xsd']/*[local-name()='ErrorCode' and namespace-uri()='http://integration.com/ErrorDetails.xsd'])");
//ErrorText
sErrorText = xpath(msgYourSOAFFault,"string(/*[local-name()='Envelope' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='Body' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='Fault' and namespace-uri()='http://schemas.xmlsoap.org/soap/envelope/']/*[local-name()='detail' and namespace-uri()='']/*[local-name()='errorDetail' and namespace-uri()='http://integration.com/ErrorDetails.xsd']/*[local-name()='Error' and namespace-uri()='http://integration.com/ErrorDetails.xsd']/*[local-name()='ErrorCode' and namespace-uri()='http://integration.com/ErrorDetails.xsd'])");
For adding the exception handler for SOAP-Fault, you can either refer the sample in SDK or
reference this article. And in the exception handler, use the above XPath to capture the ErrorCode and ErrorText.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Product Hierarchy level 2 code and description details

    Hi BW Experts,
    In our report we want to display Material wise 'Product Hierarchy level 3 code and level 2 description.
    Here, we have loaded material master hierarchy data to BW but we are not able to get the level 3 code and level 2 desc.
    In R/3 side we can see product hierarchy level 3 code and level 2 description using transaction code.
    Could some one help me how do we get these details.
    Thanks in advance.
    mahantesh

    Folks,
    Any solution?
    Laks

  • HT1212 my daughter set a pass code and forgot it how can i turn it on

    ipad locked out after daughter put a pass code and forgoy it

    Restore it http://support.apple.com/kb/HT1212
    If it ask for the passcode when restoring, the last thing to do is take it to a apple store where they have unlimited access to all apple device restores without any passcode verification

  • SQL to retrieve faulted instances and fault reason code for SOA composites

    Hi,
    Could you please provide me some SQL which will retrieve composite faults with details on a particular period?
    Thanks in advance.

    SELECT ID, COMPOSITE_DN, STATE, CREATED_TIME FROM COMPOSITE_INSTANCE. You can add filters for created_time and state. Refer to this link for a list of composite states. https://blogs.oracle.com/dasoa/entry/list_of_all_states_from

  • BT Response 75, 'd' fault code and beeping

    Every time the phone rings and we answer it the answer machine displays the code 'd' on the display and starts loudly beeping, making it almost impossible to hear the person on the phone. This noise does stop if/when we click the stop button on the machine.
    Any advice would be greatly received!
    Solved!
    Go to Solution.

    Hi Aliali204,
    I have taken a read through the userguide and my understanding of it is when your answer machine is displaying the code d, this is because it is dialling 1471 to get the previous callers details.
    You could try switching off this function to see if that helps. You can do this by pressing the "1471 button and you will hear 1471 on or off and you can select as appropriate. I hope this helps.
    Paddy,
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • I didn't set a pass code and now my iPad is disabled??

    The screen locked on my mini iPad before I got chance to set the passcode, I tried the usual 1234, 0000 and 1111. Now it is disabled and I don't know what to do can anyone help please

    Please see: http://support.apple.com/kb/HT1212 for details.
    Regards,
    Steve

  • I bought an Iphone from a yard sale because the person selling it said it wouldnt charge. Well we got it to charge but it has all her information on it and my mom set a restriction code and forgets what it is. I have no clue what to do. do you

    I bought an iphone from a yard sale because the person said it wouldnt charge. I got it to charge but it has all her information on it. My mom also put a restriction code on it and forgot it. I am afraid if i take it to an apple store they will think i stole it. I have no clue what to do. Please help me.

    Put the phone into recover mode
    http://support.apple.com/kb/ht1808

  • My Brother set the lock code and he forgot it...

    We've tried reseting,restoring, restarting but nothing worked.
    what should i do?
    compaq   Windows XP  

    Try this, connect the iPod to the main computer you use it with (if you use it with more than one, this is the first one it was connected to) and open iTunes. Then disconnect iPod from the computer, it should be unlocked: iPod: How to use the Screen Lock
    I'm surprised however that restoring didn't work as it's the last thing recommended by Apple to unlock an iPod. Restoring will erase the hard drive, reload the software and put it back to default settings: Restoring iPod to Factory Settings with iTunes 7

  • Returning Error Code in Fault Response Message

    Hi There,
    Here is the background:
    We are using Security Interceptor component of BPEL PM for handling security procedures. We have extended the default ACLManager and provided the custom access control checks. The method overridden in the custom sub-class is isAllowedYoExecuteProcess (Signature: public boolean isAllowedToExecuteProcess(BPELProcessId processID, NormalizedMessage normalizedMessage) throws ServerException). This method throws ServerException, whenever there are any errors. ServerException allows to create the error message and error code in its constructor (Signature: public ServerException(java.lang.String message, int errorCode)).
    The issue:
    We have set the error code and error message and thrown the new ServerException. However when the SoapFault is consumed by a SoapClient (or BPEL console dashboard), we see the fault String like this:
    Error while invoking inbound message handler.
    An error has occurred while attempting to invoke the inbound message handler class "class com.collaxa.cube.security.Authenticator" for the message "". The exception reported was: Could not apply security [Sample Exception to test SOAP Fault]
    The String within the square bracket is what we had in ServerException. However I do not see the error code what I also had in ServerException. Please help me, how the error code needs to be set, so that the same can be retrieved by the Soap Client. Also, is there any way, I can just get the error message what I set (not the above jumbled one)
    Thanks & regards,
    Krishna

    This is "intended" - as we are just called by the engine, and every failure there is wrapped w/o the error code. I would recommend to store the error nr with the message .. and parse that ..
    litterally it's String error = message.substring(message.indexOf("Could not apply security ["),message.lastIndexOf("]")))
    hth clemens

  • Power on password fault code 97025088

    Need your help guys. Have this fault code and can't log in. Kids put a dang password on it.
    This question was solved.
    View Solution.

    Try >> 28983008
    Enter BIOS and disable password. Use the code as old password leave new blank. Save & Exit.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • Fault code -3212

    what is this fault code and how can i fix it ?

    Read here:
    http://support.apple.com/kb/TS3297
    Especially specific conditions & removing the SC folder.

  • Deafult tax code and tax jurisdiction per vendor

    Hi,
       We are using tax jurisdiction in Process,  now while creating Po every time according to vendor we have to enter the tax jjurisdiction and tax code ,  i s there any mwthod  with which we can set default tax code and tax juridiction code as per vendor  means we want to maitain as per vendor code, so that  for eah item i n that PO , tax code and jurisdiction code will come automatically.
    I have also check by making the tax jurisdiction code mandatory in Vendor master , in vendor master i have added tax jurisdiction for the vendor  but while creating PO, system is not selecting the tax jurisdiction automatically.
       regards,
        zafar
    Edited by: zafar_karnalkar on Jun 4, 2010 6:18 AM

    Hello,
    Tax Jurisdiction code will be determined from the plant. Please check your Plant/Site Master. SAP provided a BADI  ME_TAX_FROM_ADDRESS also to redetermine Tax Jurisdiction code based on custom logic.
    For Tax codes, you have to maintain condition records for condition type NAVS using MEK1. There are many standard access sequences available to maintain this. You may also build custom one if needed. 
    Thanks,
    Venu

  • How do I set my Region Code for the DVD player?

    When I insert a DVD, it is not prompting me to set the region code and I cannot figure out how to set it manually.  When I insert a DVD, I get an error message that says "supported disk not availabe".  I have already run the Repair Disk Permissions from disk utility and that didn't work so I thought maybe the problem is with the region coding.  Your help is appreciated!!  Thanks.

    http://support.apple.com/kb/ht2397

  • I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:     InPageError   Error Status Code:     c0000185   Faulting Media Type:     00000003   OS Version:     6.1.7601.2.1.0.768.3. Any clue why or how

    I downloaded the latest version and I get this error when I open it. Problem signature:   Problem Event Name:
    InPageError   Error Status Code:
    c0000185   Faulting Media Type:
    00000003   OS Version:
    6.1.7601.2.1.0.768.3. Any clue why or how to fix?

    InPageError
    That one's consistent with disk/file damage. The first thing I'd try with that is running a disk check (chkdsk) over your C drive.
    XP instructions in the following document: How to perform disk error checking in Windows XP
    Vista instructions in the following document: Check your hard disk for errors
    Windows 7 instructions in the following document: How to use CHKDSK (Check Disk)
    Select both Automatically fix file system errors and Scan for and attempt recovery of bad sectors, or use chkdsk /r (depending on which way you decide to go about doing this). You'll almost certainly have to schedule the chkdsk to run on startup. The scan should take quite a while ... if it quits after a few minutes or seconds, something's interfering with the scan.
    Does the chkdsk find/repair any damage? If so, can you get itunes to launch properly afterwards?

  • Affinity goup, availability set and the concept of Update Domain and Fault Domain

    Can 2 VM belonging to the same affinity group, belong to the same
    availability set?
    I have read (http://social.technet.microsoft.com/wiki/contents/articles/7916.importance-of-windows-azure-affinity-groups.aspx)
    Affinity groups are logical abstraction of the physical concept of
    Containers (unit of compute) in Microsoft Datacenters.
    How do then Update Domains and Fault Domains relate to this concept of Container?
    Are there multiple Fault Domains in a Container?
    Thanks,
    Davide
    System and Network Administrator - MCSA security, CCNA, VCP3, VCP4, MCITP Enterprise administrator

    Hi Davide,
    Thanks for posting!
    >>Can 2 VM belonging to the same affinity group, belong to the same
    availability set?
    The answer is no. Base on my understanding, affinity group is to keep your VMs physically closer together within the datacenter. And your 2 VMs may be in one host OS. But if you use the Availability Set,  it could guarantees that your 2 VMs are
    spread across multiple racks in the Windows Azure Data Centers.
    >>How do then Update Domains and Fault Domains relate to this concept of Container?
    >>Are there multiple Fault Domains in a Container?
    For this issue, I recommend you refer to this documents  (http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-manage-availability/
    ) and this blog (http://michaelwasham.com/windows-azure-powershell-reference-guide/understanding_configuring_availability_sets_powershell/
    ). At the same time, you could see this article (http://www.techbunny.com/2013/11/close-but-not-too-close-azure-affinity.html ) for digging deep understanding .
    Hope this helps.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Displaying messages while running BEx queries.

    Hi Experts, Can any one explain me is there any possibility to display some popup messages while running BEx queries? Regards, Anusha

  • Problem with sleep mode!!! Help!!

    I have an Ipod nano and recently updated it. Since then, when my ipod automatically goes to sleep mode it no longer plays the music/audiobooks I listen to, when it would continue before. This is terribly inconvienent and pretty much goes against the

  • Changing over to a new computer

    Just got a new computer and "added" it to my itunes account. I know what folder my library is in but can't get it to load in itunes. HELP!!!!

  • Group tree does not always render data in ActiveX viewer

    We are using Crystal XI R2 and the RDC/ASP interface to render reports in the ActiveX viewer. The web server is a Windows 2008 R2 64 bit machine. Yes, I know it is not supported but I was hoping someone may have a workaround. We got the ActiveX viewe

  • Regarding installation and usage of oracle forms 11g on windows 7

    dear all, i am new to the oracle forms and reports feature. i tried installing forms and reports following certain steps which i could find from the internet, but it could not be installed. i ended up crashing my system.can anyone of you help me in p