camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Karlsen <davidkarl...@gmail.com>
Subject Re: Error When Communicating with 3rd Party SOAP Service
Date Thu, 18 Oct 2012 16:23:11 GMT
Are you on an old sun jdk? They have that problem. Upgrade to the latest
version.
Den 18. okt. 2012 17:38 skrev "James Carr" <james.r.carr@gmail.com>
følgende:
>
> Hey All,
>
> I've used CXF for quite sometime and this week I was putting together
> a client for a 3rd party service and get the following error when
> trying to call the service:
>
> HTTP response '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'.' when communicating with
> http//service.example.com/foo/bar
>
> Any ideas? Here is a simple snippet of the service call:
>
>                 JaxWsProxyFactoryBean factory = new
JaxWsProxyFactoryBean();
>                 factory.getInInterceptors().add(new
LoggingInInterceptor());
>                 factory.getOutInterceptors().add(new
LoggingOutInterceptor());
>                 factory.setServiceClass(ILoginService.class);
>
>                 factory.setAddress("
https://service4.example.com/services/LoginService");
>
>                 ILoginService service = (ILoginService) factory.create();
>                 service.authenticate(new TokenRequest());
>
> Thanks,
> James

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message