Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 57753 invoked from network); 11 Jan 2008 19:26:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Jan 2008 19:26:27 -0000 Received: (qmail 57989 invoked by uid 500); 11 Jan 2008 19:26:10 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 57763 invoked by uid 500); 11 Jan 2008 19:26:09 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 57752 invoked by uid 99); 11 Jan 2008 19:26:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2008 11:26:09 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lmandel@ca.ibm.com designates 32.97.182.146 as permitted sender) Received: from [32.97.182.146] (HELO e6.ny.us.ibm.com) (32.97.182.146) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2008 19:25:42 +0000 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e6.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m0BJRbxv022816 for ; Fri, 11 Jan 2008 14:27:37 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m0BJPl4W051188 for ; Fri, 11 Jan 2008 14:25:47 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m0BJPllq024362 for ; Fri, 11 Jan 2008 14:25:47 -0500 Received: from d25ml04.torolab.ibm.com (d25ml04.torolab.ibm.com [9.26.6.105]) by d01av04.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m0BJPkos024307 for ; Fri, 11 Jan 2008 14:25:46 -0500 In-Reply-To: To: axis-user@ws.apache.org MIME-Version: 1.0 Subject: Re: Fwd: WSDL problem 'Didn't find specified return QName' error X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006 From: Lawrence Mandel Message-ID: Date: Fri, 11 Jan 2008 14:24:27 -0500 X-MIMETrack: Serialize by Router on D25ML04/25/M/IBM(Release 7.0.2HF446 | March 16, 2007) at 01/11/2008 14:25:47, Serialize complete at 01/11/2008 14:25:47 Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked by ClamAV on apache.org Hi Rushikesh, Can you please attach your entire WSDL document, including the definitions element. This type of error is typically a problem with namespace declarations or usage. Here's a shot at the problem without all of the information. In your WSDL snippet you reference the XML schema element impl:getServerStatus but this element is not defined in your XML schema snippets. BTW, you'll generally get more responses if you request them nicely. The following came across (to me at least) as pretty demanding. "Please spend some time reading this fully. I am tired of trying to solve this problem for more than a week now. " Remember, Apache is an Open Source community comprised of many people who donate their time. There are no support contracts here. Lawrence "Rushikesh Thakkar" 01/11/2008 02:50 AM Please respond to axis-user@ws.apache.org To axis-user@ws.apache.org cc Subject Fwd: WSDL problem 'Didn't find specified return QName' error Hi folks, Please spend some time reading this fully. I am tired of trying to solve this problem for more than a week now. I have to write a webservice client using Axis 1.4. The webservice is very old, written using servlets and apache-soap. I do not even have the WSDL for it. So I wrote WSDL by myself, by analyzing request and response soap messages. I am using the types and stubs generated for this service by WSDL2Java tool, in my client application. GetServerStatusResponse response = mappService .getServerStatus (getServerStatusRequest); System. out.println(response.getCode ()); System. out.println(response.getDescription ()); System. out.println(response.getTrackingCode ()); The above code executes normally without any exceptions, but its prints only null values. Can anybody tell me what the problem with my WSDL is? ------------ Following is the Response soap-message that the webservice sends. 0 getServerStatus OK! AABBMMCOEED Server xyz alive at Thu Jan 10 11:33:35 CET 2008%BUILDTAG%Build date & time: %DEPLOYDATE% Here is the WSDL definition I've written for above message: ------------ If I add the following 4 lines in _initOperationsDesc1() method of the WebService Stub, then I get the following error . Error: "Didn't find specified return QName { http://aaa.ccc.com}getServerStatus!" param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName( "urn:sampleURN", "serviceStatus" ), org.apache.axis.description.ParameterDesc. OUT, new javax.xml.namespace.QName ( "http://bbb.dummycomp.com" , "ServiceStatus" ), com.dummycomp.bbb.webservice.ServiceStatus. class , false, false); oper.addParameter(param); param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName( "urn:sampleURN", "status" ), org.apache.axis.description.ParameterDesc. OUT, new javax.xml.namespace.QName ( "http://bbb.dummycomp.com" , "Status" ), java.lang.String.class , false, false); oper.addParameter(param); ------------------ Kindly suggest the solution as soon as possible, as I'm stuck here for more than a week now. Regards, Rushikesh S. Thakkar --------------------------------------------------------------------- To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-user-help@ws.apache.org