Here's a revision to the WSDL. Would you please post a JIRA requesting that this sample be fixed, and include this WSDL in the JIRA?

I made the following revisions:
- in the SOAPStruct element, I changed <all> to <sequence>
- removed the namespace attributes from all <soap:body> definitions.

Thanks,
Anne

On 7/24/06, Fabien Couble < [EMAIL PROTECTED]> wrote:
Actually, this WSDL file is the WSDL of the userguide. I just take it from the sample directory of the archive.
 
 
----- Original Message -----
From: xu cai
Sent: Monday, July 24, 2006 10:08 AM
Subject: Re: [AXIS2] userguide problem

Hi Fabien, how do you generate your wsdl file ? manually write it ?


 
On 7/24/06, Fabien Couble <[EMAIL PROTECTED] > wrote:
Hi Anne,
Thx for your reply...
You can see enclosed my wsdl file
 
Thx very much for your review
 
Fabien
----- Original Message -----
Sent: Friday, July 21, 2006 5:00 PM
Subject: Re: [AXIS2] userguide problem

 
You can't simply change the style from "rpc" to "document" and expect it to work. You also must remove the "namespace" attributes from the <soap:body> definitions, and you need to change the message <wsdl:part> definitions to reference elements rather than types, and thos elements must be defined/imported/included in the <wsdl:types> section.

If you post your WSDL, I'd be happy to review it for you.

Anne

On 7/21/06, Fabien Couble < [EMAIL PROTECTED]> wrote:
Hi all,
Still have a problem with the userguide. The client using the stub generated from a WSDL file doesn't work.
I have modified the WSDL file and I put "document" instead of "RPC" for the method.
(<soap:operation soapAction ="echoString" style ="document" />). There is the same problem.
 
Actually, the stub accepts only a parameter EchoIntParam whereas the code proposed in the userguide applys a EchoIntParamDocument parameter.
Moreover, when I put a EchoIntParam parameter, an exception is raised at the server side (skeleton) because it waits a EchoIntParamDocument parameter.
 
What should I do?
Please help me...
Fabien
 
 
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
- xucai
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


<?xml version="1.0" encoding="UTF-8"?>
<definitions
    name="Axis2SampleDocLitService"
    targetNamespace="http://userguide.axis2.apache.org/Axis2SampleDocLit";
    xmlns="http://schemas.xmlsoap.org/wsdl/";
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:tns="http://userguide.axis2.apache.org/Axis2SampleDocLit";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    xmlns:xsd1="http://userguide.axis2.apache.org/xsd";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <types>
        <schema
            elementFormDefault="qualified"
            targetNamespace="http://userguide.axis2.apache.org/xsd";
            xmlns="http://www.w3.org/2001/XMLSchema";
            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
            <complexType name="ArrayOfstring_literal">
                <sequence>
                    <element maxOccurs="unbounded" minOccurs="1" name="string" type="xsd:string"/>
                </sequence>
            </complexType>
            <complexType name="SOAPStruct">
                <sequence>
                    <element name="varFloat" type="xsd:float"/>
                    <element name="varInt" type="xsd:int"/>
                    <element name="varString" type="xsd:string"/>
                </sequence>
            </complexType>
            <element name="echoStringParam" type="xsd:string"/>
            <element name="echoIntParam" type="xsd:int"/>
            <element name="echoStringReturn" type="xsd:string"/>
            <element name="echoStringArrayParam" type="xsd1:ArrayOfstring_literal"/>
            <element name="echoStringArrayReturn" type="xsd1:ArrayOfstring_literal"/>
            <element name="echoStructParam" type="xsd1:SOAPStruct"/>
            <element name="echoStructReturn" type="xsd1:SOAPStruct"/>
        </schema>
    </types>
    <message name="echoStringArrayResponse">
        <part element="xsd1:echoStringArrayReturn" name="result"/>
    </message>
    <message name="echoStringArray">
        <part element="xsd1:echoStringArrayParam" name="a"/>
    </message>
    <message name="echoStruct">
        <part element="xsd1:echoStructParam" name="a"/>
    </message>
    <message name="echoString">
        <part element="xsd1:echoStringParam" name="a"/>
    </message>
    <message name="echoStructResponse">
        <part element="xsd1:echoStructReturn" name="result"/>
    </message>
    <message name="echoStringResponse">
        <part element="xsd1:echoStringReturn" name="result"/>
    </message>
    <portType name="Axis2SampleDocLitPortType">
        <operation name="echoString">
            <input message="tns:echoString" name="echoString"/>
            <output message="tns:echoStringResponse" name="echoStringResponse"/>
        </operation>
        <operation name="echoStringArray">
            <input message="tns:echoStringArray" name="echoStringArray"/>
            <output message="tns:echoStringArrayResponse" name="echoStringArrayResponse"/>
        </operation>
        <operation name="echoStruct">
            <input message="tns:echoStruct" name="echoStruct"/>
            <output message="tns:echoStructResponse" name="echoStructResponse"/>
        </operation>
    </portType>
    <binding
        name="Axis2SampleDocLitPortBinding"
        type="tns:Axis2SampleDocLitPortType">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <operation name="echoString">
            <soap:operation soapAction="echoString" style="document"/>
            <input name="echoString">
                <soap:body use="literal"/>
            </input>
            <output name="echoStringResponse">
                <soap:body use="literal"/>
            </output>
        </operation>
        <operation name="echoStringArray">
            <soap:operation soapAction="echoStringArray" style="document"/>
            <input name="echoStringArray">
                <soap:body use="literal"/>
            </input>
            <output name="echoStringArrayResponse">
                <soap:body use="literal"/>
            </output>
        </operation>
        <operation name="echoStruct">
            <soap:operation soapAction="echoStruct" style="document"/>
            <input name="echoStruct">
                <soap:body use="literal"/>
            </input>
            <output name="echoStructResponse">
                <soap:body use="literal"/>
            </output>
        </operation>
    </binding>
    <service name="Axis2SampleDocLitService">
        <port binding="tns:Axis2SampleDocLitPortBinding" name="Axis2SampleDocLitPort">
            <soap:address
                location="http://userguide.axis2.apache.org/stkv3/wsdl/Axis2SampleDocLit.wsdl"/>
        </port>
    </service>
</definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to