You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by sanjay <da...@india.hp.com> on 2004/07/09 19:37:12 UTC

Service.createCall() - Is this a bug ?

Hi 
 
Service.createCall is overloaded with following methods - 
 
1. Service.createCall(QName portName)
2. Service.createCall(QName portName, QName operationName)
3. Service.createCall()
 
If I call (1) and then - call.setOperationName() it works fine. 
If I call (2) and it doesn't work, even if I explicitly set
operationName again
Calling (3) and setting everything explicitly works fine.
 
 
I looked in code - Service.java
 
1.	public javax.xml.rpc.Call createCall(QName portName,
1.       QName operationName)
2.	throws ServiceException {
 
3.	Call call = (org.apache.axis.client.Call) createCall();
4.	call.setOperation(portName, operationName.getLocalPart());
5.	return (call);
6.	}
 
Should line 3 be - createCall(portName) instead of createCall() ?
Because createCall(QName) is doing all the initialization.
 
API  Documentation says methods 1,2 prefill as much data from WSDL as
possible.
Or am I missing something ?
 
Regards
Sanjay

Re: Service.createCall() - Is this a bug ?

Posted by Davanum Srinivas <da...@gmail.com>.
here are some guidelines -
http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/SubmitPatches

thx,
-- dims

On Sat, 10 Jul 2004 02:28:11 +0530, sanjay <da...@india.hp.com> wrote:
> Service.java
> Changing the call
> 
> From    Service.createCall()
> to      Service.createCall(QName portType)
> in      Service.createCall(QName portType, QName operationName)
> 
> should work, first call doesn't initialize anything from WSDL, third is
> supposed to do all initialization, second is where initialization is
> actually implemented.
> I haven't tried it though, will build new axis with changes and update
> if it works (if the issue is open by then).
> 
> Regards
> Sanjay
> 
> 
> 
> 
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Saturday, July 10, 2004 1:49 AM
> To: axis-user@ws.apache.org
> Subject: Re: Service.createCall() - Is this a bug ?
> 
> do u have a patch in mind as well?
> 
> -- dism
> 
> On Sat, 10 Jul 2004 01:23:30 +0530, sanjay <da...@india.hp.com> wrote:
> > Thanks,
> > I filed a bug for this [AXIS-1445]
> >
> > Regards
> > Sanjay
> >
> >
> >
> > -----Original Message-----
> > From: Davanum Srinivas [mailto:davanum@gmail.com]
> > Sent: Saturday, July 10, 2004 12:51 AM
> > To: axis-user@ws.apache.org
> > Subject: Re: Service.createCall() - Is this a bug ?
> >
> > looks like a bug....please submit a bug report with a small test case
> > if possible.,
> >
> > -- dims
> >
> > ----- Original Message -----
> > From: sanjay <da...@india.hp.com>
> > Date: Fri, 9 Jul 2004 23:07:12 +0530
> > Subject: Service.createCall() - Is this a bug ?
> > To: axis-user@ws.apache.org
> >
> > Hi
> >
> > Service.createCall is
> > overloaded with following methods -
> >
> > 1. Service.createCall(QName portName)
> >
> > 2. Service.createCall(QName portName,
> > QName operationName)
> >
> > 3. Service.createCall()
> >
> > If I call (1) and then - call.setOperationName() it
> > works fine.
> >
> > If I call (2) and it doesn't work, even if I
> > explicitly set operationName again
> >
> > Calling (3) and setting everything explicitly works fine.
> >
> > I looked in code - Service.java
> >
> > public javax.xml.rpc.Call createCall(QName portName,
> >
> > 1.       QName operationName)
> >
> > throws ServiceException {
> >
> > Call call = (org.apache.axis.client.Call)
> >      createCall();
> >
> > call.setOperation(portName, operationName.getLocalPart());
> >
> > return
> >      (call);
> >
> > }
> >
> > Should line 3 be - createCall(portName) instead of createCall()
> > ?
> >
> > Because createCall(QName) is doing all the
> > initialization.
> >
> > API  Documentation says methods
> > 1,2 prefill as much data from WSDL as possible.
> >
> > Or am I missing something ?
> >
> > Regards
> >
> > Sanjay
> >
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >
> >
> 
> --
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

