Java Web服务消费者>;没有名为'的客户端传输;空';建立

Java Web服务消费者>;没有名为'的客户端传输;空';建立,java,web-services,lotus-domino,webservice-client,Java,Web Services,Lotus Domino,Webservice Client,我们正在尝试用Java中的LotusNotes开发Web服务消费者。 我们使用了LotusDesigner根据wsdl文件自动生成的源代码 从本地计算机从使用者中生成的存根调用方法工作正常。但在将代理设置为在Domino服务器上运行后,日志文件中会出现此异常: 02.06.2014 17:32:25 AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: No cli

我们正在尝试用Java中的LotusNotes开发Web服务消费者。 我们使用了LotusDesigner根据wsdl文件自动生成的源代码

从本地计算机从使用者中生成的存根调用方法工作正常。但在将代理设置为在Domino服务器上运行后,日志文件中会出现此异常:

02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: No client transport named 'null' found!
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.axis.client.AxisClient.invoke(Unknown Source)
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.axis.client.Call.invokeEngine(Unknown Source)
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.axis.client.Call.invoke(Unknown Source)
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.axis.client.Call.invoke(Unknown Source)
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.axis.client.Call.invoke(Unknown Source)
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.axis.client.Call.invoke(Unknown Source)
02.06.2014 17:32:25   AMgr: Agent ('AttachmentDownloadServer' in 'test/AttachmentsDownload2.nsf') error message: at lotus.domino.websvc.client.Call.invoke(Unknown Source)
我们已经尝试将库webvc.jar附加到java库中(由于错误:“无法保存脚本库。对生成的源代码所做的更改将阻止其正确操作”,因此我们无法将其附加到webservice使用者)。但这对我们没有帮助

我们是在9.0.1FP1设计器中为8.5.3FP6 Domino服务器开发的。我们也尝试在9.0.1 Domino服务器上运行此功能,但出现了相同的错误

有人见过这个错误吗?有解决办法吗

更多详细信息:

我正在使用Designer生成的源代码,其中使用了
lotus.domino.webvc.client.

我认为Domino服务器可以访问这些类。该错误是在调用中的invoke方法时创建的

lotus.domino.websvc.client.Call _call = createCall("xxx"); 
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {pInputXml}); 

因此,请求不会发送给Web服务提供商。

那么看看您如何调用它似乎是在编写自己的XML?这是一条SOAP消息吗?你能寄一个样品吗

是否有不使用默认方法的原因

例如,在导入您的WSDL后,我使用以下方法:

import lotus.domino.*;
import cz.env.dms.T_WS.T_WS_wsdl.*;

public class JavaAgent extends AgentBase {

    public void NotesMain() {

      try {

          // Refer to cz.env.dms.T_WS.T_WS_wsdl.MZP_WS_TESTPortType.java for service interface methods:
         MZP_WS_TESTPortType stub = new MZP_WS_TESTLocator().getMZP_WS_TESTPort();

         // Setting endpoint to test mockservice in SoapUI.
         //stub.setEndpoint("http://localhost:8088/mockservice");
         stub.setEndpoint("http://dms.env.cz/T-WS/T-WS");

         String answer = stub.getMyVersion();

         System.out.println(answer);

      } catch(Exception e) {
          e.printStackTrace();
       }
   }
}

我认为代理的运行时安全级别有问题。将其设置为“允许受限操作”。错误列表有点混乱。

我为调用添加了目标端点,它对我起了作用:

call.setTargetEndpointAddress(TARGET_ENDPOINT);

您是否使用第三方引擎?查看SOAP请求/响应(如果相关)和WSDL.No也会有所帮助。我使用Designer生成的源代码,其中使用了lotus.domino.webvc.client.*类。我认为Domino服务器可以访问这些类。调用lotus.domino.websvc.client.Call中的invoke方法时会产生错误_Call=createCall(“xxx”);java.lang.Object _resp=_call.invoke(新java.lang.Object[]{pInputXml});所以请求没有发送到Web服务提供者。那么您的Java代理正在调用Java Web服务消费者库?您可以发布WSDL/SOAP消息吗。看:没错。当我从LotusNotes客户端运行这个代理时,通信工作正常。第三方的web服务服务器正在响应。使用SOAPUI,它也可以正常工作。WSDL在这里,但我认为它没有帮助。奇怪的是,即使在具有相同版本的Domino服务器上,它也无法工作。我现在尝试为其他Web服务提供商wsdl创建一个新的使用者,该服务提供商wsdl正在为大型项目工作,错误是相同的。因此,相同的使用者生成引擎具有不同的wsdl,并且存在相同的问题。也许我可以尝试在没有domino扩展的情况下使用Axis。或者与Domino上的java LIB(或某些设置)不一致。其他wsdl在这里:。再次从本地呼叫代理,其工作正常。