You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Chris K. Wensel" <ch...@wensel.net> on 2002/08/23 22:28:17 UTC

RE: custom TypeMapping (LocalSender bug?)

so it seems LocalSender is by-passing deserialization.

Index: LocalSender.java
===================================================================
RCS file:
/home/cvspublic/xml-axis/java/src/org/apache/axis/transport/local/LocalSende
r.java,v
retrieving revision 1.38
diff -w -r1.38 LocalSender.java
176,177c176,177
<
clientContext.setResponseMessage(serverContext.getResponseMessage());
<         //clientContext.getResponseMessage().getAsString();
---
>         msgStr = serverContext.getResponseMessage().getSOAPPartAsString();
>         clientContext.setResponseMessage( new Message( msgStr ) );



> -----Original Message-----
> From: Chris K. Wensel [mailto:chris@wensel.net]
> Sent: Friday, August 23, 2002 11:29 AM
> To: axis-user@xml.apache.org
> Subject: custom TypeMapping
>
>
>
> I'm writing a simple test where i need to add my own custom TypeMapping
> instance. Looking over the test and samples i came up with this.
>
> TypeMappingRegistry tmr = clientEngine.getTypeMappingRegistry();
> TypeMappingImpl tm = new CWTypeMapping( (TypeMapping)
> tmr.getDefaultTypeMapping() );
>
> tm.setSupportedEncodings( new String[]{Constants.URI_DEFAULT_SOAP_ENC} );
>
> tmr.register( Constants.URI_DEFAULT_SOAP_ENC, tm );
>
>
> During serialization the CWTypeMapping is used, but during deserialization
> it is not.
>
> To confuse matters, i'm using the LocalTransport to short circuit any http
> calls. So this may be aggravating matters.
>
> In addition, i'm adding a new CWTypeMapping to an AxisServer instance, and
> it is not being called at all.
>
> note that the test does not fail, the 'remote' service is called. but my
> CWTypeMapping is being ignored. if interested, i can send the
> unit test (its
> very simple). but i wanted to see what the right way to do this was first.
>
> cheers,
> ckw
>
> Chris K. Wensel
>
>
>