相关疑难解决方法(0)

无论是WSDL还是wsimport和wsdl(单声道)都被严重破坏

编辑我从下面给出的例子开始,但我现在有:

  • 尝试了W3C规范中的例子.修复另一个错误(绑定StockQuoteSoapBinding在一个地方,StockQuoteBinding另一个地方调用)后,它给出了同样的问题.
  • 尝试单声道发电机wsdl,看看是否wsimport应该责备.它给出了一个等价的错误.

所以在我看来,尽管有关于SOAP的大肆宣传,它实际上并不起作用 - 至少不像宣传的那样.我无法相信没有人通过这些发生器运行最可见的wsdl示例.

原始问题

wsimport在以下wsdl上失败:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="OrdersService"
  xmlns:xsd="http://www.w3.org/1999/XMLSchema"
  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
  xmlns:os="http://example/schema/OrdersService"
  xmlns:tns="http://example/ns/OrdersService"
  targetNamespace="http://example/ns/OrdersService"
  >

  <wsdl:types>
    <xsd:schema
      targetNamespace="http://example/schema/OrdersService">

      <xsd:element name="o:GetOrders">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="criteria" type="string"/>
      </xsd:sequence>
    </xsd:complexType>
      </xsd:element>

      <xsd:element name="os:GetOrdersResponse">
    <xsd:complexType>
      <xsd:all>
        <xsd:element name="orders" type="string"/>
      </xsd:all>
    </xsd:complexType>
      </xsd:element>

    </xsd:schema>
  </wsdl:types>

  <wsdl:message name="GetOrdersRequest">
    <wsdl:part name="parameters" element="os:GetOrders"/>
  </wsdl:message>

  <wsdl:message name="GetOrdersResponse">
    <wsdl:part name="parameters" element="os:GetOrdersResponse"/>
  </wsdl:message>

  <wsdl:portType name="GetOrdersPortType">
    <wsdl:operation name="GetOrders">
      <wsdl:input message="tns:GetOrdersRequest"/>
      <wsdl:output message="tns:GetOrdersResponse"/>
    </wsdl:operation>
  </wsdl:portType>

  <wsdl:binding name="GetOrdersBinding" type="tns:GetOrdersPortType">
    <soap:binding …
Run Code Online (Sandbox Code Playgroud)

java wsdl java-metro-framework wsimport

3
推荐指数
1
解决办法
8936
查看次数

标签 统计

java ×1

java-metro-framework ×1

wsdl ×1

wsimport ×1