Hello,

I am writting WSDL using the schema functionnalite, and i am trying to get 
all the code to deploy the service using WSDL2JAVA.
I have to face some problems with simple types like 'boolean'  and 'int' 
which are not object when deploying the service.

This is a part of my schema:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsd:schema 
targetNamespace="http://trolez:8383/dhal2/wsdl/SeditelServices/schemas";
xmlns:xsdseditel="http://trolez:8383/dhal2/wsdl/SeditelServices/schemas";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>


<xsd:simpleType name="okType">
<xsd:restriction base="xsd:boolean"/>
</xsd:simpleType>
<xsd:element name="ok" type="xsdseditel:okType"/>
....
</xsd:schema>


This is a part of my wsdl:
<?xml version="1.0" encoding="iso-8859-1"?>
<definitions name="SeditelServices"
              targetNamespace="urn:soap.seditel.fr"
              xmlns:tns="urn:soap.seditel.fr"
              xmlns:xsdseditel="http://trolez:8383/dhal2/wsdl/SeditelServices/schemas";
              xmlns:xsd="http://www.w3.org/2001/XMLSchema";
              xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
              xmlns="http://schemas.xmlsoap.org/wsdl/";>

<import namespace="http://trolez:8383/dhal2/wsdl/SeditelServices/schemas";
  location="SeditelServices.xsd"/>

     <!-- Messages for Seditel APIs -->
<message name="void">
</message>

<message name="ok">
<part name="return" element="xsdseditel:ok"/>
</message>

After a WSDL2JAVA and a deploy, i get the following error message:
"
AXIS error
Sorry, something seems to have gone wrong... here are the details:
org.apache.axis.deployment.wsdd.WSDDException: 
java.lang.ClassNotFoundException: boolean
"

WSDL2JAVA generates the following WSDD (extract):

       <typeMapping
         xmlns:ns="http://trolez:8383/dhal2/wsdl/SeditelServices/schemas";
         qname="ns:okType"
         type="java:boolean"
         serializer="org.apache.axis.encoding.ser.SimpleNonPrimitiveSerializerFactory"
         deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
         encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
       />

and that true, boolean is not an object...
I have the same problem with wsd:int.

Is there a way to fix the problem, is it some bug?
Thanks a lot,
Greetings,


Reply via email to