I have a very frustrating problem. I have a web service created with JAX WS
annotations and Endpoint.publish(…) trick. Of course, it uses com.sun.net.HttpServer. When I try to add a service reference in Visual studio, it won’t budge. The server says:
unsupportent content-type: accepted only text/xml
But .net asks with application/soap+xml content-type.
How do i change the content-type in jax ws? Or, how do i change the content type of visual studio add reference thingy.
Thank you. It’s very frustrating!
After googling i found…
Reference. Hope this helps 🙂
EDIT: try the below annotations…
OR