Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC9A41089B for ; Fri, 27 Sep 2013 11:36:22 +0000 (UTC) Received: (qmail 59539 invoked by uid 500); 27 Sep 2013 11:36:11 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 59445 invoked by uid 500); 27 Sep 2013 11:36:06 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 59384 invoked by uid 99); 27 Sep 2013 11:36:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 11:36:02 +0000 Date: Fri, 27 Sep 2013 11:36:02 +0000 (UTC) From: "matej (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-5306) Soap body in header MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 matej created CXF-5306: -------------------------- Summary: Soap body in header Key: CXF-5306 URL: https://issues.apache.org/jira/browse/CXF-5306 Project: CXF Issue Type: Bug Affects Versions: 2.7.6 Reporter: matej I am using apache-cxf-2.7.6. I generated soap client from wsdl. In Java code I set values for the request object and send request. Soap xml request is not valid. In the header is request body and soap:body is empty. This is generated xml which is not valid: test@test.sk test test@test.sk Hello World! 1 Here is the code how I am sending request: MessageDelivery messageDelivery = new MessageDelivery(); SendEmailPortType client = messageDelivery.getSendEmailPortTypeBindingPort(); org.apache.cxf.endpoint.Client clientEnd = ClientProxy.getClient(client); clientEnd.getOutInterceptors().add(new MyLogInterceptor()); SendEmailReq sendEmailReq = new SendEmailReq(); sendEmailReq.setEmailSubject("test"); sendEmailReq.setEmailBody(body); sendEmailReq.setEmailFromField("test@test.sk"); sendEmailReq.setEmailToFields(new SendEmailReq.EmailToFields()); sendEmailReq.getEmailToFields().getEmailToField().add("test@test.sk"); sendEmailReq.setDeliveryPriority(new Integer(1)); client.sendEmailV1(sendEmailReq); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira