0

SOAPサービスにはJava SE 6の組み込みサーバーを使用しています。XSD を使用した WSDL があります。

私のコード:

Endpoint.publish ("http://localhost:9999/event-ws/wsdl", new SoapImpl ());

しかし、SOAP UI でこの WSDL を開くと、XSD が見つからない ( localhost:9999/event-ws/test.xsd): server return 404 と表示されます。

XSD と WSDL は 1 つのフォルダーにまとめられています。

編集1:

ローカル ファイルからの wsdl:

<wsdl:types>
<xsd:schema targetNamespace="http://localhost/extern/">
  <xsd:import schemaLocation="test.xsd"
    namespace="http://localhost/extern/event" />
  <xsd:element name="getAccountChangeTaskEvents">
    ....

wsimport を使用して wsdl (および xsd) からインターフェイスを生成し、実装を記述しました。

編集2:

ブラウザからの wsdl:

<wsdl:types>
<xsd:schema targetNamespace="http://localhost/extern/">
<xsd:import schemaLocation="test.xsd" namespace="http://localhost/extern/event"/>
<xsd:element name="getAccountChangeTaskEvents">
<xsd:complexType>
   ....

編集3

しかし、Web サービスは正常にデプロイされ、使用できます。

4

0 に答える 0