Oh, THANKS!

However, this does bring up a question:

It seems like AXIS should be able to do this mapping, because it knows the
class information (via reflection).  Why do I have to add it by hand?

Jim


Jim Brain, [EMAIL PROTECTED]
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
SYSTEMS ARCHITECT, ITS, AEGON FINANCIAL PARTNERS

 -----Original Message-----
From:   Cory Wilkerson [mailto:[EMAIL PROTECTED]] 
Sent:   Monday, January 27, 2003 2:43 PM
To:     [EMAIL PROTECTED]
Subject:        RE: Probably a simple issue, but can't find it

Axis requires that the service know which class is used to deserialize the
incoming ConnectInfo parameter (in namespace http://producer):

Add something *like this* to your service description (*.wsdd)

<beanMapping qname="ns1:ConnectInfo" xmlns:ns1="http://producer"; 
            languageSpecificType="java:your.package.ConnectInfo"/>

Good luck!

-----Original Message-----
From: Brain, Jim [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 2:40 PM
To: AXIS Mailing List (E-mail)
Subject: Probably a simple issue, but can't find it


I have created my web service in AXIS 1.1b, which has two methods.  Both
take a ConnectInfo classe that is Serializable and has 2 fields (UID, PW)

The service deploys fine

I create the stubs via wsdl2java, and all is fine.

I run the test, and I get:

org.xml.sax.SAXException: Deserializing parameter 'connectInfo':  could not
find deserializer for type {http://producer}ConnectInfo
org.xml.sax.SAXException: Deserializing parameter 'connectInfo':  could not
find deserializer for type {http://producer}ConnectInfo
        at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:293)
        at
org.apache.axis.encoding.DeserializationContextImpl.startElement(Deserializa
tionContextImpl.java:912)
        at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:200)
        at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:
693)
        at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:221)
        at org.apache.axis.message.RPCElement.getParams(RPCElement.java:323)
        at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProv...

ConnectInfo.class is in axis/WEB-INF/classes/producer, and I just can't find
any reason for the error.  The JAX-RPC RI works with this class, so I know I
can create a web service out of it.

Anyone have a quick suggestion on how to get this to work?

I can send more information, but I was thinking this is a simple thing lots
of people see.

Jim


Jim Brain, [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, ITS, AEGON Financial Partners

Reply via email to