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 6548217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:55:30+00:00 2026-05-25T11:55:30+00:00

i am using cxf 2.x to develop a webservice. Here is my web service

  • 0

i am using cxf 2.x to develop a webservice.
Here is my web service class

@WebService(name = "XXXWS", targetNamespace = "http://www.XXX.com/XXXWS", portName = "XXXWSPort", serviceName = "XXXWSService")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class XXXWS {

    @WebMethod(operationName = "XXXMethod", action = "http://www.XXX.com/XXXWS/XXXX")
    public XXXResponse XXXMethod(
            @WebParam(name = "XXXRequest") XXXRequest xxxRequest) {
        // implement code here

        return response;
    }

  private  static String getServiceURL(Environment env, String actionCode){ //<-- RED CROSS here

        //implement code here
        return url;     
    }
}

In eclipse there is a RED CROSS at the method getServiceURL (this is just a regular method, not a WEBMETHOD). It says

 Multiple markers at this line
        - Document Literal Bare operations must have unique XML elements for the input and output messages across all operations on the 
         Web Service : '{http://www.XXX.com/XXXWS}getServiceURL'
        - Document literal bare methods may have only one non-header IN parameter

So if
i just use only ONE parameter as input for the method getServiceURL OR
i use SOAPBinding.ParameterStyle.WRAPPED
then the RED CROSS will disapear. But i need to have 2 parameters here.

My question is: if i need to use 2 parameters here and still use SOAPBinding.ParameterStyle.BARE, how can i remove the RED CROSS.
I think there is a way to configure Eclipse to remove this kind of error

  • 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-05-25T11:55:31+00:00Added an answer on May 25, 2026 at 11:55 am

    I figured it out: You must create an interface SEI for that webservice, then an implement class of that SEI. the method that has multiple parameters will be private method that stay only in the implement class. Everything will be fine. No more red cross.

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

Sidebar

Related Questions

I would like to have a REST web service using Apache CXF and send
I have a web service created using Apache CXF, and two .NET clients using
I'm trying to create a web service client using CXF to consume a WCF
I'm using Apache CXF for my restful web services. I have a service defined
I have Restful web-service implemented using Apache CXF. Since I am going to use
I' am trying to develop a WS-security enabled web service with Apache CXF. Tutorial
I'm using cxf 2.4.4 to make RESTful webservices I have this service: @WebService public
I've created some web services using CXF and code-firts approach. Here is my configuration
Greetings, Currently developing small web service application where response from web service (using CXF
We deploy web services implemented by using the CXF framework on the Glassfish application

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.