Meaningless Drivel is fun!*
The moose likes Web Services and the fly likes jax-ws-> soaphandler for non soap request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "jax-ws-> soaphandler for non soap request" Watch "jax-ws-> soaphandler for non soap request" New topic
Author

jax-ws-> soaphandler for non soap request

yo nara
Ranch Hand

Joined: Apr 03, 2002
Posts: 35
supposing that server side code has implemented both soap handler and logical handler code (jax-ws)
now if the request comes in non soap format. say xml over http.
will the soap handler get executed or not?
also will it throw error as there is no soap protocol in request?
also is it good design to implement both so that irrespective of the protocol specific request we can use same code?

the questions itself might be vauge or wrong. please correct it.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12756
    
    5
will the soap handler get executed or not?


If the expected SOAP headers and envelope elements are not there you naturally get an error. In order to handle XML queries in other formats you will have to write your own code - its not hard, Java has excellent XML facillities.

Bill
 
Don't get me started about those stupid light bulbs.
 
subject: jax-ws-> soaphandler for non soap request
 
Similar Threads
Can't generate java classes from WSDL file
Error connecting Peoplesoft webservice from a JSF application over Integrated weblogic server
Use of SOAP in a Java Web Service
Web Service Request Validation against WSDL
JBoss - JAAS - HTTP authentication