You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rahul Shinde (JIRA)" <ji...@apache.org> on 2007/05/24 20:03:17 UTC

[jira] Created: (AXIS2-2708) Auto generated code from wsdl for Test Program not correct for Async operation

Auto generated code from wsdl for Test Program not correct for Async operation 
-------------------------------------------------------------------------------

                 Key: AXIS2-2708
                 URL: https://issues.apache.org/jira/browse/AXIS2-2708
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 1.2
         Environment: Windows XP, Using Axis2 1.2
            Reporter: Rahul Shinde
            Priority: Minor


Generated the Client Endpoint for async operation from the wsdl along with the Test Program.
wsdl2java -p asyncclient -uri http://testsrv:8080/Service.asmx?wsdl -t -s

When i run the Test program, the request is sent and the response also comes back
but it does not invoke the appropriate method in the Callback class of the test program

If I trace the response in the onComplete(..) method, i can see the response there,
but when it invokes the responseXXX() method on the callback Instance, it doesnt
call the method defined within the Callback class but rather the method in the abstract CallbackHandler class
which has a empty implementation.

The reason for this is the receiveXX() method in the Callback class in the Test Program
takes a different argument than the one defined in the abstract CallbackHandler class.

The Code snippet is as follows
In ServiceServiceSoapTest class

        private class tempCallbackN1000C  extends asyncclient.ServiceServiceSoapCallbackHandler
        {
            public tempCallbackN1000C(){ super(null);}

            public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
            {
.....


public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
should have been
public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result)

This is the method in the ServiceServiceSoapCallbackHandler class
public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result )
 {   }

Hope this helps.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2708) Auto generated code from wsdl for Test Program not correct for Async operation

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas updated AXIS2-2708:
------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> Auto generated code from wsdl for Test Program not correct for Async operation 
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2708
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2708
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.2
>         Environment: Windows XP, Using Axis2 1.2
>            Reporter: Rahul Shinde
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
>         Attachments: test.wsdl
>
>
> Generated the Client Endpoint for async operation from the wsdl along with the Test Program.
> wsdl2java -p asyncclient -uri http://testsrv:8080/Service.asmx?wsdl -t -s
> When i run the Test program, the request is sent and the response also comes back
> but it does not invoke the appropriate method in the Callback class of the test program
> If I trace the response in the onComplete(..) method, i can see the response there,
> but when it invokes the responseXXX() method on the callback Instance, it doesnt
> call the method defined within the Callback class but rather the method in the abstract CallbackHandler class
> which has a empty implementation.
> The reason for this is the receiveXX() method in the Callback class in the Test Program
> takes a different argument than the one defined in the abstract CallbackHandler class.
> The Code snippet is as follows
> In ServiceServiceSoapTest class
>         private class tempCallbackN1000C  extends asyncclient.ServiceServiceSoapCallbackHandler
>         {
>             public tempCallbackN1000C(){ super(null);}
>             public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
>             {
> .....
> public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
> should have been
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result)
> This is the method in the ServiceServiceSoapCallbackHandler class
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result )
>  {   }
> Hope this helps.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2708) Auto generated code from wsdl for Test Program not correct for Async operation

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12498971 ] 

Amila Chinthaka Suriarachchi commented on AXIS2-2708:
-----------------------------------------------------

Can you attach your wsdl? in Callback handler it should have the method signature your are propossing


> Auto generated code from wsdl for Test Program not correct for Async operation 
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2708
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2708
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.2
>         Environment: Windows XP, Using Axis2 1.2
>            Reporter: Rahul Shinde
>            Priority: Minor
>
> Generated the Client Endpoint for async operation from the wsdl along with the Test Program.
> wsdl2java -p asyncclient -uri http://testsrv:8080/Service.asmx?wsdl -t -s
> When i run the Test program, the request is sent and the response also comes back
> but it does not invoke the appropriate method in the Callback class of the test program
> If I trace the response in the onComplete(..) method, i can see the response there,
> but when it invokes the responseXXX() method on the callback Instance, it doesnt
> call the method defined within the Callback class but rather the method in the abstract CallbackHandler class
> which has a empty implementation.
> The reason for this is the receiveXX() method in the Callback class in the Test Program
> takes a different argument than the one defined in the abstract CallbackHandler class.
> The Code snippet is as follows
> In ServiceServiceSoapTest class
>         private class tempCallbackN1000C  extends asyncclient.ServiceServiceSoapCallbackHandler
>         {
>             public tempCallbackN1000C(){ super(null);}
>             public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
>             {
> .....
> public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
> should have been
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result)
> This is the method in the ServiceServiceSoapCallbackHandler class
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result )
>  {   }
> Hope this helps.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Updated: (AXIS2-2708) Auto generated code from wsdl for Test Program not correct for Async operation

