2014-10-07 38 views
0

我嘗試在代理java中調用Web服務Java。 我有這樣的錯誤:在代理JAVA中調用服務Web,錯誤:RemoteException:未找到該服務的操作描述

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(); 
     } 
    } 

我導入Web服務在筆記的網絡消費Domino Designer中9.0.1。 Web服務工作,它建立在dotnet。

我不明白髮生了什麼,我好累!你可以幫幫我嗎 !

回答

0

我做了一個谷歌搜索錯誤「沒有找到該服務的操作說明」,並找到了其他的SO貼子。

(鏈接校正) Consuming web service using wsdl in Domino

的發佈涉及LotusScript Web服務,但我相信這個問題是一樣的。關於它們的方法/函數聲明,LotusScript和.Net都不區分大小寫。

讀取您正在調用.helloWord()的堆棧跟蹤,您的服務和使用者之間是否存在名稱不匹配?

+0

抱歉,但鏈接不好,它叫同樣的問題... ^^ – sissi49 2014-10-21 10:55:02