Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 2795 invoked from network); 17 Mar 2008 17:30:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 17:30:25 -0000 Received: (qmail 19799 invoked by uid 500); 17 Mar 2008 17:30:20 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 19748 invoked by uid 500); 17 Mar 2008 17:30:20 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 19737 invoked by uid 99); 17 Mar 2008 17:30:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 10:30:20 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 17:29:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7D819234C0A4 for ; Mon, 17 Mar 2008 10:28:24 -0700 (PDT) Message-ID: <156821515.1205774904512.JavaMail.jira@brutus> Date: Mon, 17 Mar 2008 10:28:24 -0700 (PDT) From: "Naveen Gauba (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS-2731) WSDL2JAVA not setting the operation name onto the Call object while generating the SOAPBindingStub (that implements org.apache.axis.client.Stub) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org WSDL2JAVA not setting the operation name onto the Call object while generating the SOAPBindingStub (that implements org.apache.axis.client.Stub) ------------------------------------------------------------------------------------------------------------------------------------------------ Key: AXIS-2731 URL: https://issues.apache.org/jira/browse/AXIS-2731 Project: Axis Issue Type: Bug Components: WSDL processing Affects Versions: 1.4 Environment: Windows XP professional running Intel Pentium Reporter: Naveen Gauba I have a method getInfo in my WSDL that does not take any input parameters. The WSDL snippet is pasted below. I generated the Client Stub using the WSDL2JAVA Ant Task. In the SOAPBindingStub (that implements org.apache.axis.client.Stub). When I look at the method definition for the getInfo method I see that the operation name was not set onto the Call object. See code snippet below. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ getInfo() throws java.rmi.RemoteException { if (super.cachedEndpoint == null) { throw new org.apache.axis.NoEndPointException(); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[2]); _call.setUseSOAPAction(true); _call.setSOAPActionURI("urn:getInfo"); _call.setEncodingStyle(null); _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); setRequestHeaders(_call); setAttachments(_call); try { java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ideally there should have been one more line of code like this in the generated code _call.setOperationName(new javax.xml.namespace.QName("http://abc.qualcomm.com/xsd", "getInfo")); When I call this method using my Java client I get this AxisFault, the stack trace is pasted below. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Exception in thread "main" AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: No operation name specified! faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:No operation name specified! at org.apache.axis.client.Call.invoke(Call.java:1809) at com.qualcomm.abc.CatalogQueryWSSOAP11BindingStub.getInfo(CatalogQueryWSSOAP11BindingStub.java:349) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Please help. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org