Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7801175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:51:54+00:00 2026-06-02T00:51:54+00:00

The CXF generated client sends the following SOAP request which does not return records

  • 0

The CXF generated client sends the following SOAP request which does not return records from their side:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
        <PersonSearch xmlns="http://tlo.com/">
            <genericSearchInput>
                ....
            </genericSearchInput>
        </PersonSearch>
    </soap:Body>
</soap:Envelope>

The SoapUI request looks like the following and does return records:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tlo="http://tlo.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <tlo:PersonSearch>
         <!--Optional:-->
         <tlo:genericSearchInput>
             ...
         </tlo:genericSearchInput>
      </tlo:PersonSearch>
   </soapenv:Body>
</soapenv:Envelope>

The only difference I see is the default namespace declaration on instead of the namespace declaration on the soap envelope and the use of the namespace prefix. I have tried several different ways to get the CXF generated client to create the same kind of soap request. Can anyone give some pointers or do I need to use something else?

I am using org.apache.cxf:cxf-codegen-plugin:2.5.2 on JDK 6.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T00:51:56+00:00Added an answer on June 2, 2026 at 12:51 am

    Did you use JAXB for databinding? I was able to resolve the same problem by using XMLBEANS instead. See the db flag for wsdl2java: http://cxf.apache.org/docs/wsdl-to-java.html

    I am still looking for a better solution than just changing the databinding.

    Update 20012-04-18: Sergey and Aki from the cxf users mailing list were so kind to show me the TransformationFeature of CXF. Using the following code on the client side works for me:

            MyService myService = new MyService();
            myPort = myService.getMyServiceHttpSoap11Endpoint();
            // See http://cxf.apache.org/docs/transformationfeature.html
            Client client = ClientProxy.getClient(myPort);
    
            Map<String, String> outTransformMap = Collections.singletonMap(
                    "{http://myNamespace}*",
                    "{http://myNamespace}*");
            org.apache.cxf.interceptor.transform.TransformOutInterceptor transformOutInterceptor =
                    new org.apache.cxf.interceptor.transform.TransformOutInterceptor();
            transformOutInterceptor.setOutTransformElements(outTransformMap);
                client.getOutInterceptors().add(transformOutInterceptor);
    

    I’m using this with CXF 2.5.2. with 2.5.3 and 2.5.6 according to Aki you have to use the defaultNamespace property.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When I generate a webservice client using wsdl2java from CXF (which generates something similar
I am using CXF(which autogenerates my webservices in my pom.xml from my wsdl) with
I'm using a CXF config file copied directly from the CXF website at: cxf.apache.org/docs/client-http-transport-including-ssl-support.html
I've been using Apache CXF wsdl2java generated code to call methods from a webservice
I generate some code using CXF from a WSDL-file. When compiling the code with
I'm using the cxf-codegen-plugin to generate some classes from a WSDL. After the sources
I am having a hard time getting cxf to validate an xml request that
I'm trying to use Hyperjaxb3 with Apache CXF to generate persistence annotations from a
I have an application which provides services using CXF's Servlet transport and Jetty 6.1.
I am using CXF 2.3.0 for hosting a services, but the response from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.