RE: Service.createCall() - Is this a bug ?

Posted by sanjay <da...@india.hp.com>.
Service.java
Changing the call 

From	Service.createCall() 
to	Service.createCall(QName portType) 
in	Service.createCall(QName portType, QName operationName)

should work, first call doesn't initialize anything from WSDL, third is
supposed to do all initialization, second is where initialization is
actually implemented. 
I haven't tried it though, will build new axis with changes and update
if it works (if the issue is open by then). 

Regards
Sanjay



-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: Saturday, July 10, 2004 1:49 AM
To: axis-user@ws.apache.org
Subject: Re: Service.createCall() - Is this a bug ?

do u have a patch in mind as well?

-- dism

On Sat, 10 Jul 2004 01:23:30 +0530, sanjay <da...@india.hp.com> wrote:
> Thanks,
> I filed a bug for this [AXIS-1445]
> 
> Regards
> Sanjay
> 
> 
> 
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Saturday, July 10, 2004 12:51 AM
> To: axis-user@ws.apache.org
> Subject: Re: Service.createCall() - Is this a bug ?
> 
> looks like a bug....please submit a bug report with a small test case
> if possible.,
> 
> -- dims
> 
> ----- Original Message -----
> From: sanjay <da...@india.hp.com>
> Date: Fri, 9 Jul 2004 23:07:12 +0530
> Subject: Service.createCall() - Is this a bug ?
> To: axis-user@ws.apache.org
> 
> Hi
> 
> Service.createCall is
> overloaded with following methods -
> 
> 1. Service.createCall(QName portName)
> 
> 2. Service.createCall(QName portName,
> QName operationName)
> 
> 3. Service.createCall()
> 
> If I call (1) and then - call.setOperationName() it
> works fine.
> 
> If I call (2) and it doesn't work, even if I
> explicitly set operationName again
> 
> Calling (3) and setting everything explicitly works fine.
> 
> I looked in code - Service.java
> 
> public javax.xml.rpc.Call createCall(QName portName,
> 
> 1.       QName operationName)
> 
> throws ServiceException {
> 
> Call call = (org.apache.axis.client.Call)
>      createCall();
> 
> call.setOperation(portName, operationName.getLocalPart());
> 
> return
>      (call);
> 
> }
> 
> Should line 3 be - createCall(portName) instead of createCall()
> ?
> 
> Because createCall(QName) is doing all the
> initialization.
> 
> API  Documentation says methods
> 1,2 prefill as much data from WSDL as possible.
> 
> Or am I missing something ?
> 
> Regards
> 
> Sanjay
> 
> --
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


Re: Service.createCall() - Is this a bug ?

Posted by Davanum Srinivas <da...@gmail.com>.
do u have a patch in mind as well?

-- dism

On Sat, 10 Jul 2004 01:23:30 +0530, sanjay <da...@india.hp.com> wrote:
> Thanks,
> I filed a bug for this [AXIS-1445]
> 
> Regards
> Sanjay
> 
> 
> 
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Saturday, July 10, 2004 12:51 AM
> To: axis-user@ws.apache.org
> Subject: Re: Service.createCall() - Is this a bug ?
> 
> looks like a bug....please submit a bug report with a small test case
> if possible.,
> 
> -- dims
> 
> ----- Original Message -----
> From: sanjay <da...@india.hp.com>
> Date: Fri, 9 Jul 2004 23:07:12 +0530
> Subject: Service.createCall() - Is this a bug ?
> To: axis-user@ws.apache.org
> 
> Hi
> 
> Service.createCall is
> overloaded with following methods -
> 
> 1. Service.createCall(QName portName)
> 
> 2. Service.createCall(QName portName,
> QName operationName)
> 
> 3. Service.createCall()
> 
> If I call (1) and then - call.setOperationName() it
> works fine.
> 
> If I call (2) and it doesn't work, even if I
> explicitly set operationName again
> 
> Calling (3) and setting everything explicitly works fine.
> 
> I looked in code - Service.java
> 
> public javax.xml.rpc.Call createCall(QName portName,
> 
> 1.       QName operationName)
> 
> throws ServiceException {
> 
> Call call = (org.apache.axis.client.Call)
>      createCall();
> 
> call.setOperation(portName, operationName.getLocalPart());
> 
> return
>      (call);
> 
> }
> 
> Should line 3 be - createCall(portName) instead of createCall()
> ?
> 
> Because createCall(QName) is doing all the
> initialization.
> 
> API  Documentation says methods
> 1,2 prefill as much data from WSDL as possible.
> 
> Or am I missing something ?
> 
> Regards
> 
> Sanjay
> 
> --
> Davanum Srinivas - http://webservices.apache.org/~dims/
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

