axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Slominski <as...@cs.indiana.edu>
Subject supporting <soap:binding style="document" ? [Re: cvs commit: ws-axis/java/samples/client DynamicInvoker.java readme
Date Mon, 17 May 2004 22:11:37 GMT
dims@apache.org wrote:

>http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathService/VB/MathService.asmx?WSDL
Add 3 4
>  
>
hi Dims,

do you know what is the status of this WSDL file - it seems it uses 
*incorrect* style='document' on soap:binding
(allowed is* style="rpc|document"* only as per 
http://www.w3.org/TR/wsdl#_soap:binding)

  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />

shouldnt AXIS generate at least warning that it is incorrect style 
(maybe AXIS already does it)?

thanks.

alek

ps. here is whole WSDL - did i miss something?

<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://tempuri.org/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://tempuri.org/" xmlns="http://schemas.xmlsoap.org/wsdl/">
  <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/">
      <s:element name="Add">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="A" type="s:float" />
            <s:element minOccurs="1" maxOccurs="1" name="B" type="s:float" />
          </s:sequence>

        </s:complexType>
      </s:element>
      <s:element name="AddResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="AddResult" type="s:float" />
          </s:sequence>
        </s:complexType>
      </s:element>

      <s:element name="Subtract">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="A" type="s:float" />
            <s:element minOccurs="1" maxOccurs="1" name="B" type="s:float" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="SubtractResponse">

        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="SubtractResult" type="s:float"
/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="Multiply">
        <s:complexType>
          <s:sequence>

            <s:element minOccurs="1" maxOccurs="1" name="A" type="s:float" />
            <s:element minOccurs="1" maxOccurs="1" name="B" type="s:float" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MultiplyResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="MultiplyResult" type="s:float"
/>

          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="Divide">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="A" type="s:float" />
            <s:element minOccurs="1" maxOccurs="1" name="B" type="s:float" />
          </s:sequence>

        </s:complexType>
      </s:element>
      <s:element name="DivideResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="DivideResult" type="s:float" />
          </s:sequence>
        </s:complexType>
      </s:element>

      <s:element name="float" type="s:float" />
    </s:schema>
  </types>
  <message name="AddSoapIn">
    <part name="parameters" element="s0:Add" />
  </message>
  <message name="AddSoapOut">
    <part name="parameters" element="s0:AddResponse" />
  </message>

  <message name="SubtractSoapIn">
    <part name="parameters" element="s0:Subtract" />
  </message>
  <message name="SubtractSoapOut">
    <part name="parameters" element="s0:SubtractResponse" />
  </message>
  <message name="MultiplySoapIn">
    <part name="parameters" element="s0:Multiply" />
  </message>

  <message name="MultiplySoapOut">
    <part name="parameters" element="s0:MultiplyResponse" />
  </message>
  <message name="DivideSoapIn">
    <part name="parameters" element="s0:Divide" />
  </message>
  <message name="DivideSoapOut">
    <part name="parameters" element="s0:DivideResponse" />
  </message>

  <message name="AddHttpGetIn">
    <part name="A" type="s:string" />
    <part name="B" type="s:string" />
  </message>
  <message name="AddHttpGetOut">
    <part name="Body" element="s0:float" />
  </message>
  <message name="SubtractHttpGetIn">
    <part name="A" type="s:string" />

    <part name="B" type="s:string" />
  </message>
  <message name="SubtractHttpGetOut">
    <part name="Body" element="s0:float" />
  </message>
  <message name="MultiplyHttpGetIn">
    <part name="A" type="s:string" />
    <part name="B" type="s:string" />
  </message>

  <message name="MultiplyHttpGetOut">
    <part name="Body" element="s0:float" />
  </message>
  <message name="DivideHttpGetIn">
    <part name="A" type="s:string" />
    <part name="B" type="s:string" />
  </message>
  <message name="DivideHttpGetOut">
    <part name="Body" element="s0:float" />

  </message>
  <message name="AddHttpPostIn">
    <part name="A" type="s:string" />
    <part name="B" type="s:string" />
  </message>
  <message name="AddHttpPostOut">
    <part name="Body" element="s0:float" />
  </message>
  <message name="SubtractHttpPostIn">

    <part name="A" type="s:string" />
    <part name="B" type="s:string" />
  </message>
  <message name="SubtractHttpPostOut">
    <part name="Body" element="s0:float" />
  </message>
  <message name="MultiplyHttpPostIn">
    <part name="A" type="s:string" />
    <part name="B" type="s:string" />

  </message>
  <message name="MultiplyHttpPostOut">
    <part name="Body" element="s0:float" />
  </message>
  <message name="DivideHttpPostIn">
    <part name="A" type="s:string" />
    <part name="B" type="s:string" />
  </message>
  <message name="DivideHttpPostOut">

    <part name="Body" element="s0:float" />
  </message>
  <portType name="MathServiceSoap">
    <operation name="Add">
      <input message="s0:AddSoapIn" />
      <output message="s0:AddSoapOut" />
    </operation>
    <operation name="Subtract">
      <input message="s0:SubtractSoapIn" />

      <output message="s0:SubtractSoapOut" />
    </operation>
    <operation name="Multiply">
      <input message="s0:MultiplySoapIn" />
      <output message="s0:MultiplySoapOut" />
    </operation>
    <operation name="Divide">
      <input message="s0:DivideSoapIn" />
      <output message="s0:DivideSoapOut" />

    </operation>
  </portType>
  <portType name="MathServiceHttpGet">
    <operation name="Add">
      <input message="s0:AddHttpGetIn" />
      <output message="s0:AddHttpGetOut" />
    </operation>
    <operation name="Subtract">
      <input message="s0:SubtractHttpGetIn" />

      <output message="s0:SubtractHttpGetOut" />
    </operation>
    <operation name="Multiply">
      <input message="s0:MultiplyHttpGetIn" />
      <output message="s0:MultiplyHttpGetOut" />
    </operation>
    <operation name="Divide">
      <input message="s0:DivideHttpGetIn" />
      <output message="s0:DivideHttpGetOut" />

    </operation>
  </portType>
  <portType name="MathServiceHttpPost">
    <operation name="Add">
      <input message="s0:AddHttpPostIn" />
      <output message="s0:AddHttpPostOut" />
    </operation>
    <operation name="Subtract">
      <input message="s0:SubtractHttpPostIn" />

      <output message="s0:SubtractHttpPostOut" />
    </operation>
    <operation name="Multiply">
      <input message="s0:MultiplyHttpPostIn" />
      <output message="s0:MultiplyHttpPostOut" />
    </operation>
    <operation name="Divide">
      <input message="s0:DivideHttpPostIn" />
      <output message="s0:DivideHttpPostOut" />

    </operation>
  </portType>
  <binding name="MathServiceSoap" type="s0:MathServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
    <operation name="Add">
      <soap:operation soapAction="http://tempuri.org/Add" style="document" />
      <input>
        <soap:body use="literal" />
      </input>

      <output>
        <soap:body use="literal" />
      </output>
    </operation>
    <operation name="Subtract">
      <soap:operation soapAction="http://tempuri.org/Subtract" style="document" />
      <input>
        <soap:body use="literal" />
      </input>

      <output>
        <soap:body use="literal" />
      </output>
    </operation>
    <operation name="Multiply">
      <soap:operation soapAction="http://tempuri.org/Multiply" style="document" />
      <input>
        <soap:body use="literal" />
      </input>

      <output>
        <soap:body use="literal" />
      </output>
    </operation>
    <operation name="Divide">
      <soap:operation soapAction="http://tempuri.org/Divide" style="document" />
      <input>
        <soap:body use="literal" />
      </input>

      <output>
        <soap:body use="literal" />
      </output>
    </operation>
  </binding>
  <binding name="MathServiceHttpGet" type="s0:MathServiceHttpGet">
    <http:binding verb="GET" />
    <operation name="Add">
      <http:operation location="/Add" />

      <input>
        <http:urlEncoded />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>
    </operation>
    <operation name="Subtract">
      <http:operation location="/Subtract" />

      <input>
        <http:urlEncoded />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>
    </operation>
    <operation name="Multiply">
      <http:operation location="/Multiply" />

      <input>
        <http:urlEncoded />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>
    </operation>
    <operation name="Divide">
      <http:operation location="/Divide" />

      <input>
        <http:urlEncoded />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>
    </operation>
  </binding>
  <binding name="MathServiceHttpPost" type="s0:MathServiceHttpPost">

    <http:binding verb="POST" />
    <operation name="Add">
      <http:operation location="/Add" />
      <input>
        <mime:content type="application/x-www-form-urlencoded" />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>

    </operation>
    <operation name="Subtract">
      <http:operation location="/Subtract" />
      <input>
        <mime:content type="application/x-www-form-urlencoded" />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>

    </operation>
    <operation name="Multiply">
      <http:operation location="/Multiply" />
      <input>
        <mime:content type="application/x-www-form-urlencoded" />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>

    </operation>
    <operation name="Divide">
      <http:operation location="/Divide" />
      <input>
        <mime:content type="application/x-www-form-urlencoded" />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>

    </operation>
  </binding>
  <service name="MathService">
    <port name="MathServiceSoap" binding="s0:MathServiceSoap">
      <soap:address location="http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathService/VB/MathService.asmx"
/>
    </port>
    <port name="MathServiceHttpGet" binding="s0:MathServiceHttpGet">
      <http:address location="http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathService/VB/MathService.asmx"
/>
    </port>

    <port name="MathServiceHttpPost" binding="s0:MathServiceHttpPost">
      <http:address location="http://samples.gotdotnet.com/quickstart/aspplus/samples/services/MathService/VB/MathService.asmx"
/>
    </port>
  </service>
</definitions>


-- 
The best way to predict the future is to invent it - Alan Kay


Mime
View raw message