Hello,
I am trying to migrate from Jboss 3.2.3 to 4.01. The real problem is with
web services. I know that it was necessary to trash Jboss.net, but how much
difficult things are now, and how frustrating to have to redo something that
works... :(
Anyways, frustration aside, I might be not too far from making it. This is a
very simple, one method web service that returns a custom object. My latest
problem is that when I call the web service. The following exception is thrown
by Jboss in the server.
java.io.IOException: No serializer found for class
com.acme.betty.server.invoice.InvoiceWS in registry
org.apache.axis.encoding.TypeMappingImpl@ 100124f
at
org.apache.axis.encoding.SerializationContextImpl.serializeActual(SerializationContextImpl.java:1476)
at
org.apache.axis.encoding.SerializationContextImpl.serialize(SerializationContextImpl.java:888)
at
org.apache.axis.encoding.SerializationContextImpl.outputMultiRefs(SerializationContextImpl.java:949)
*************
This is the endpoint interface:
package com.acme.betty.server.invoice;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface InvoiceService extends Remote {
public InvoiceWS get(Integer invoiceId)
throws RemoteException;
}
*************
The webservice.xml:
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">
<webservice-description>
<webservice-description-name>invoice</webservice-description-name>
<wsdl-file>META-INF/wsdl/invoice.wsdl</wsdl-file>
<jaxrpc-mapping-file>META-INF/ws-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>invoice</port-component-name>
<wsdl-port>InvoiceServicePort</wsdl-port>
<service-endpoint-interface>
com.acme.betty.server.invoice.InvoiceService
</service-endpoint-interface>
<service-impl-bean>
<ejb-link>InvoiceSession</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
**************************
The jaxrpc-mapping-file
<java-wsdl-mapping xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd"
version="1.1">
<package-mapping>
<package-type>com.acme.betty.server</package-type>
http://www.acme.com
</package-mapping>
</java-wsdl-mapping>
***************************
And the ws4ee-deployment.xml
<deployment
xmlns='http://xml.apache.org/axis/wsdd/'
xmlns:java='http://xml.apache.org/axis/wsdd/providers/java'
xmlns:soap='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:xsi='http://www.w3.org/2000/10/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<typeMapping
qname='ns1:InvoiceWS' xmlns:ns1='http://www.acme.com'
type='java:com.acme.betty.server.invoice.InvoiceWS'
serializer='org.apache.axis.encoding.ser.BeanSerializerFactory'
deserializer='org.apache.axis.encoding.ser.BeanDeserializerFactory'
encodingStyle=''
/>
***************************
Are there any examples or tutorials out there with custom objects being
returned by a web services in JbossWS? The example in the getting started
document doesn't even talk about the file ws2ee-deployment.xml.
Thank you very much for any hint you can give me.
Take care,
gr
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860458#3860458
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860458
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development