I'm using Flex Builder 3 and Flex SDK 3 to create a simple SOAP webservice
client, but when I call the webservice method, I get the following error:
TypeError: Error #1090: Echec de l'analyse XML : le format de l'élément est
incorrect.
at mx.rpc.soap::SOAPEncoder/encodeOperationAsDocumentLiteral
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\soap\SOAPEncoder.as:353]
at mx.rpc.soap::SOAPEncoder/encodeBody
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\soap\SOAPEncoder.as:304]
at mx.rpc.soap::SOAPEncoder/encodeEnvelope
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\soap\SOAPEncoder.as:166]
at mx.rpc.soap::SOAPEncoder/encodeRequest
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\soap\SOAPEncoder.as:142]
at info.axen.basement.ria.remotedata.user::BaseUserManagementService/call
()[/Users/sarbogast/dev/basement/basement-mda/ria/core/src/main/flex/info/axen/basement/ria/remotedata/user/BaseUserManagementService.as:132]
at
info.axen.basement.ria.remotedata.user::BaseUserManagementService/getAllUsers
()[/Users/sarbogast/dev/basement/basement-mda/ria/core/src/main/flex/info/axen/basement/ria/remotedata/user/BaseUserManagementService.as:116]
at info.axen.basement.ria.remotedata.user::UserManagementService/getAllUsers
()[/Users/sarbogast/dev/basement/basement-mda/ria/core/src/main/flex/info/axen/basement/ria/remotedata/user/UserManagementService.as:73]
at
Basement/initializeHandler()[/Users/sarbogast/dev/basement/basement-mda/ria/core/src/main/flex/Basement.mxml:20]
at
Basement/___Application1_initialize()[/Users/sarbogast/dev/basement/basement-mda/ria/core/src/main/flex/Basement.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:8389]
at 
mx.core::UIComponent/setprocessedDescriptors()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:1144]
at mx.core::Container/createComponentsFromDescriptors
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\Container.as:3546]
at mx.core::Container/createChildren
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\Container.as:2618]
at mx.core::UIComponent/initialize
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\UIComponent.as:4941]
at mx.core::Container/initialize
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\Container.as:2555]
at mx.core::Application/initialize
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\core\Application.as:829]
at
Basement/initialize()[/Users/sarbogast/dev/basement/basement-mda/ria/core/src/main/flex/Basement.mxml:0]
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\SystemManager.as:1553]
at mx.managers::SystemManager/initializeTopLevelWindow
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\SystemManager.as:2330]
at mx.managers::SystemManager/docFrameHandler
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\managers\SystemManager.as:2214]

Knowing that all the stubs and UserManagementService are generated
automatically from the attached WSDL using Flex 3 webservice manager. And
the code that yields this error is:

private function initializeHandler(event:Event):void {

_userManagement = new UserManagementService();

_userManagement.getAllUsers();

//userManagement.addgetAllUsersEventListener(myResultHandlingFunction);

}


Does anyone have any idea of what might go wrong?

-- 
Sébastien Arbogast

http://www.sebastien-arbogast.com
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by andromda-webservice cartridge (wrapped-wsdl.vsl) do not edit! -->
<wsdl:definitions
    name="UserManagementService"
    targetNamespace="http://info.axen.basement.business";
    xmlns:impl="http://info.axen.basement.business";
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
    xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

    <!-- WSDL Types -->
    <wsdl:types>
        <xsd:schema elementFormDefault="qualified"
                    targetNamespace="http://info.axen.basement.business";
                    xmlns="http://www.w3.org/2001/XMLSchema";>
            <xsd:element name="getAllUsers">
                <xsd:annotation>
                    <xsd:documentation>
                        
                    </xsd:documentation>
                </xsd:annotation>
                <xsd:complexType/>
            </xsd:element>
            <xsd:element name="getAllUsersResponse">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="getAllUsersReturn" type="impl:ArrayOfUserListItem"/>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:complexType name="UserListItem">
                <xsd:annotation>
                    <xsd:documentation>
                        
                    </xsd:documentation>
                </xsd:annotation>
                <xsd:sequence>
                    <xsd:element name="id" nillable="false" type="xsd:long">
                        <xsd:annotation>
                            <xsd:documentation>
                                
                            </xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="username" nillable="false" type="xsd:string">
                        <xsd:annotation>
                            <xsd:documentation>
                                
                            </xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                    <xsd:element name="fullName" nillable="false" type="xsd:string">
                        <xsd:annotation>
                            <xsd:documentation>
                                
                            </xsd:documentation>
                        </xsd:annotation>
                    </xsd:element>
                </xsd:sequence>
            </xsd:complexType>
            <xsd:complexType name="ArrayOfUserListItem">
                <xsd:sequence>
                    <xsd:element name="userListItem" minOccurs="0" maxOccurs="unbounded" form="qualified" type="impl:UserListItem" />
                </xsd:sequence>
            </xsd:complexType>
        </xsd:schema>
    </wsdl:types>

    <!-- Messages -->
    <wsdl:message name="getAllUsers1Request">
        <wsdl:part element="impl:getAllUsers" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="getAllUsers1Response">
        <wsdl:part element="impl:getAllUsersResponse" name="parameters"/>
    </wsdl:message>

    <!-- Port Type -->
    <wsdl:portType name="UserManagementService">
        <wsdl:operation name="getAllUsers">

            <wsdl:documentation>
                
            </wsdl:documentation>
            <wsdl:input message="impl:getAllUsers1Request"
                        name="getAllUsers1Request"/>
            <wsdl:output message="impl:getAllUsers1Response"
                         name="getAllUsers1Response"/>

        </wsdl:operation>
    </wsdl:portType>

    <!-- WSDL Binding -->
    <wsdl:binding name="UserManagementServiceSoapBinding" type="impl:UserManagementService">
        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="getAllUsers">
            <wsdlsoap:operation soapAction="getAllUsers" style="document"/>
            <wsdl:input name="getAllUsers1Request">
                <wsdlsoap:body use="literal"/>
            </wsdl:input>
            <wsdl:output name="getAllUsers1Response">
                <wsdlsoap:body use="literal"/>
            </wsdl:output>
       </wsdl:operation>
    </wsdl:binding>

    <!-- Service Definition -->
    <wsdl:service name="UserManagementService">
        <wsdl:documentation>
            
        </wsdl:documentation>
        <wsdl:port binding="impl:UserManagementServiceSoapBinding" name="UserManagementService">
            <wsdlsoap:address location="http://localhost:8080/basement-ws/services/UserManagementService"/>
        </wsdl:port>
    </wsdl:service>

</wsdl:definitions>

Reply via email to