Problems with content-type
I've build a web service and deployed it using tomcat and JAXRPC.
The only method that I invoke is called getResponses with a parameter of type String wich is a well formed xml doc.
When I try to do this the program raise the following exception.
[java] javax.xml.soap.SOAPException: Invalid Content-Type:text/html
[java] at com.sun.xml.messaging.soap.MessageImpl.verify(MessageImpl.java:159)
[java] at com.sun.xml.messaging.soap.MessageImpl.<init>(MessageImpl.java:91)
[java] at com.sun.xml.messaging.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:32)
[java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:136)
[java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:59)
[java] at SmsWS.SmsWSIF_Stub.getResponses(Unknown Source)
[java] at SmsWS.SmsWSClient.main(Unknown Source)
[java] java.rmi.RemoteException: HTTP transport error: javax.xml.soap.SOAPException: Unable to internalize message...
I wonder if the problem reside on the format of the string (represents an xml doc), if it's compatible with a SOAP message content.
How can I eventually set the content-type to, for example, plain-text or whatever else?
Can anybody help me to solve this problem?
Thanks

