以下のような単純なJavaプログラムを作成しました。
import javax.jws.WebService;
@WebService
public class testing {
public static void main(String args[]){
System.out.println("hiiii");
}
}
次に、EclipseでこれからWebサービスを作成しました
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="testingService" targetNamespace="http://service.xms.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://service.xms.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:portType name="testing">
</wsdl:portType>
<wsdl:binding name="testingServiceSoapBinding" type="tns:testing">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
</wsdl:binding>
<wsdl:service name="testingService">
<wsdl:port name="testingPort" binding="tns:testingServiceSoapBinding">
<soap:address location="h..p://loca...st:8080/XMSExpenseServicePROD/services/testingPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
h..p://loca...st:8080/XMSExpenseServicePROD/services/testingPort?wsdl をブラウザーで開くと、404 エラー、要求されたリソースが利用できません... プログラムの何が問題なのかここまたはどこが間違っていますか。助けてください。
これは正確な問題ではありません。問題は別のプロジェクトにありましたが、調査の結果、Eclipse によって生成されたブラウザーでこの URL を開くことさえできません。どこが間違っているのかわかりません。誰でも助けることができますか?