Xsd location in embedded Java SE server

I use the built-in server in Java SE 6 for SOAP service. I have a WSDL with XSD.

My code:

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

But when I open this WSDL in SOAP UI, it says it can not find XSD ( localhost:9999/event-ws/test.xsd ): server return 404.

XSD and WSDL are together in a folder.

Edit1:

wsdl from local file:

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

I generated an interface from wsdl (and xsd) using the wsimport and wrote implementation.

Edit2:

wsdl from browser:

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

Edit3

But web-service successfully deployed and I can use it.

链接地址: http://www.djcxy.com/p/66662.html

上一篇: JBoss中的Webservice没有找到xsd

下一篇: 嵌入式Java SE服务器中的Xsd位置