As there were no answers for my previous query, I thought I better get a 
bit more specific.

In a session bean, I have a method:
/**
* @ejb.interface-method view-type="remote"
* @jboss-net.web-method
*/
public BsAddressBean getDeliveryAddress( String id);

BsAddressBean is marked as a serializable class for JBoss-net:
/**
 * @jboss-net.xml-schema urn = "tips:BsAddressBean"
 */
public class BsAddressBean implements Serializable {
        // getters and setters for name and country
}

The session bean is returning the following data:
<?xml version="1.0" encoding="UTF-8"?>
 <SOAP-ENV:Envelope 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <SOAP-ENV:Body>
 
   <getDeliveryAddressResponse 
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
       <getDeliveryAddressResult href="#id0"/>
   </getDeliveryAddressResponse>
 
   <multiRef id="id0" SOAP-ENC:root="0" xsi:type="ns1:BsAddressBean" 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="http://localhost:8080/tips";>
    <name xsi:type="xsd:string">Jonathan O&apos;Connor</name>
    <country xsi:type="xsd:string">Ireland</country>
   </multiRef>
  </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

My build script uses the following parameters in the jboss-net command:
<jbossnet webDeploymentName="tips"
    prefix="tips"
    destdir="${src-gen}/META-INF"
    targetNameSpace="http://localhost:8080/tips"; />

Finally, the server exception is telling me I've no deserializer for 
http://localhost:8080/tips:BsAddressBean
So what's my problem? Have I got the right urn specified in the 
BsAddressBean?

10:30:06,465 ERROR [Call] Exception:
org.xml.sax.SAXException: Deserializing parameter 
'getDeliveryAddressResult':  could not find deserializer for type 
http://localhost:8080/tips:BsAddressBean
        at 
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:190)
        at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:821)
        at 
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:197)
        at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:578)
        at 
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:207)
        at 
org.apache.axis.message.RPCElement.getParams(RPCElement.java:231)
        at org.apache.axis.client.Call.invoke(Call.java:1605)
        at org.apache.axis.client.Call.invoke(Call.java:1513)
        at org.apache.axis.client.Call.invoke(Call.java:1093)
        at 
xcom.traxbahn.externinterface.banksystem.XcomBankSystem.getDeliveryAddress(XcomBankSystem.java:137)Ciao,

BTW, I'm using JBoss 3.0.8
Thanks,
Jonathan O'Connor
XCOM Dublin



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to