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

  • SEARCH
  • Home
  • 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 6171709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:15:54+00:00 2026-05-23T23:15:54+00:00

I have a few problems with the cxf + WSClient in soap. I am

  • 0

I have a few problems with the cxf + WSClient in soap.

I am writing a small tool in grails that must make SOAP calls to an existing service.

WSClient (groovyws-0.5.3-20100521.062225-1.jar) seemed like the perfect solution to my problem.
However when i tried to implement a call to one of the actions i get two problems.

Problem #1 NullPointerException when making a call to some of the actions.

I have tracked down the code that is throwing the exception inside of

AbstractCXFWSClient.invokeMethod(String methodName, Object args)

     if (!operationToBeInvoked.isUnwrapped()){
                //Operation uses document literal wrapped style.
                inputMessageInfo = operationToBeInvoked.getWrappedOperation().getInput();
     } else {
                inputMessageInfo = operationToBeInvoked.getUnwrappedOperation().getInput();
            }

specifically operationToBeInvoked.getWrappedOperation() I have isolated the code in a unit test and find that both operationToBeInvoked.getWrappedOperation() and operationToBeInvoked.getWrappedOperation() result in null objects. I have tried to figure out what is causing it however i think i have gotten to the end of my knowledge.

Problem #2 WSClient.create(String classname) is eating a ClassNotFoundException (and then throwing a NullPointerException)

Basicly when I make the following call

def event = client.create("com.mypackage.MyBean");

Same bean that i can see by browsing the services from the browser.

<xs:complexType name="myBean">
<xs:sequence>
<xs:element minOccurs="0" name="id" type="xs:long"/>
<xs:element maxOccurs="unbounded" minOccurs="0" name="facets" nillable="true" type="tns:beanBean"/>
<xs:element minOccurs="0" name="sortId" type="xs:string"/>
<xs:element minOccurs="0" name="itemId" type="xs:string"/>
<xs:element minOccurs="0" name="preview" type="xs:boolean"/>
</xs:sequence>
</xs:complexType> 

I get a NPE. When i drill down to figure out why i get an NPE, I find that its because the classloader on the WSClient can’t find “com.mypackage.MyBean” eats the ClassNotFoundException and then inevitably throws an NPE.

Edit: Should I be using a different client the WSClient/cxf ? I really wanted to avoid having to roll my own…..

  • 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-23T23:15:55+00:00Added an answer on May 23, 2026 at 11:15 pm

    Basicly I didn’t find the answer. I basicly was forced to uninstall the two plugins and cxf and not using the groovy WSClient.

    What i did was install the ws-client plugin for grails and that worked.

    http://www.grails.org/plugin/ws-client

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

Sidebar

Related Questions

I have few small basic problems : How to format : int i =
I am having a few problems re-writing flat links using htaccess, I have two
i have a few problems setting up a layout with horizontal sections that should
I'm taking a cloud computing course and have a few problems that I am
I have a few problems with my mod_rewrite rules. There a three different url
I have had a few problems with log files growing too big on my
I have had a few problems getting this right, so I wanted to ask
Here's the problem -- I have a few thousand small text snippets, anywhere from
The problem: we have jobs that run from a few seconds to a few
I have a tricky problem that I've been messing about with for a few

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.