RE: Service.createCall() - Is this a bug ?

Posted by sanjay <da...@india.hp.com>.
Thanks,
I filed a bug for this [AXIS-1445]

Regards
Sanjay

-----Original Message-----
From: Davanum Srinivas [mailto:davanum@gmail.com] 
Sent: Saturday, July 10, 2004 12:51 AM
To: axis-user@ws.apache.org
Subject: Re: Service.createCall() - Is this a bug ?

looks like a bug....please submit a bug report with a small test case
if possible.,

-- dims


----- Original Message -----
From: sanjay <da...@india.hp.com>
Date: Fri, 9 Jul 2004 23:07:12 +0530
Subject: Service.createCall() - Is this a bug ?
To: axis-user@ws.apache.org























Hi 



 



Service.createCall is
overloaded with following methods - 



 



1. Service.createCall(QName portName)



2. Service.createCall(QName portName,
QName operationName)



3. Service.createCall()



 



If I call (1) and then - call.setOperationName() it
works fine. 



If I call (2) and it doesn't work, even if I
explicitly set operationName again



Calling (3) and setting everything explicitly works fine.



 



 



I looked in code - Service.java



 



 
public javax.xml.rpc.Call createCall(QName portName,




1.       QName operationName)



 
throws ServiceException {




 



 
Call call = (org.apache.axis.client.Call)
     createCall();
 
call.setOperation(portName, operationName.getLocalPart());
 
return
     (call);
 
}




 



Should line 3 be - createCall(portName) instead of createCall()
?



Because createCall(QName) is doing all the
initialization.



 



API  Documentation says methods
1,2 prefill as much data from WSDL as possible.



Or am I missing something ?



 



Regards



Sanjay










-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


Re: Service.createCall() - Is this a bug ?

Posted by Davanum Srinivas <da...@gmail.com>.
looks like a bug....please submit a bug report with a small test case
if possible.,

-- dims


----- Original Message -----
From: sanjay <da...@india.hp.com>
Date: Fri, 9 Jul 2004 23:07:12 +0530
Subject: Service.createCall() - Is this a bug ?
To: axis-user@ws.apache.org























Hi 



 



Service.createCall is
overloaded with following methods - 



 



1. Service.createCall(QName portName)



2. Service.createCall(QName portName,
QName operationName)



3. Service.createCall()



 



If I call (1) and then - call.setOperationName() it
works fine. 



If I call (2) and it doesn't work, even if I
explicitly set operationName again



Calling (3) and setting everything explicitly works fine.



 



 



I looked in code – Service.java



 



 
public javax.xml.rpc.Call createCall(QName portName,




1.       QName operationName)



 
throws ServiceException {




 



 
Call call = (org.apache.axis.client.Call)
     createCall();
 
call.setOperation(portName, operationName.getLocalPart());
 
return
     (call);
 
}




 



Should line 3 be – createCall(portName) instead of createCall()
?



Because createCall(QName) is doing all the
initialization.



 



API  Documentation says methods
1,2 prefill as much data from WSDL as possible.



Or am I missing something ?



 



Regards



Sanjay










-- 
Davanum Srinivas - http://webservices.apache.org/~dims/