Chinaunix首页 | 论坛 | 博客
  • 博客访问: 390187
  • 博文数量: 80
  • 博客积分: 2682
  • 博客等级: 少校
  • 技术积分: 907
  • 用 户 组: 普通用户
  • 注册时间: 2012-03-16 09:55
文章分类

全部博文(80)

文章存档

2012年(80)

分类: 系统运维

2012-12-12 15:15:58

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



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
ceFactory.java:1258)
[clientgen] at weblogic.webservice.server.WebServiceFactory.addParamsToMetho
d(WebServiceFactory.java:1211)
[clientgen] at weblogic.webservice.server.WebServiceFactory.registerOperatio
n(WebServiceFactory.java:798)
[clientgen] at weblogic.webservice.server.WebServiceFactory.initOperations(W
ebServiceFactory.java:633)
[clientgen] at weblogic.webservice.server.WebServiceFactory.createFromMBean(
WebServiceFactory.java:220)
[clientgen] at weblogic.webservice.tools.build.internal.WSDLGenImpl.getWebSe
rviceRuntime(WSDLGenImpl.java:240)
[clientgen] at weblogic.webservice.tools.build.internal.WSDLGenImpl.run(WSDL
GenImpl.java:135)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromEAR(ClientGenImpl.java:438)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:345)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)

[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
)
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)

BUILD FAILED
file:C:/bea/user_projects/domains/examples/build_ws/build.xml:54: weblogic.webservice.tools.build.WSBuildException: 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.]



解决办法 :

将Jbuilder  Webservice 生成方式  Service style   由 document 改为 rpc


阅读(773) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~