Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Webservice content type
Webservice content type [message #1087995] Fri, 16 August 2013 12:16 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Hi,

I created a webservice consumer (Scout Juno). When I invoke the webservice I get an error about a wrong content type.

Caused by: com.sun.xml.internal.ws.client.ClientTransportException: The server sent HTTP status code 415: Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.


How is this set and how can I change it.

Regards Bertin


Re: Webservice content type [message #1089826 is a reply to message #1087995] Mon, 19 August 2013 09:48 Go to previous message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Hi,

Did a test with Kepler also but I have the same problem there. So with Juno SR1: When I run the webservice wizard, on the second page there is a drop-down Port. It contains two entries for me xxxxxSoap12 and xxxxxSoap11. Default xxxxxSoap12 is selected and I leave it that way. But when I debug the code, in the BindingProvider I have the contents like below. Should this not be saying soap 1.2 and the content_type 'application/soap+xml'.

Can I change this somewhere in the binding file or set it on any other way?

Regards Bertin


soapVersion	SOAPVersion  (id=188)	
	contentType	"text/xml" (id=222)	
	faultCodeClient	QName  (id=223)	
	faultCodeMustUnderstand	QName  (id=225)	
	faultCodeServer	QName  (id=226)	
	httpBindingId	"http://schemas.xmlsoap.org/wsdl/soap/http" (id=227)	
	implicitRole	"http://schemas.xmlsoap.org/soap/actor/next" (id=228)	
	implicitRoleSet	Collections$SingletonSet<E>  (id=229)	
	name	"SOAP_11" (id=231)	
	nsUri	"http://schemas.xmlsoap.org/soap/envelope/" (id=232)	
	ordinal	0	
	requiredRoles	Collections$SingletonSet<E>  (id=233)	
	roleAttributeName	"actor" (id=234)	
	saajMessageFactory	SOAPMessageFactory1_1Impl  (id=235)	
	saajSoapFactory	SOAPFactory1_1Impl  (id=238)	
Previous Topic:no tree is shown for the outline
Next Topic:Hyperlink Action not working in RAP
Goto Forum:
  


Current Time: Thu Mar 28 20:12:01 GMT 2024

Powered by FUDForum. Page generated in 0.06731 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top