有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

在JAVA代理中调用服务web,错误:RemoteException:找不到该服务的操作说明

我尝试在java代理中调用web服务java。 我有一个错误:

error message: java.rmi.RemoteException: No operation description was found for the service {http://tempuri.org/}ServiceFichier
 error message:  at org.tempuri.BasicHttpBinding_IServiceAccesFichierStub.getHelloWord(Unknown Source)
 error message:  at JavaAgent.NotesMain(Unknown Source)
 error message:  at lotus.domino.AgentBase.runNotes(Unknown Source)
 error message:  at lotus.domino.NotesThread.run(Unknown Source)

我使用以下代码调用web服务:

public class JavaAgent extends AgentBase {

    public void NotesMain() {

      try {
          Session session = getSession();
          AgentContext agentContext = session.getAgentContext();

          String test;

        URL endpoint;
        try 
        {
            endpoint = new URL("http://nomserveur:numeroport/AccesFichier/ServiceAccesFichier.svc?wsdl");       

            ServiceFichierLocator service1 = new ServiceFichierLocator();
            
            BasicHttpBinding_IServiceAccesFichierStub service = new BasicHttpBinding_IServiceAccesFichierStub(endpoint,service1);         
            
            test = service.getHelloWord();
        
            
            
            System.out.println(test + " ********************************************");
        } catch (MalformedURLException e) {
            // TODO Bloc catch auto-généré
            e.printStackTrace();
        } catch (Fault e) {
            // TODO Bloc catch auto-généré
            e.printStackTrace();
        } catch (RemoteException e) {
            // TODO Bloc catch auto-généré
            e.printStackTrace();
        }

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

我在notes domino designer 9.0.1中的web使用者中导入web服务。 web服务可以工作,它内置于dotnet中


共 (1) 个答案

  1. # 1 楼答案

    我在谷歌上搜索了一个错误“没有找到服务的操作说明”,然后发现了另一个这样的帖子

    (链接已更正) Consuming web service using wsdl in Domino

    这篇帖子与LotusScript Web服务有关,但我认为问题是一样的。LotusScript和。Net的方法/函数声明不区分大小写

    正在读取正在调用的堆栈跟踪。helloWord(),您的服务和消费者之间是否存在名称不匹配