从WSDL构建SOAP请求时出现无法执行的错误

时间:2013-07-25 19:50:05

标签: java soap netbeans wsdl wsit

我在Netbeans 7.3.1中有一个Java应用程序,并使用wsdl来创建SOAP Request。我使用MetroWSIT来签署请求。当我尝试构建/发送请求时,收到以下错误:

    com.sun.xml.wss.impl.XWSSecurityRuntimeException: javax.xml.bind.PropertyException:  name: com.sun.xml.bind.xmlDeclaration value: false

错误日志的完整输出是:

   Jul 25, 2013 12:13:13 PM com.sun.xml.ws.security.opt.impl.dsig.SignatureProcessor sign
   SEVERE: WSS1701: Sign operation failed.
   com.sun.xml.wss.impl.XWSSecurityRuntimeException: javax.xml.bind.PropertyException: name: com.sun.xml.bind.xmlDeclaration value: false
   at com.sun.xml.ws.security.opt.crypto.dsig.SignatureProcessor.performRSASign(SignatureProcessor.java:151)
   at com.sun.xml.ws.security.opt.crypto.dsig.Signature.sign(Signature.java:253)
   at com.sun.xml.ws.security.opt.impl.dsig.SignatureProcessor.sign(SignatureProcessor.java:127)
   at com.sun.xml.wss.impl.filter.SignatureFilter.sign(SignatureFilter.java:649)
   at com.sun.xml.wss.impl.filter.SignatureFilter.process(SignatureFilter.java:608)
   at com.sun.xml.wss.impl.HarnessUtil.processWSSPolicy(HarnessUtil.java:99)
   at com.sun.xml.wss.impl.HarnessUtil.processDeep(HarnessUtil.java:278)
   at com.sun.xml.wss.impl.SecurityAnnotator.processMessagePolicy(SecurityAnnotator.java:194)
   at com.sun.xml.wss.impl.SecurityAnnotator.secureMessage(SecurityAnnotator.java:155)
   at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.secureOutboundMessage(SecurityTubeBase.java:388)
   at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientRequestPacket(SecurityClientTube.java:323)
   at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processRequest(SecurityClientTube.java:247)
   at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
   at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
   at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
   at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
   at com.sun.xml.ws.client.Stub.process(Stub.java:464)
   at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:174)
   at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
   at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:91)
   at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
   at com.sun.proxy.$Proxy43.executeService(Unknown Source)
   at javaapplication7.JavaApplication7.main(JavaApplication7.java:33)

   Caused by: javax.xml.bind.PropertyException: name: com.sun.xml.bind.xmlDeclaration value: false
   at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:358)
   at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:527)
   at        com.sun.xml.ws.security.opt.crypto.dsig.SignatureProcessor.getMarshaller(SignatureProcessor.java:469)
   at com.sun.xml.ws.security.opt.crypto.dsig.SignatureProcessor.performRSASign(SignatureProcessor.java:136)
   ... 22 more

错误日志中显示的所有类和行号都在引擎盖类下。我在连接到我的项目的错误日志中找不到任何内容。

我在网上找到了几个有关此错误信息的论坛,但没有一个能解决我的问题。我找到的论坛可以找到hereherehere

如果有人能指出我的任何信息或教程的方向,我们将不胜感激。

由于

0 个答案:

没有答案