Ahhhhh ... no, the spaces are not in my code, only in my mail there is a
space...
I modified my service with other method trying to understand what is the
problem, but some work and some not....
package stampa.wservice;
import stampa.data.Ordinabile;
public class PrintOnVideo{
Ordinabile m;
public String print(Ordinabile o){
m=o;
//String r=new String(m.getClass().getName());
String r=new String("Questa [ la mia stramaledetta classe ...");
return (r);
}
public void setO(Ordinabile o){
m=o;}
public Ordinabile getO(){
return m;
}
public String stampami(){
return("Speriamo Speriamo Speriamo...");}
}
setO don't have exceptions, getO returns me a null object, stampami works
and print gives me this exception ...
Exception in thread "main" org.apache.axis2.AxisFault: Exception occurred
while trying to invoke service method print
at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:271)
at org.apache.axis2.description.OutInAxisOperationClient.execute(
OutInAxisOperation.java:202)
at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:579)
at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:508)
at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(
RPCServiceClient.java:95)
at stampa.client.PrintClient.main(PrintClient.java:73)
What can I do?
Please, can you help me?
Kay*
2007/2/20, Javier Kohen <[EMAIL PROTECTED]>:
El mar, 20-02-2007 a las 14:20 +0100, Kay* escribió:
> Michele, there are no spaces ....
I'm sorry to intrude, but I do see the extra spaces Michele mentioned.
> 2007/2/19, Michele Mazzucco <[EMAIL PROTECTED]>:
> Kay,
>
>
> please try to remove the white space from the EPR.
>
> On 19 Feb 2007, at 16:06, Kay* wrote:
> > EndpointReference targetEPR = new
> > EndpointReference("
> > http://localhost:8080/axis2/services/PrintOnVideo");
> >
> > options.setTo(targetEPR);
Check the line where EndpointReference is constructed in your code.
You'll see that there is an extra space between " and http:. You can
also see it in some of the previous posts in this thread.
Cheers,
--
Javier Kohen <[EMAIL PROTECTED]>
ICQ: blashyrkh #2361802
Jabber: [EMAIL PROTECTED]