• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Throwing Fault

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

It will be of great help if someone could provide me with some examples. As to how can, I throw my custom exception or AxisFault. I would like to throw an AxisFault and set its various parameters in the following constructor:

AxisFault(java.lang.String code, java.lang.String faultString,
java.lang.String actor, org.w3c.dom.Element[] details)

Could someone help me with an example as to how to provide the org.w3c.dom.Element[] details in it.
Also, I need to generate this response in the following format:

The definitions of faults use the following properties:


Do, I need to add headers or will they be automatically added?

Please Help !!

Thanks & Regards,
GreenHorn
[ August 23, 2007: Message edited by: Mr.Zuir Alex ]
 
Mr.Zuir Alex
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Folks,

Please help on this issue.

Thanks,
GreenHorn
 
Mr.Zuir Alex
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Again,

I found something after doing little study on this.


Please let me know if this is the correct approach to send fault to the client?

Also had a confusion on how will axis be formatting it?
I mean, which soap version 1.1 or 1.2 and will it be sent like SOAP response first of all?

Help Required!!

Thanks,
GreenHorn
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic