Cory,

This one works. I think your xmlns:ns is incorrect:

<deployment xmlns="http://xml.apache.org/axis/wsdd/";
            xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

 <service name="SquareServices" provider="java:RPC">
  <parameter name="className"
value="com.atosorigin.webservices.getSquareWS"/>
  <parameter name="allowedMethods" value="getConceptChildren
getConceptChildrenNoHeader getConceptChildrenVectored getConceptPath"/>
  
  <responseFlow>
        <handler name="EditSOAP"
type="java:com.atosorigin.web.soap.handlers.ConceptCompositionSOAPOutHandler
"/> 
  </responseFlow>

  <beanMapping qname="myNS:ConceptCompositionAttributes" 
                           xmlns:myNS="urn:getSquareWS"
 
languageSpecificType="java:com.philips.ce.ecm2.web.ConceptCompositionAttribu
tes"/>
  <beanMapping qname="myNS:ConceptComposition" 
               xmlns:myNS="urn:getSquareWS"
 
languageSpecificType="java:com.philips.ce.ecm2.web.ConceptComposition"/>
  <typeMapping 
          xmlns:myNS="urn:getSquareWS"
        qname="myNS:ConceptPath"
        type="java:com.philips.ce.ecm2.web.ConceptPathVector"
 
serializer="com.philips.ce.ecm2.web.encoding.ser.PathSerializerFactory"
 
deserializer="com.philips.ce.ecm2.web.encoding.ser.PathDeserializerFactory"
        encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
 </service>

</deployment>

regards

Bob Lindeman

-----Original Message-----
From: Cory Wilkerson [mailto:[EMAIL PROTECTED]
Sent: dinsdag 25 februari 2003 00:42
To: [EMAIL PROTECTED]
Subject: Axis Customer Seriliazers and Deserializers


Anyone out there succesfully implementing Custom Serializers and
Deserializers.  I've followed the User guide blurb as well as emulated the
examples in samples/encoding -- but I'm dropping the ball at WSDL generation
time.  When I attempt to invoke serviceName?wsdl, I receive the following
output:

faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for
'http://localhost/services'. Namespace prefixes must be set on the
Definition object using the addNamespace(...) method.: 

Entry from server-config is as follows (and this may be where my confusion
is).  I assumed the namespace definition here was arbitrary and would be the
namespace marshalled to the client in the WSDL generated by Axis.

 <service name="TheService" provider="java:RPC">
        <parameter name="allowedMethods" value="doSomething"/>
        <parameter name="className"
value="com.travelnow.testser.SomeService"/>
        <typeMapping qname="ns:SomeRequest"
xmlns:ns="http://localhost/services";
             languageSpecificType="java:com.travelnow.testser.SomeRequest"
             serializer="com.travelnow.testser.ser.SomeRequestSerFactory"
 
deserializer="com.travelnow.testser.ser.SomeRequestDeserFactory"
             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
 </service>

A little disheartening.  Any ideas?
Cory

Reply via email to