Hi at All & thanks in advance,


I'm trying to write a (primary) Webservice which calls other
(secondary) Webservices.
All works fine when the primary WS-Method is directly invoked as a
Method by a Main-Method.
But when primary is invoked as WS, i get following error from the Client-Method:

org.apache.axis2.AxisFault: unknown
        at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
        at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
        at aufg2.MailingWSStub.SendMailByAge(MailingWSStub.java:196)
        at aufg2.Testing.main(Testing.java:36)

Environment:
Apache-Tomcat 6.0
axis2-1.3
Eclipse with axis2 Codegen and Service Archiver Plugins.
Client-Stubs generated with ADB-Bindings. (default)
Everything runs on localhost.
Strategy like Howto: http://wso2.org/library/95

        
Testing.java line 26 is following:

#       public static void main(String[] args) {
#               try {
#
#                   MailingWSStub       stub = new MailingWSStub();
#                   SendMailByAge      request = new 
MailingWSStub.SendMailByAge();
#                   request.setStartAge(1);
#                   request.setEndAge(99);
#               
#                   //Invokes the primary WS which calls other WSs.
#                   SendMailByAgeResponse response = 
stub.SendMailByAge(request);
#               
#                   String [] res = response.get_return();
#                   for (int i=0;i<res.length;i++)
#                       System.out.println("Response : " + res[i]);
#               
#               } catch (Exception e) {
#                       e.printStackTrace();
#                       return;
#               }
#       }
                
In every case, the primary WS should return a String[], even in case
of Exceptions.
But nothing returns.
I don't know how to debug deeper because I'm a beginner with Axis. No
newlines in Tomcat-Logs.

Please help. Thank you.

/Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to