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 0D753108A8 for ; Fri, 27 Sep 2013 11:38:05 +0000 (UTC) Received: (qmail 64507 invoked by uid 500); 27 Sep 2013 11:38:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 64436 invoked by uid 500); 27 Sep 2013 11:38:03 -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 63897 invoked by uid 99); 27 Sep 2013 11:38: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:38:02 +0000 Date: Fri, 27 Sep 2013 11:38:02 +0000 (UTC) From: "matej (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (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 [ https://issues.apache.org/jira/browse/CXF-5306?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779842#comment-13779842 ] matej commented on CXF-5306: ---------------------------- I imported same wsdl to the new project in SOAPUI. It creates correct empty request. So I am wonder why cxf putting body to the soap header. > 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