axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongsheng Song" <egcs1...@hotmail.com>
Subject How Can I simplify the wsdd file ?
Date Thu, 27 Feb 2003 01:26:04 GMT
When I deploy a web service, I have to write much typeMapping element, because I use axis default
BeanSerializerFactory & ArraySerializerFactory, So there should have a simplify method
to avoid the trivialness work to write much typeMapping element.

BTW: Is the wsdd file have DTD ?

Thanks for some help.

<deployment xmlns="http://xml.apache.org/axis/wsdd/"
     xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"
           xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

 <service name="Taxpayer" provider="java:RPC" >
   <namespace>http://www.foresee.com.cn/jsgc/pinggu/webservice/</namespace>
   <parameter name="className" value="com.foresee.jsgc.soap.Taxpayer" />
   <parameter name="allowedMethods" value="*" />
   <typeMapping
       xmlns:ns="http://www.foresee.com.cn/jsgc/pinggu/webservice/xsd"
       qname="ns:QKSM_FPXX"
       type="java:com.foresee.jsgc.vo.QKSM_FPXX"
       serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
       deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   />
   <typeMapping
      xmlns:ns="http://www.foresee.com.cn/jsgc/pinggu/webservice/xsd"
      qname="ns:ArrayOf_QKSM_FPXX"
      type="java:com.foresee.jsgc.vo.QKSM_FPXX[]"
      serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
      deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   />
   <typeMapping
       xmlns:ns="http://www.foresee.com.cn/jsgc/pinggu/webservice/xsd"
       qname="ns:ProfitLoss_MXXX"
       type="java:com.foresee.jsgc.vo.ProfitLoss_MXXX"
       serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
       deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   />
   <typeMapping
      xmlns:ns="http://www.foresee.com.cn/jsgc/pinggu/webservice/xsd"
      qname="ns:ArrayOf_ProfitLoss_MXXX"
      type="java:com.foresee.jsgc.vo.ProfitLoss_MXXX[]"
      serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
      deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   />
   <typeMapping
       xmlns:ns="http://www.foresee.com.cn/jsgc/pinggu/webservice/xsd"
       qname="ns:Oil_MXXX"
       type="java:com.foresee.jsgc.vo.Oil_MXXX"
       serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
       deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
       encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   />
   <typeMapping
      xmlns:ns="http://www.foresee.com.cn/jsgc/pinggu/webservice/xsd"
      qname="ns:ArrayOf_Oil_MXXX"
      type="java:com.foresee.jsgc.vo.Oil_MXXX[]"
      serializer="org.apache.axis.encoding.ser.ArraySerializerFactory"
      deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory"
      encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
   />
.................................................
 </service>

</deployment>
Mime
View raw message