[JBossWS] - Wierd problem with result always being empty
by p0six
I've been trying to get by this all day. I have a web server defined to return an Object of type Arrivalbooking. The Arrivalbooking class is generated using xjc from a predefined DTD. Whenever I execute the web service the method executes perfectly and returns a valid Arrivalbooking with data in it. However ,the result is always empty.
Anyone have any ideas?
Here's the basic source for the web service
@WebService
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
@ServiceMode(value=Service.Mode.PAYLOAD)
//(a)SOAPBinding(style=SOAPBinding.Style.RPC)
public class RecordGridJSE implements RecordGrid
{
@WebMethod
@WebResult(name="arrivalsboard", partName="arrivalsboard")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public Arrivalsboard getDefaultRecordGrid()
throws RemoteException
{
return getRecordGrid(null, null, (SimpleDateFormat) null);
}
@WebMethod
@WebResult(name="arrivalsboard", partName="arrivalsboard")
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT, parameterStyle=SOAPBinding.ParameterStyle.WRAPPED)
public Arrivalsboard getRecordGrid(@WebParam(name="start") Date start, @WebParam(name="end") Date end, @WebParam(name="dateFormat") String dateFormat)
throws RemoteException
{
Arrivalbooking arrivalbooking = new Arrivalbooking();
.
.
.
return arrivalbooking;
}
}
The source for Arrivalbooking, Event was also generated with xjc
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"event"
})
@XmlRootElement(name = "arrivalsboard")
public class Arrivalsboard {
protected List event;
/**
* Gets the value of the event property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set method for the event property.
*
*
* For example, to add a new item, do as follows:
*
* getEvent().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Event }
*
*
*/
public List getEvent() {
if (event == null) {
event = new ArrayList();
}
return this.event;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075014#4075014
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075014
17 years, 4 months
[JBossWS] - Re: beginner needs help
by rknechtel
I have used wscompile from command line under Linux but I just can't seem to get it to work under Winblows. So I decided to try and do it via the ant task. But Eclipse/ant complain with the all to persistant "taskdef class com.sun.xml.rpc.tools.ant.Wscompile cannot be found" error. I have a directory called jwsdplibs that I put all the jars from the jaxrpc, jwsdp-shared, saaj directories into. I'm using JWSDP 1.6 and I tried jwsdp 2.0, I'm using jdk1.5.0_11.
Below is my build.xml code.
|
| My ant.properties has this:
| jwsdp.home=/opt/jwsdplibs
| -------
|
| build.xml
| ----------------
|
| <property name="jwsdp.dir" value="${jwsdp.home}" />
| <!-- =================================================================== -->
| <!-- wscompile Task -->
| <!-- =================================================================== -->
| <path id="wscompile.classpath">
| <fileset dir="${jwsdp.dir}">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="${java.home}">
| <include name="**/*.jar" />
| </fileset>
| <fileset dir="${classes.dir}">
| <include name="**/*.class" />
| </fileset>
| </path>
|
| <taskdef name="wscompile" classpath="${wscompile.classpath}" classname="com.sun.xml.rpc.tools.ant.Wscompile" />
| <target name="generate">
| <wscompile
| fork="true"
| verbose="true"
| wsdlFile="claimstatus2.wsdl"
| classpath="${classpath}"
| server="true"
| features="documentliteral"
| sourceBase="${src.dir}"
| mapping=""
| config="${wscompileconfig}">
| </wscompile>
| </target>
|
I can't understand why it can't find the class.
Here are the jars in my jwsdplibs directory:
dom.jar
sax.jar
xalan.jar
xercesImpl.jar
activation.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jaas.jar
jax-qname.jar
jaxp-api.jar
jaxrpc-api.jar
jaxrpc-impl.jar
jaxrpc-spi.jar
jta-spec1_0_1.jar
mail.jar
namespace.jar
relaxngDatatype.jar
saaj-api.jar
saaj-impl.jar
xmlsec.jar
xsdlib.jar
Does anyone have any idea what is going on? Have you had similar issues where it can't find the wscompile ant class?
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074933#4074933
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074933
17 years, 4 months
[JBossWS] - Re: Needed WS4EE jars missing in JBoss4.0.5.GA
by ambika
Hi,
I am trying to run the medrec application in jboss application platform (4.2.0.GA). I have done all the steps mentioned in the http://wiki.jboss.org/wiki/Wiki.jsp?page=WS4EEDowngrade.
But when i try to deploy , its giving following error.
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
... 81 more
Caused by: java.lang.NoClassDefFoundError: org/jboss/webservice/WebServiceClientDeployment
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
=========
This is becuase this class in not at all there in this new version of the jboss and medrec code has reffered to this. And i have seen one more thing, there is no webservice package in this new version of the jboss?
Please can any one help me regarding the same
Regards,
Ambika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074727#4074727
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074727
17 years, 4 months