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 13803DDEC for ; Thu, 18 Oct 2012 15:38:40 +0000 (UTC) Received: (qmail 33739 invoked by uid 500); 18 Oct 2012 15:38:39 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33177 invoked by uid 500); 18 Oct 2012 15:38:38 -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 33126 invoked by uid 99); 18 Oct 2012 15:38:36 -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 15:38:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of james.r.carr@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bk0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2012 15:38:29 +0000 Received: by mail-bk0-f45.google.com with SMTP id jf3so3954388bkc.32 for ; Thu, 18 Oct 2012 08:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=AksOfRgbdM6B+rX57AqQB8JaRDvi5aSnbfCn4PuvtVc=; b=YUwblBKta+0AXUmtrKaPSNoKNMR3RRlpWJhpBx8xewgCUsSfuSv11kXw9V+G7TjVEh TrCJCKqd2l/Hqqcw30+mJDDrX1fQpomTQ4oBvVrOzt+MEMztai0xu4SMxb41z+UuZFdj eBjrjC2MQoJ3A+zVDJpOMtWvbh0IiO/Fp/DuRoAabHRZRqX7PQLvgSFHX1os7FltBbW7 Rf8NT/1DiGTSdx0Sm6Wo+tvgFVd7KhYUgxgrHRhMDCoX1OsRp6UPMu/g36nTfICzPN1l LPDguNzOV+lum4/svbXwPY/ynQ/NlNMtm/+ENRO3w8rRZYdZqU+ZD5BFXNdG4fV2hznY y9Kw== MIME-Version: 1.0 Received: by 10.204.7.213 with SMTP id e21mr6288187bke.32.1350574688264; Thu, 18 Oct 2012 08:38:08 -0700 (PDT) Received: by 10.204.52.210 with HTTP; Thu, 18 Oct 2012 08:38:08 -0700 (PDT) Date: Thu, 18 Oct 2012 10:38:08 -0500 Message-ID: Subject: Error When Communicating with 3rd Party SOAP Service From: James Carr To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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