axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Taras Shkvarchuk <Tar...@grandcentral.com>
Subject RE: typeMapping problem
Date Fri, 12 Jul 2002 23:05:30 GMT
Here is what the problem is.
For the RPC style service, the of the WSDDService has encodingStyle of
Constants.URI_DEFAULT_SOAP_ENC, however for the type "java:MSG" messaging
service style(Style.MESSAGE) you get Constants.URI_LITERAL_ENC encoding, aka
empty string.
When you are looking for the service's type mappings. You get them bases on
encoding style of the service.
Since type mappings were defined on ".../soap/encoding" style, they are
NEVER seen by the service.

> -----Original Message-----
> From: Taras Shkvarchuk [mailto:TarasS@grandcentral.com]
> Sent: Thursday, July 11, 2002 1:12 AM
> To: 'axis-dev@xml.apache.org'
> Subject: typeMapping problem
> 
> 
> I was using a nightly build from about a 2-3 weeks ago. And everything
> worked fine.
> When using beta3(or today's nightly build), I fail to find 
> deserializer for
> my global types.
> 
> Did something change in the way you register types?
> 
> The exception I get is:
> java.lang.Exception: !! No Deserializer for
> {http://grandcentral.com/schemas/delivery/v1}delivery
> 	at
> org.apache.axis.message.MessageElement.getValueAsType(MessageE
> lement.java:52
> 2)
> 	at
> com.grandcentral.service.framework.GCMessageService.getDeliver
> yHdr(GCMessage
> Service.java:669)
> 	...
> 
> Code trying to deserialize header:
> 
> 			reqEnv=m_req.getSOAPEnvelope();
> 			deliveryHdr=
> reqEnv.getHeaderByName(GCSerializerConstants.TYPE_DELIVERY.get
> NamespaceURI()
> ,
> 	
> GCSerializerConstants.TYPE_DELIVERY.getLocalPart());
> 			delivery=(CLDelivery)
> deliveryHdr.getValueAsType(GCSerializerConstants.TYPE_DELIVERY);
> 
> The server-config.wsdd looks like this:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <deployment xmlns="http://xml.apache.org/axis/wsdd/"
> xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
>  <globalConfiguration>
>   <parameter name="adminPassword" value="admin"/>
>   <parameter name="attachments.Directory" value="C:\Program
> Files\Tomcat4\webapps\axis\WEB-INF\attachments"/>
>   <parameter name="attachments.implementation"
> value="org.apache.axis.attachments.AttachmentsImpl"/>
>   <parameter name="sendXsiTypes" value="true"/>
>   <parameter name="sendMultiRefs" value="true"/>
>   <parameter name="sendXMLDeclaration" value="true"/>
>   <requestFlow>
>    <handler type="java:org.apache.axis.handlers.JWSHandler">
>     <parameter name="scope" value="session"/>
>    </handler>
>    <handler type="java:org.apache.axis.handlers.JWSHandler">
>     <parameter name="scope" value="request"/>
>     <parameter name="extension" value=".jwr"/>
>    </handler>
>   </requestFlow>
>  </globalConfiguration>
>  <handler name="RPCDispatcher"
> type="java:org.apache.axis.providers.java.RPCProvider"/>
>  <handler name="MsgDispatcher"
> type="java:org.apache.axis.providers.java.MsgProvider"/>
>  <handler name="LocalResponder"
> type="java:org.apache.axis.transport.local.LocalResponder"/>
>  <handler name="Authenticate"
> type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
>  <handler name="URLMapper"
> type="java:org.apache.axis.handlers.http.URLMapper"/>
>  <service name="Version" provider="java:RPC">
>   <parameter name="allowedMethods" value="getVersion"/>
>   <parameter name="className" value="org.apache.axis.Version"/>
>  </service>
>  <service name="AdminService" provider="java:MSG">
>   <parameter name="allowedMethods" value="AdminService"/>
>   <parameter name="enableRemoteAdmin" value="false"/>
>   <parameter name="className" value="org.apache.axis.utils.Admin"/>
>   <parameter name="sendXsiTypes" value="true"/>
>   <parameter name="sendMultiRefs" value="true"/>
>   <parameter name="sendXMLDeclaration" value="true"/>
>   <namespace>http://xml.apache.org/axis/wsdd/</namespace>
>  </service>
>  <service name="TestService" provider="java:MSG">
>   <requestFlow type="checks"/>
>   <parameter name="allowedMethods" value="process"/>
>   <parameter name="FullMessageService" value="true"/>
>   <parameter name="className"
> value="com.grandcentral.service.test.TestService"/>
>   
> <namespace>http://grandcentralservices.com/framework/test/v1</
> namespace>
>  </service>
>  <transport name="local">
>   <responseFlow>
>    <handler 
> type="java:org.apache.axis.transport.local.LocalResponder"/>
>   </responseFlow>
>  </transport>
>  <transport name="http">
>   <requestFlow>
>    <handler type="URLMapper"/>
>    <handler 
> type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
>   </requestFlow>
>  </transport>
>  <typeMapping 
> deserializer="com.grandcentral.service.test.TIv1DSerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> qname="ns1:testNode" serializer=""
> type="java:com.grandcentral.service.test.TestInstructions"
> xmlns:ns1="http://grandcentralservices.com/framework/test/v1"/>
> 
>  <typeMapping
> deserializer="com.grandcentral.axis.serializers.DeliveryDeseri
> alizerFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> qname="ns2:delivery" serializer=""
> type="java:com.grandcentral.bindings.xmlmapping.CLDelivery"
> xmlns:ns2="http://grandcentral.com/schemas/delivery/v1"/>
> 
>  <typeMapping
> deserializer="com.grandcentral.axis.serializers.PostDeserializ
> erFactory"
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
> qname="ns3:post"
> serializer="com.grandcentral.axis.serializers.PostSerializerFactory"
> type="java:com.grandcentral.bindings.xmlmapping.CLPost"
> xmlns:ns3="http://grandcentral.com/schemas/post/v1"/>
> 
> </deployment>
> 
> 
> Thanks,
> -Taras
> 

Mime
View raw message