Skip to main content

jaxws http xml binding

No replies
Joined: 2012-06-18

My goal is to create a simple calculator webservice which returns addition of two numbers.
I need to make the same service available through SOAP 11 interface, SOAP 12 interface and HTTP get and POST.

I was able to create SOAP 11 and SOAP 12 interface. But I am not able to make the service available through HTTP GET and POST, where the request is sent purely in XML and response is returned in XML.

I read about XML over HTTP binding available in jaxws and saw discussions of implementing Provider interface with ServiceMode of PAYLOAD. But I am still not there.

I would appreciate a working example with some instructions on how to run it.