簡體   English   中英

SOAPUI中的空請求標簽

[英]Empty request tags in SOAPUI

   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
       <soapenv:Header/>
       <soapenv:Body>
          <xs:QueryProductionCalendarRequest/>
       </soapenv:Body>
    </soapenv:Envelope>

當我在SOAPUI中加載WSDL時。 該請求似乎為空。 為什么這里沒有顯示請求元素。 但是,當我加載在線下載的WSDL示例時。 它看起來像如下:

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://quickstart.samples/xsd">
   <soap:Header/>
   <soap:Body>
      <xsd:getPrice>
         <xsd:symbol>?</xsd:symbol>
      </xsd:getPrice>
   </soap:Body>
</soap:Envelope>

有人可以向我解釋一下這里發生了什么嗎? 以下是WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:axis2="http://ws.apache.org/axis2" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.apache.org/axis2">
    <wsdl:documentation>FlexisService</wsdl:documentation>
    <wsdl:types>
      <xs:element name="QueryProductionCalendarRequest" type="QueryProductionCalendarRequestType"/>
      <xs:complexType name="QueryProductionCalendarRequestType">
        <xs:sequence>
          <xs:element name="Plant" type="xs:string"/>
          <xs:element name="Line" type="xs:string"/>
          <xs:element name="StartDate" type="xs:date" minOccurs="0"/>
          <xs:element name="EndDate" type="xs:date" minOccurs="0"/>
        </xs:sequence>
      </xs:complexType>
      <xs:element name="QueryProductionCalendarResponse" type="QueryProductionCalendarResponseType"/>
      <xs:complexType name="QueryProductionCalendarResponseType">
        <xs:sequence>
          <xs:element name="Plant" type="xs:string"/>
          <xs:element name="Line" type="xs:string"/>
          <xs:element name="ProductionDayList" type="ProductionDayListType"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="ProductionDayListType">
        <xs:sequence>
          <xs:element name="ProductionDay" type="ProductionDayType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="ProductionDayType">
        <xs:sequence>
          <xs:element name="ProductionDate" type="xs:date"/>
          <xs:element name="ProductionRate" type="xs:integer"/>
          <xs:element name="ProductionShiftList" type="ProductionShiftListType" minOccurs="0"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="ProductionShiftListType">
        <xs:sequence>
          <xs:element name="ProductionShift" type="ProductionShiftType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="ProductionShiftType">
        <xs:sequence>
          <xs:element name="Name" type="xs:string"/>
          <xs:element name="ShiftRate" type="xs:integer"/>
          <xs:element name="StartDateTime" type="xs:dateTime"/>
          <xs:element name="EndDateTime" type="xs:dateTime"/>
        </xs:sequence>
      </xs:complexType>
    </wsdl:types>
    <wsdl:message name="QueryProductionCalendarRequestMessage">
      <wsdl:part name="parameters" element="xs:QueryProductionCalendarRequest"/>
    </wsdl:message>
    <wsdl:message name="QueryProductionCalendarResponseMessage">
      <wsdl:part name="parameters" element="xs:QueryProductionCalendarResponse"/>
    </wsdl:message>
    <wsdl:portType name="FlexisServicePortType">
        <wsdl:operation name="QueryProductionCalendar">
            <wsdl:input message="axis2:QueryProductionCalendarRequestMessage" wsaw:Action="urn:QueryProductionCalendar"/>
            <wsdl:output message="axis2:QueryProductionCalendarResponseMessage" wsaw:Action="urn:QueryProductionCalendarResponse"/>
        </wsdl:operation>    
    </wsdl:portType>
    <wsdl:binding name="FlexisServiceSoap11Binding" type="axis2:FlexisServicePortType">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="QueryProductionCalendar">
            <soap:operation soapAction="urn:QueryProductionCalendar" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="FlexisServiceSoap12Binding" type="axis2:FlexisServicePortType">
        <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
        <wsdl:operation name="QueryProductionCalendar">
            <soap12:operation soapAction="urn:QueryProductionCalendar" style="document"/>
            <wsdl:input>
                <soap12:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap12:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:binding name="FlexisServiceHttpBinding" type="axis2:FlexisServicePortType">
        <http:binding verb="POST"/>
        <wsdl:operation name="QueryProductionCalendar">
            <http:operation location="FlexisService/QueryProductionCalendar"/>
            <wsdl:input>
                <mime:content type="text/xml" part="QueryProductionCalendar"/>
            </wsdl:input>
            <wsdl:output>
                <mime:content type="text/xml" part="QueryProductionCalendar"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="FlexisService">
        <soap:address location='http://localhost:8080/axis2/services/FlexisService'/>
    </wsdl:service>
</wsdl:definitions>

它應該與WSDL文件有關。 請檢查

 <wsdl:message name="nameOfRequest">

WSDL文件的一部分,並確保它包含必需的元素。

只需輸入一個股票代碼即可代替? 並提交請求。 getPrice聽起來像是一個非常簡單的請求,所以我真的不希望需要更多的股票代碼。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM