Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96062D014 for ; Thu, 18 Oct 2012 16:23:47 +0000 (UTC) Received: (qmail 79833 invoked by uid 500); 18 Oct 2012 16:23:47 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 79391 invoked by uid 500); 18 Oct 2012 16:23:41 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 79341 invoked by uid 99); 18 Oct 2012 16:23:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 16:23:39 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of davidkarlsen@gmail.com designates 209.85.212.179 as permitted sender) Received: from [209.85.212.179] (HELO mail-wi0-f179.google.com) (209.85.212.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 16:23:33 +0000 Received: by mail-wi0-f179.google.com with SMTP id hq7so1816676wib.2 for ; Thu, 18 Oct 2012 09:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=k8XJC2PSWJfP8/3i4UK69AeoyFn6axVNyadwdaRRP6U=; b=K105tEA0WNZgh0gGtOTQcSKkgE4LF5fhrhXDtcFoStITf2NdOW5oR7HmGC8QjZDWno bRJBVaQov3ukFRiqwlpl/CkX7vfdq5p8VMz4E3qnutVFb8YHwl5g48S1wT5pC/+dyGTj 2yCWqLLBDKCRcPNqjwWu1h0Qy/QO0seNbmKhH8zE4gKXirpGD4vtsEY7x7O6vAnY06x6 lx14pih2M3zbmKrA2ihuS9wFnZFlA9nL1VDURu7KiO30bCh+CNAu/dsABY8E54fRcvMt nj7RbKcNkKkdpfq+pUc+QUaoOKDsX9P63Rbhpcy4DVq10GgI4AUj3Cv6eQGGDe9I7SfL sqyA== MIME-Version: 1.0 Received: by 10.180.82.72 with SMTP id g8mr11977742wiy.20.1350577391958; Thu, 18 Oct 2012 09:23:11 -0700 (PDT) Received: by 10.223.172.70 with HTTP; Thu, 18 Oct 2012 09:23:11 -0700 (PDT) Received: by 10.223.172.70 with HTTP; Thu, 18 Oct 2012 09:23:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 18 Oct 2012 18:23:11 +0200 Message-ID: Subject: Re: Error When Communicating with 3rd Party SOAP Service From: David Karlsen To: users@camel.apache.org Content-Type: multipart/alternative; boundary=f46d04426bc0b0794d04cc57cd17 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04426bc0b0794d04cc57cd17 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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" f=F8lgende: > > 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=3DUTF-8' was not the expected type > 'application/soap+xml; charset=3Dutf-8'.' when communicating with > http//service.example.com/foo/bar > > Any ideas? Here is a simple snippet of the service call: > > JaxWsProxyFactoryBean factory =3D 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 =3D (ILoginService) factory.create(= ); > service.authenticate(new TokenRequest()); > > Thanks, > James --f46d04426bc0b0794d04cc57cd17--