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
Joined: May 23, 2004
Posts: 72
posted
0
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..
Kuldeep
JeanLouis Marechaux
Ranch Hand
Joined: Nov 12, 2001
Posts: 906
posted
0
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)
/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community