I am trying to get a modified version of the stock example to work with
built in castor serialization.

I am using the alpha1.2 release from
http://www.apache.org/dist/ws/axis/1_2alpha
However, since it did not include the ...encoding.ser.castor.* classes I
built a new axis.jar from the CVS repository. I then replaced the
axis.jar file from the 1_2alpha download with the new axis.jar file.

Given this configuration I can get the server side built and deployed
however when I run my client I get the following error on the client
side.  I do have the TradePriceRequestDescriptor class that castor
generated in my classpath so I am not sure what it is talking about.

remoteException: org.xml.sax.SAXException: Unable to marshall between
XML and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest

AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
 faultActor: 
 faultNode: 
 faultDetail: 
        {http://xml.apache.org/axis/}stackTrace:AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXException: Unable to marshall between XML
and Castor Objects :unable to find FieldDescriptor for
'TradePriceRequest' in ClassDescriptor of TradePriceRequest
 faultActor: 
 faultNode: 
 faultDetail: 

org.xml.sax.SAXException: Unable to marshall between XML and Castor
Objects :unable to find FieldDescriptor for 'TradePriceRequest' in
ClassDescriptor of TradePriceRequest
        at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja
va:262)
        at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav
a:169)
        at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseriali
zationContextImpl.java:1092)
        at
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
        at
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nContextImpl.java:257)
        at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:582)
        at org.apache.axis.Message.getSOAPEnvelope(Message.java:447)
        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:687)
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:134)
        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:183)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
        at org.apache.axis.client.Call.invoke(Call.java:2665)
        at org.apache.axis.client.Call.invoke(Call.java:2355)
        at org.apache.axis.client.Call.invoke(Call.java:2278)
        at org.apache.axis.client.Call.invoke(Call.java:1772)
        at
com.mbi.axis.test.server.J2WStockServiceSoapBindingStub.getLastTradePric
e(J2WStockServiceSoapBindingStub.java:151)
        at
com.mbi.axis.test.server.StaticClient.main(StaticClient.java:30)

Reply via email to