Thanks Jeff for the solution.
The reason for the overloaded methods is that the service can be called
from either a .NET client  or a java web service.
In the case of  .NET client I could'nt pass the SQL connection but where
as I could pass a connection from a java web service. That's why we
opted for the overload method.
This is the first time we are using web service. 
 
So it would be very helpful, if you could elaborate the points B & C..
How can I make the parameter optional in schema and where can I find
info abt type derivation?
 
Thanks in advance
Rgds,
Raghavan.V.
 
-----Original Message-----
From: Walker, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 6:22 PM
To: [email protected]
Subject: [NEWSENDER] - RE: Exposing JAVA Overloaded methods as service -
Message is from an unknown sender
 
You can't use overloaded methods using soap 1.2. They are also not
condoned by the WSI, for interoperability reasons. (A previous poster
claims to have it working, search for an email from Bhojraj, Santosh
[EMAIL PROTECTED] on 08-10-07. He used wsdl 1.1 and doc/lit
web service format).
 
I would suggest you either:
a). change the operation names to be unique
b). keep the 2nd version and make the connection paramater optional in
schema.
c). get smarter about the parameters passed in (ie. you could use type
derivation).
 
(The standard accepted practice is to change the op names to be unique).
-jeff
  _____  

From: Raghavan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 27, 2007 1:38 AM
To: [email protected]
Subject: Exposing JAVA Overloaded methods as service
Importance: High
Hi All,
 
I have created a class which has two over loaded methods.
The method signature is as follows
public String getMessages(String username, String status)
The overloaded method signature is as follows
public String getMessages(String username, String status,Connection con)
where the Connection is a SQL connection
 
 
If I expose this class as a service, Im able to view only one method in
the WSDL. The other overloaded method is not viewable in the WSDL.
 
Can some one help me out with this..
 
Rgds,
Raghavan.V.
------------------------------------------------------------------------
-----------------------------------------------
Disclaimer : Confidentiality Notice
This communication and the information it contains:- 
(a) Is intended for the person(s) or organisation(s) named above and for
no other person(s) or organisation(s).  
(b) May be confidential, legally privileged and protected in law. 
Unauthorised use, copying or disclosure of any of it may be unlawful.If
you have received this communication in error,   please contact us
immediately by email at  <mailto:[EMAIL PROTECTED]>
[EMAIL PROTECTED]
------------------------------------------------------------------------
-----------------------------

Reply via email to