Hello,
We have a service that was implemented using .NET WCF and I am calling
it from a client that uses CXF.
When I call the service, it throws an exception that service is
expecting " content header set to text/xml; charset=utf-8 " but my
client is sending "text/plain".
How can adjust my client so that it send the right header information?
The code I am using is pasted below.
Service service = Service.create(QName.valueOf(connector.getServiceUrl()));
service.addPort(new QName(connector.getServiceNameSpace(),
connector.getServicePort()),
SOAPBinding.SOAP11HTTP_BINDING,
connector.getServiceUrl());
service.getPort(new QName(connector.getServiceNameSpace(),
connector.getServicePort()),
ConnectorService.class);
thanks
Suneet