Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating Web Services using WSAD

 
Daniel Dor-Chay
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm creating web services from a Java Bean using WSAD. Once I've created the web service how do I go about returning SOAP faults? Also if I want to populate certain fields in the SOAP header how do I go about doing that?

Thanks,

Dan.
 
Kuldeep Vaishnav
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Websphere uses DOMFaultListener as default fault listener for web services.you can also write your own faultlistener class and add it to the application by changing the faultlistener tag in the DD.Regarding header well..
 
JeanLouis Marechaux
Ranch Hand
Posts: 906
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniel Dor-Chay:
I'm creating web services from a Java Bean using WSAD. Once I've created the web service how do I go about returning SOAP faults? Also if I want to populate certain fields in the SOAP header how do I go about doing that?

Thanks,

Dan.



With JAX-RPC Message Handlers (javax.xml.rpc.handler), you can do both of them (returning SOAPFault and populating headers)
This is a JAX-RPC feature, so each JAX-RPC compliant tool will allow it (WSAD or other)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic