0

我正在从 adobe 进程调用 Webservice。我的 wsdl 包含将 Document 作为输入的 web 方法“storeDocument”。

<xs:element name="storeDocument">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:java="java:org.w3c.dom" name="req" type="java:Document"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="storeDocumentResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="return" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>

但是当我在网络服务设置中生成请求时。表明

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://resourceusage.resource.domain.services.nyss.ktv.tdc.com" xmlns:java="java:org.w3c.dom">
   <soapenv:Header/>
   <soapenv:Body>
      <res:storeDocument>
         <res:req>
            <java:XmlStandalone>?</java:XmlStandalone>
            <java:XmlVersion>?</java:XmlVersion>
            <java:StrictErrorChecking>?</java:StrictErrorChecking>
            <java:DocumentURI>?</java:DocumentURI>
         </res:req>
      </res:storeDocument>
   </soapenv:Body>
</soapenv:Envelope>

我不知道如何调用这个服务,我试着给

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:res="http://resourceusage.resource.domain.services.nyss.ktv.tdc.com" xmlns:java="java:org.w3c.dom">
   <soapenv:Header/>
   <soapenv:Body>
      <res:storeDocument>
         <res:req>
            <java:StrictErrorChecking>false</java:StrictErrorChecking>
            <java:DocumentURI>{$ /process_data/@outputForm $}</java:DocumentURI>
         </res:req>
      </res:storeDocument>
   </soapenv:Body>
</soapenv:Envelope>

但它不工作
它给了我错误

     <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">com.bea.xml.XmlRuntimeException: java.lang.InstantiationException: org.w3c.dom.Document

    at com.bea.staxb.runtime.internal.ClassLoadingUtils.newInstance(ClassLoadingUtils.java:137)

    at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.createIntermediary(ByNameRuntimeBindingType.java:207)

    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:36)

    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:174)

    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalType(UnmarshalResult.java:212)

    at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshalType(UnmarshallerImpl.java:127)

    at weblogic.wsee.bind.runtime.internal.LiteralDeserializerContext.unmarshalType(LiteralDeserializerContext.java:70)

    at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.internalDeserializeType(BaseDeserializerContext.java:170)

    at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeType(BaseDeserializerContext.java:87)

    at weblogic.wsee.bind.runtime.internal.BaseDeserializerContext.deserializeWrappedElement(BaseDeserializerContext.java:133)

    at weblogic.wsee.codec.soap11.SoapDecoder.decodePart(SoapDecoder.java:407)

    at weblogic.wsee.codec.soap11.SoapDecoder.decodeParams(SoapDecoder.java:245)

    at weblogic.wsee.codec.soap11.SoapDecoder.decodeParts(SoapDecoder.java:164)

    at weblogic.wsee.codec.soap11.SoapDecoder.decode(SoapDecoder.java:117)

    at weblogic.wsee.codec.soap11.SoapCodec.decode(SoapCodec.java:139)

    at weblogic.wsee.ws.dispatch.server.CodecHandler.decode(CodecHandler.java:138)

    at weblogic.wsee.ws.dispatch.server.CodecHandler.handleRequest(CodecHandler.java:39)

    at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:127)

    at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85)

    at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)

    at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)

    at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)

    at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:173)

    at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:92)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3231)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2002)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1908)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1362)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Caused by: java.lang.InstantiationException: org.w3c.dom.Document

    at java.lang.Class.newInstance0(Class.java:335)

    at java.lang.Class.newInstance(Class.java:303)

    at com.bea.staxb.runtime.internal.ClassLoadingUtils.newInstance(ClassLoadingUtils.java:135)

    ... 36 more

Caused by: java.lang.InstantiationException: org.w3c.dom.Document

    at java.lang.Class.newInstance0(Class.java:335)

    at java.lang.Class.newInstance(Class.java:303)

    at com.bea.staxb.runtime.internal.ClassLoadingUtils.newInstance(ClassLoadingUtils.java:135)

    at com.bea.staxb.runtime.internal.ByNameRuntimeBindingType.createIntermediary(ByNameRuntimeBindingType.java:207)

    at com.bea.staxb.runtime.internal.AttributeUnmarshaller.unmarshal(AttributeUnmarshaller.java:36)

    at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalBindingType(UnmarshalResult.java:174)

请帮忙..

4

1 回答 1

0

通过LiveCycle Workbench,您可以使用WebServices 服务来调用其他 Web 服务。

在这个网站lctips.wordpress.com上 ,您可以找到一些示例。

您还可以使用 javascript 或 dataconnection 从表单调用 web 服务。
以编程方式调用网络服务

于 2013-05-31T17:35:28.493 回答