I think you're right...but I'm wondering just what it has to be.  I guess I'm asking 
if the namespace is arbitrary or has to conform to something?  In the example below 
you've defined your namespace as urn:getSquareWS -- I see that that conforms to your 
class name, but that's about it.  Any pointers here?

I've updated my typeMapping to the following:
---------------------------------------
<service name="TheService" provider="java:RPC">
  <parameter name="allowedMethods" value="test"/>
  <parameter name="className" value="com.travelnow.test.TestService"/>
  <typeMapping 
            xmlns:someNS="urn:TestService" 
            qname="someNS:SomeRequest" 
            languageSpecificType="java:com.travelnow.test.TestObject"
            serializer="com.travelnow.test.ser.TestObjectSerFactory"
            deserializer="com.travelnow.test.deser.TestObjectDeserFactory"
            encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
---------------------------------------

And am still receiving:
---------------------------------------
Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'urn:TestService'. 
Namespace prefixes must be set on the Definition object using the addNamespace(...) 
method.:  
---------------------------------------

Thanks for your reply,
Cory

-----Original Message-----
From: Lindeman, Bob [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Axis Customer Seriliazers and Deserializers


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