Hi Kiran, Is your service RPC-Encoded? Can you send me the message definition for the response and web service interface declaration.
Looks like your service returns the bean, which has two string elements? So when you invoke the service. Get the return object, cast it to proper type and you should be able to access those string elements. Thanks, Shrikant Wagh QA Lead, HPP/Eprofile, HP For those who are interested in Web Services testing: ----------------------------------------------------- I found that WebServiceTester from Optimyz software is a very good tool for testing any types of web services, and I'm great fan of this tool. It supports all types of web services, and all simple and complex types and it very usable than any other tool in the market I ever used/evaluated. It automatically generates the SOAP requests and invokes the intended web services. It can perform functional, regression and load testing of web services. Result analysis and status reporting is just wonderful. I'll highly recommend this tool for testing web services, saves lots of time and efforts in testing web services. For more information visit http://www.optimyz.com. DISCLAIMER ================================================================ THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================= -----Original Message----- From: Pathuru, Kiran [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 7:33 AM To: '[EMAIL PROTECTED]' Subject: returning more than one string Hello everybody, I am having some problems in returning more than one string to my SOAP request. The SOAP response should be something like the following: <serviceResponse xsi:type="ns2:Element" xmlns:ns2= "http://xml.apache.org/xml-soap"> <return> <returnCode xsi:type="xsd:string"> <returnMessage xsi:type="xsd:string"> </return> </serviceInitiatedResponse> I am using Axis1.1 and Tomcat 4.1.24. I don't know how to return to strings. Is it possible that my java method will return an array of Strings and then converting it as show above before sending the response back. Any help will be appreciated. Regards, kiran pathuru