Hi,
I am having the below web service method in server.
/**
* Web service operation
*/
@WebMethod
public String getObj(@WebParam(name = "v") Vector v) {
System.out.println("obj value ::::::::::"+v.size());
return "hello";
}
I am calling the above method from client as like below
// .. initial setup
Vector v = new Vector();
Vector v = new Vector();
v.add("v1");
v.add("v2");
wsServerPort.getObj(v);
But I am getting the below error.
getObj(javax.xml.soap.SOAPElement) in client.SampleWS cannot be applied to (java.util.Vector)
SampleWS - server class name
Server : Jboss 4.2.2
Netbeans : 5.5.1
Could you please help me on this.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107669#4107669
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107669
OK, I see the debug statements in 4.0.3. This means that the app server caught an exception and is now throwing another exception. Unfortunately, the exception stack trace does not get printed out until after this processing is done, so I cannot ask you to look for a stack trace - there is none yet.
I know that there will be a lot of threads, the question is what are they doing? Try this. Take a thread dump, wait a minute, take another. Compare them. Look for threads stuck in application code, or doing anything other what waiting on input queues.
Finally, this is the web services forum, not really the proper place for this question.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107444#4107444
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107444
Hi i am getting fallowing error...i have tryed a lot ...but i am not able to resolve. i am trying to execute from the command line....plz help me to resolve this problem.
ERROR [main] (ToolsHelper.java:383) - Cannot load endpoint:TrivialService
Exception in thread "main" org.jboss.ws.WSException: Endpoint TrivialService cannot be loaded
at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:112)
at org.jboss.ws.tools.WSTools.process(WSTools.java:143)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:69)
at org.jboss.ws.tools.WSTools.generate(WSTools.java:123)
at org.jboss.ws.tools.WSTools.main(WSTools.java:58)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107322#4107322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107322
Hi,
Is it possible to use user defined objects(serialized) in java web service between client & server?
I have created an object(shared between client & server) in server & returned to client. But I am not able to get the actual values in the client.
When I try to get the values from the returned object, it is not showing its attributes. It compiles without error.
Please let me know if you have any idea.
Here is my object :
public class ValueVO implements Serializable{
String a1 = null;
String a2 = null;
public ValueVO(String a1, String a2) {
this.a1 = a1;
this.a2 = a2;
}
public String getA1() {
return this.a1;
}
public String getA2() {
return this.a2;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107263#4107263
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107263