Hmmmm ...
I made a new testing WSDL file (see attached file) and generated a WS using Axis from Eclipse. The test resulted in that I can send a SOAP message with two parameters, I can see the server receives them, but the response contains only the first parameter of the two expected.

Any ideas/suggestions?
Regards






----Mensaje original----

De: [EMAIL PROTECTED]

Recibido: 09/02/2006 23:07

Para: , <[EMAIL PROTECTED]>

Asunto: Re: SOAP messages format



When using document/literal, your message may have at most one message part.
If you would like to design a programming interface that supports multiple input parameters, then you must design the WSDL to follow the WRAPPED convention. See my blog entry for more information:
http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html.

Anne

On 2/9/06,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:




Prueba el Nuevo Correo Terra; Seguro, RĂ¡pido, Fiable.











Prueba el Nuevo Correo Terra; Seguro, Rápido, Fiable.
<?xml version="1.0" encoding="UTF-8"?>
<definitions            name="EchoSrvc"
             targetNamespace="http://localhost:8080/echosrvc.wsdl";
                   xmlns:tns="http://localhost:8080/echosrvc.wsdl";
                  xmlns:xsd1="http://localhost:8080/echosrvc.xsd";
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
                       xmlns="http://schemas.xmlsoap.org/wsdl/";>
<types>
    <schema  targetNamespace="http://localhost:8080/echosrvc.xsd";
                       xmlns="http://www.w3.org/2001/XMLSchema"; 
                  xmlns:xsd1="http://localhost:8080/echosrvc.xsd";>

        <element name="echoBin">
          <complexType>
            <sequence>
              <element name="fileName" type="string"/>
              <element name="fileContent" type="string"/>
            </sequence>
          </complexType>
        </element> 
        <element name="echoBinResponse">
          <complexType>
            <sequence>
              <element name="fileName" type="string"/>
              <element name="fileContent" type="string"/>
            </sequence>
          </complexType>
        </element> 

    </schema>
</types>
<message name="echoBinRequest">
    <part name="echoBinReq" element="xsd1:echoBin"/>
</message>
<message name="echoBinResponse">
    <part name="echoBinRes" element="xsd1:echoBinResponse"/>
</message>

<portType name="EchoSrvcPort">
    <operation name="echoBin">
        <input message="tns:echoBinRequest"/>
        <output message="tns:echoBinResponse"/>
    </operation>
</portType>

<binding name="EchoSrvcBinding" type="tns:EchoSrvcPort">
    <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="echoBin">
        <soap:operation soapAction="https://localhost:8080/echoBin"/>
        <input>
            <soap:body use="literal"/>
        </input>
        <output>
            <soap:body use="literal"/>
        </output>
    </operation>
</binding>

<service name="EchoSrvc">
    <port name="EchoSrvcPort" binding="tns:EchoSrvcBinding">
        <soap:address location="https://localhost:8080/echosrvc"/>
    </port>
</service>

</definitions>

Reply via email to