Title: Wsdd Operation question

All,

        I have a question regarding the <operation> tag in the wsdd, and well, probably an Axis limitation.

        Is it possible to have two WSDL operations, say,   getBooks() and getAuthors() map to the same Java method, say execute() ? In other words, when i receive SOAP requests for getBooks  or getAuthors, i want the same execute() method on my impl class called. Is this possible in Axis (1.2) ?  I have done this in weblogic.

        As far as i know, this implies that there will be two operation tags in the wsdd that look like this:

  <operation name="execute" qname="ns1:getBooks" returnQName="xsd:string" returnType="xsd:string" xmlns:ns1="namespace here" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>

  <operation name="execute" qname="ns1:getAuthors" returnQName="xsd:string" returnType="xsd:string" xmlns:ns1="namespace here" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>

        and this isnt valid.  Is there ANY way to do what i want to do ?

        I have been able to get ONE such operation to work, but when i put both in the WSDD, i get this error from Axis :

 faultString: org.apache.axis.InternalException: java.lang.Exception: The OperationDesc for invoke1 was not synchronized to a method of service.ServiceImpl

       
        This is really urgent, so any help at all is appreciated.
                Thanks in advance,
                        Leena.

Reply via email to