Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Please help...I can't solve this web services error (ConfigException)  RSS feed

Mata George
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I've got the following error when I try to build document-oriented web services

[clientgen] Generating client jar for WLWSSEApp.ear(SimpleService) ...
[clientgen] weblogic.webservice.server.ConfigException: Could not add parameter
to operation. You must specify either its Java or XML type.
[clientgen] at weblogic.webservice.server.WebServiceFactory.addPart(WebServi
[clientgen] at weblogic.webservice.server.WebServiceFactory.addParamsToMetho
[clientgen] at weblogic.webservice.server.WebServiceFactory.registerOperatio
[clientgen] at weblogic.webservice.server.WebServiceFactory.initOperations(W
[clientgen] at weblogic.webservice.server.WebServiceFactory.createFromMBean(
[clientgen] at
[clientgen] at
[clientgen] at
[clientgen] at
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
[clientgen] at
[clientgen] at
[clientgen] at
[clientgen] at

[clientgen] at
[clientgen] at
[clientgen] at
[clientgen] at

file:C:/bea/user_projects/domains/examples/build_ws/build.xml:54: Could not add parameter to operation. You mu
st specify either its Java or XML type. - with nested exception:
[weblogic.webservice.server.ConfigException: Could not add parameter to operatio
n. You must specify either its Java or XML type.]

My environment:
- JBuilder X
- Weblogic Platform 8.1
- Windows XP SP2

Here are my steps of implementing web services:

1. Write the Java code for the back-end components that make up the Web Service. Here's the method that handle the operation
public String testName(InputParam test) {
String inputName = test.getName();
System.out.println("Input name:"+inputName);
return "Hello "+inputName;

Here's InputParam:
public class InputParam {

private String name;
public InputParam() {

public String getName() {
return name;

public void setName(String name) { = name;

2. Since I use JBuilder X I configure everything including handlers chain through web services designers
3. Build project

If nothing goes wrong, I will get generated client jars and a war file with web-services.xml inside.

I have no problem when I implement RPC-style web services.
I got the above error when I implement Document-oriented web services, but
I have no problem when I use String as a parameter instead of InputParam class.

I tried to change some attributes that might be relevant but got no luck.
I've tried using clientgen command line as well but the result was the same.

Below are the guidelines for creating document-oriented web services from the BEA's document that I think I already followed

- The methods that implement each operation of the Web Service can have only one parameter. This single parameter can be of any supported data type. (The Weblogic web services toolkit support simple JavaBean, doesn't it?)

- The methods that implement each operation cannot use out and in-out parameters. (I'm not sure about this one since I got Holder classes after using clientgen. However, there's no <param> tag in web-services.xml.)

I found the old solution from (ID = S-25689), but I don't think my situation is the same. I got the error while building web services...not deploying a web service.

Any answers to this question will be very much appreciated.

Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!