*
The moose likes Web Services and the fly likes Creating Web Services using WSAD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Creating Web Services using WSAD" Watch "Creating Web Services using WSAD" New topic
Author

Creating Web Services using WSAD

Daniel Dor-Chay
Greenhorn

Joined: Feb 29, 2004
Posts: 8
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
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating Web Services using WSAD