Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/366.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 列出web服务器中部署的所有web服务(SOAP/REST)_Java_Web Services - Fatal编程技术网

Java 列出web服务器中部署的所有web服务(SOAP/REST)

Java 列出web服务器中部署的所有web服务(SOAP/REST),java,web-services,Java,Web Services,我有一个如下的wsdl文件,我想知道是否有可能通过jsp或任何其他前端技术在浏览器中显示Web服务列表 这是在使用SOAP,我也想知道是否也有类似的方法使用REST显示web服务列表 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI

我有一个如下的wsdl文件,我想知道是否有可能通过jsp或任何其他前端技术在浏览器中显示Web服务列表

这是在使用SOAP,我也想知道是否也有类似的方法使用REST显示web服务列表

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI          2.1.6 in JDK 6. -->
    <definitions targetNamespace="http://test.com/" name="HelloWorldNewService"        xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://test.com/"   xmlns:xsd="http://www.w3.org/2001/XMLSchema"  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
    <types>
    <xsd:schema>
      <xsd:import namespace="http://test.com/" schemaLocation="HelloWorldNewService_schema1.xsd"/>
    </xsd:schema>
  </types>
  <message name="sum">
    <part name="parameters" element="tns:sum"/>
  </message>
  <message name="sumResponse">
    <part name="parameters" element="tns:sumResponse"/>
  </message>
  <portType name="HelloWorldNew">
    <operation name="sum">
      <input message="tns:sum"/>
      <output message="tns:sumResponse"/>
    </operation>
  </portType>
  <binding name="HelloWorldNewPortBinding" type="tns:HelloWorldNew">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="sum">
      <soap:operation soapAction=""/>
      <input>
        <soap:body use="literal"/>
      </input>
      <output>
        <soap:body use="literal"/>
      </output>
    </operation>
  </binding>
  <service name="HelloWorldNewService">
    <port name="HelloWorldNewPort" binding="tns:HelloWorldNewPortBinding">
      <soap:address location="http://localhost:7001/CustomWebservices/HelloWorldNew"/>
    </port>
  </service>
</definitions>

[更新]

我需要复制EclipseWebServicesExplorer之类的东西,其中我将有一个前端显示一组Web服务,通过点击每个Web服务名称,它应该会向我显示参数和类似内容的列表。

是否要显示Web服务的操作列表,如“sum”或Web服务名称“HelloWorldNewService”?Luciano,我想显示ws名称,然后当我点击ws名称时,它应该与参数一起填充方法sum..就像Eclipse Webservices Explorer..请对此发表评论?