axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harm de Laat <harmdel...@gmail.com>
Subject Re: Castor (De)Serializers not recognized !
Date Mon, 21 Feb 2005 15:27:29 GMT
Again, did you modify the stub? Did you add the serializer and deserializer?


On Mon, 21 Feb 2005 20:25:24 +0530, babloosony <babloosony@gmail.com> wrote:
> Castor (De)Serializers not recognized !
> 
> Hi All,
> 
> I was trying to use Castor as AXIS 1.2 RC2 (De)Serializers and was
> following the tutorials
> http://www-106.ibm.com/developerworks/webservices/library/ws-castor/#getcastor.
> However when I register my service using below lines in
> server-config.wsdd, the service is not deployed properly and I  see no
> errors in my log files.
> 
> server-config.wsdd
> -----------------------------------------------------------
> <service name="StockQuoteSOAPPort" provider="java:RPC" style="wrapped"
> use="literal">
> <parameter name="wsdlTargetNamespace"
> value="http://w3.ibm.com/schemas/services/2002/11/15/stockquote/wsdl"/>
> <parameter name="wsdlServiceElement" value="StockQuoteService"/>
> <parameter name="wsdlServicePort" value="StockQuoteSOAPPort"/>
> <parameter name="wsdlPortType" value="StockQuotePortType"/>
> <parameter name="className"
> value="com.ibm.w3.services.stockquote.StockQuoteSOAPBindingImpl"/>
> 
> <operation name="getStockQuote" qname="operNS:getStockQuote"
> xmlns:operNS="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> returnQName="retNS:quote"
> xmlns:retNS="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> returnType="rtns:quote"
> xmlns:rtns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> soapAction="getStockQuote">
> 
> <parameter qname="symbol" type="tns:string"
> xmlns:tns="http://www.w3.org/2001/XMLSchema"/>
> </operation>
> 
> <parameter name="allowedMethods" value="getStockQuote"/>
> 
> <typeMapping xmlns:ns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> qname="ns:quote"
> type="java:com.ibm.w3.services.stockquote.Quote"
> serializer="org.apache.axis.encoding.ser.CastorSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.CastorDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> <typeMapping
> xmlns:ns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> qname="ns:lastTradeType"
> type="java:com.ibm.w3.services.stockquote.LastTradeType"
> serializer="org.apache.axis.encoding.ser.CastorSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.CastorDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> <typeMapping
> xmlns:ns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> qname="ns:changeType"
> type="java:com.ibm.w3.services.stockquote.ChangeType"
> serializer="org.apache.axis.encoding.ser.CastorSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.CastorDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> </service>
> -----------------------------------------------------------
> 
> I found that the actual lines that are giving problem is below :
> 
> <typeMapping xmlns:ns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> qname="ns:quote"
> type="java:com.ibm.w3.services.stockquote.Quote"
> serializer="org.apache.axis.encoding.ser.CastorSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.CastorDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> <typeMapping
> xmlns:ns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> qname="ns:lastTradeType"
> type="java:com.ibm.w3.services.stockquote.LastTradeType"
> serializer="org.apache.axis.encoding.ser.CastorSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.CastorDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> <typeMapping
> xmlns:ns="http://w3.ibm.com/schemas/services/2002/11/15/stockquote"
> qname="ns:changeType"
> type="java:com.ibm.w3.services.stockquote.ChangeType"
> serializer="org.apache.axis.encoding.ser.CastorSerializerFactory"
> deserializer="org.apache.axis.encoding.ser.CastorDeserializerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
> 
> and when I comment above lines, my service is deployed properly and I
> can view my service when I type
> http://localhost:8090/axis/servlet/AxisServlet
>  in my browser. Why is this happenning. I have the castor classes in
> {AXIS-WEBAPP}\WEB-INF\classes directory compiled
>  from the source
> http://cvs.apache.org/viewcvs.cgi/ws-axis/java/src/org/apache/axis/encoding/ser/castor/
> 
>  Please suggest friends ...
> 
>  Thanks & Regards,
>  Kumar.
>

Mime
View raw message