Posted by "Rahul Shinde (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Shinde updated AXIS2-2708:
--------------------------------

    Attachment: test.wsdl

the method signature is not correct hence it ends up
calling the wrong method.
Its calls the method in the CallbackHandler abstract class(default implmentation)
and not the one which also gets generated in the Test Program.

> Auto generated code from wsdl for Test Program not correct for Async operation 
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2708
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2708
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.2
>         Environment: Windows XP, Using Axis2 1.2
>            Reporter: Rahul Shinde
>            Priority: Minor
>         Attachments: test.wsdl
>
>
> Generated the Client Endpoint for async operation from the wsdl along with the Test Program.
> wsdl2java -p asyncclient -uri http://testsrv:8080/Service.asmx?wsdl -t -s
> When i run the Test program, the request is sent and the response also comes back
> but it does not invoke the appropriate method in the Callback class of the test program
> If I trace the response in the onComplete(..) method, i can see the response there,
> but when it invokes the responseXXX() method on the callback Instance, it doesnt
> call the method defined within the Callback class but rather the method in the abstract CallbackHandler class
> which has a empty implementation.
> The reason for this is the receiveXX() method in the Callback class in the Test Program
> takes a different argument than the one defined in the abstract CallbackHandler class.
> The Code snippet is as follows
> In ServiceServiceSoapTest class
>         private class tempCallbackN1000C  extends asyncclient.ServiceServiceSoapCallbackHandler
>         {
>             public tempCallbackN1000C(){ super(null);}
>             public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
>             {
> .....
> public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
> should have been
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result)
> This is the method in the ServiceServiceSoapCallbackHandler class
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result )
>  {   }
> Hope this helps.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Commented: (AXIS2-2708) Auto generated code from wsdl for Test Program not correct for Async operation

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/AXIS2-2708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12507421 ] 

Davanum Srinivas commented on AXIS2-2708:
-----------------------------------------

Amila, You fixed this already right?

thanks,
dims

> Auto generated code from wsdl for Test Program not correct for Async operation 
> -------------------------------------------------------------------------------
>
>                 Key: AXIS2-2708
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2708
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.2
>         Environment: Windows XP, Using Axis2 1.2
>            Reporter: Rahul Shinde
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Minor
>         Attachments: test.wsdl
>
>
> Generated the Client Endpoint for async operation from the wsdl along with the Test Program.
> wsdl2java -p asyncclient -uri http://testsrv:8080/Service.asmx?wsdl -t -s
> When i run the Test program, the request is sent and the response also comes back
> but it does not invoke the appropriate method in the Callback class of the test program
> If I trace the response in the onComplete(..) method, i can see the response there,
> but when it invokes the responseXXX() method on the callback Instance, it doesnt
> call the method defined within the Callback class but rather the method in the abstract CallbackHandler class
> which has a empty implementation.
> The reason for this is the receiveXX() method in the Callback class in the Test Program
> takes a different argument than the one defined in the abstract CallbackHandler class.
> The Code snippet is as follows
> In ServiceServiceSoapTest class
>         private class tempCallbackN1000C  extends asyncclient.ServiceServiceSoapCallbackHandler
>         {
>             public tempCallbackN1000C(){ super(null);}
>             public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
>             {
> .....
> public void receiveResultHelloWorld(org.apache.axis2.client.async.AsyncResult result)
> should have been
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result)
> This is the method in the ServiceServiceSoapCallbackHandler class
> public void receiveResultHelloWorld(asyncclient.ServiceServiceSoapStub.HelloWorldResponse result )
>  {   }
> Hope this helps.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org