2011-09-15 35 views
0

私は私のwebserviceに到達しようとしている間、エンドポイントと添付ファイルのサポートエラーが発生しています。サービスインターフェイスのエンドポイントがありません! "エラー"

私は認証を行うことはできますが、この「エンドポイントがありません」というエラーのためWebサービスにアクセスできません。

Console: 
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. 

AxisFault 
faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint 

faultSubcode: 

faultString: No endpoint <------------ 

faultActor: 

faultNode: 

faultDetail: 

{http://xml.apache.org/axis/}exceptionName:org.apache.axis.NoEndPointException 
    {http://xml.apache.org/axis/}stackTrace:No endpoint <-------------- 

    at functions.rfc.sap.document.sap_com.Zws001_BindingStub.ZF_GET_CUSTOMERS(Zws001_BindingStub.java:414) 
    at test.test1.main(test1.java:23) 

    {http://xml.apache.org/axis/}hostname:logosi3 

No endpoint 
    at functions.rfc.sap.document.sap_com.Zws001_BindingStub.ZF_GET_CUSTOMERS(Zws001_BindingStub.java:414) 
    at test.test1.main(test1.java:23) 
+0

*エンドポイント*がURLである、あなたがsoupUIを通して、あなたのサービスと話をしようとしていますすでに(私はそれがSOAPの..軸を使用していると思います) –

+0

私はSOAPを使用しています。私はsoupUI経由でサービスと話すことができますか教えてください。 – Mtu

+0

.. err、申し訳ありませんが、typo、それは[soapUI](http://www.soapui.org/)です。リンクをたどって、ツールをインストールします。チュートリアルや例がいくつかあります。 –

答えて

1

私は、ロケータクラスを使用してサービスを呼び出すのではなく、直接スタブクラスをロードすることによって、この問題を解決した -

GlobalWeatherLocator locator = new GlobalWeatherLocator(); 
     String cityName = "delhi"; 
     String countryName = "India"; 
     String data = locator.getGlobalWeatherSoap().getWeather(cityName, countryName); 
関連する問題