Anne Thomas Manes wrote the following on 16.5.2005 15:25:
You need to define a type for your noEchoTextProvided element. This definition:

    <element name="noEchoTextProvided"/>

defaults to type="xsd:anyType", and therefore Axis is looking for a
deserializer. If you want to return an empty element, then you should
define it like this:

    <element name="noEchoTextProvided">
        <complexType>
            <sequence/>
        </complexType>
    </element>

Anne


Thanks a lot for your answer! I did resolve the matter by creating a small & dirty typeMapping in the client-config.wsdd. I include it here in case anyone is interested:


 <typeMapping
  xmlns:ns="http://www.w3.org/2001/XMLSchema";
  qname="ns:anyType"
  type="java:java.lang.String"
  serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
  deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
  encodingStyle=""
 />

A real piece of "art", you may agree... The typeMapping maps the Fault element (anyType) as a String. This approach seems to work, however. It's good to know also about the WSDL-changing solution you provided. It does seem a lot more elegant.

--
Marko Sormunen, M.Sc.
Messenger: [EMAIL PROTECTED]
HIS-research unit, Centek, Computing Centre
University of Kuopio

Reply via email to