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 [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> .
        
------------------------------------------------------------------------
-----------------------------
        

Reply via email to