I have a requirement to develop a client to a web service so i used
soapui to mock the web service and then used netbeans to generate the
client and run against the mock web service but i am getting this
com.sun.xml.ws.server.UnsupportedMediaException: Unsupported Content-
Type: text/html; charset=iso-8859-1 Supported ones are: [text/xml]
Basically i did the following:
1. Modified the wsdl to point to the Mockservice address which is
usualyy localhost:8088 rather than the live address
2. I generated relevant classes in netbeans from the modified WSDL
3. Generated Web Service and Mock from the WSDL
4. Started the MockService
5. I now ran my client and got the above error.
Please has anybody tried to create a mock service and then post
requests to the mock outside of soapui using a client from another
application like netbeans as i was trying to do? Please let me know how
you were able to do it.