Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 25632 invoked from network); 16 Jan 2007 10:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 10:49:51 -0000 Received: (qmail 71520 invoked by uid 500); 16 Jan 2007 10:49:55 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 71502 invoked by uid 500); 16 Jan 2007 10:49:55 -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 71491 invoked by uid 99); 16 Jan 2007 10:49:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 02:49:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 02:49:47 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B7CA07142B6 for ; Tue, 16 Jan 2007 02:49:27 -0800 (PST) Message-ID: <1805764.1168944567750.JavaMail.jira@brutus> Date: Tue, 16 Jan 2007 02:49:27 -0800 (PST) From: "yong yang (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-1973) JAVA2WSDL generates invalid WSDL In-Reply-To: <33481797.1168610908204.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-1973?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465121 ]=20 yong yang commented on AXIS2-1973: ---------------------------------- Hi, Deepal,=20 Actually I used AXIS2-1.1 JAVA2WSDL not AXIS2-1.1.1 JAVA2WSDL as I got an e= rror, "the input line is too long", when I run AXIS2-1.1.1 JAVA2WSDL. > JAVA2WSDL generates invalid WSDL > -------------------------------- > > Key: AXIS2-1973 > URL: https://issues.apache.org/jira/browse/AXIS2-1973 > Project: Apache Axis 2.0 (Axis2) > Issue Type: Bug > Components: wsdl > Affects Versions: 1.1 > Environment: web server: weblogic 9.1 and websphere 6.1 > OS: windows XP Pro SP2 > Reporter: yong yang > Attachments: TestService.java, TestService.wsdl > > > I did use the follow JAVA2WSDL command to generate my own WSDL for my jav= a code(see[1]) and put the WSDL(see [2]) into the META-INF directory. > =20 > java2wsdl -cp . -tn http://dog2.com -stn http://dog2.com/xsd -cn TestS= ervice > When I deploy the aar file to weblogic 9.1, websphere 6.1, both of web se= rver can not parse it. But the error code is different,see [3], [4]. > [1] TestService.java > public class TestService > { > public int add(int op1, int op2) > { > return (op1 + op2); > } > } > [2] TestService.wsdl generated using JAVA2WSDL > > - > > - > > - > > - > > - > > > > > > > - > > - > > - > > > > > > > > - > > > > - > > > > - > > - > > > > > > - > > > - > > > - > > > > - > > > > > > - > > > - > > > - > > > > - > > > > > > - > > - > > > > - > > > > > > [3]WSDL parse error in Weblogic 9.1 > XML Parsing Error: prefix not bound to a namespace > Location: http://192.168.0.2:7001/dist/services/TestService?wsdl > Line Number 19, Column 440: > [4]WSDL error in Websphere 6.1 > Error: java.lang.NoSuchMethodError: javax/wsdl/PortType.getExtensionAttri= butes()Ljava/util/Map; at org.apache.axis2.description.WSDL11ToAxisServiceB= uilder.processPortType(WSDL11ToAxisServiceBuilder.java:886) at org.apache.a= xis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServ= iceBuilder.java:429) at org.apache.axis2.description.WSDL11ToAxisServiceBui= lder.populateService(WSDL11ToAxisServiceBuilder.java:242) at org.apache.axi= s2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.j= ava:215) at org.apache.axis2.deployment.repository.util.ArchiveReader.proce= ssWSDLs(ArchiveReader.java:306) at org.apache.axis2.deployment.DeploymentEn= gine.doDeploy(DeploymentEngine.java:513) at org.apache.axis2.deployment.rep= ository.util.WSInfoList.update(WSInfoList.java:196) at org.apache.axis2.dep= loyment.RepositoryListener.update(RepositoryListener.java:227) at org.apach= e.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java= :174) at org.apache.axis2.deployment.DeploymentEngine.loadServices(Deployme= ntEngine.java:88) at org.apache.axis2.deployment.WarBasedAxisConfigurator.l= oadServices(WarBasedAxisConfigurator.java:252) at org.apache.axis2.context.= ConfigurationContextFactory.createConfigurationContext(ConfigurationContext= Factory.java:72) at org.apache.axis2.transport.http.AxisServlet.initConfigC= ontext(AxisServlet.java:392) at org.apache.axis2.transport.http.AxisServlet= .init(AxisServlet.java:331) at com.ibm.ws.webcontainer.servlet.ServletWrapp= er.init(ServletWrapper.java:185) at com.ibm.ws.wswebcontainer.servlet.Servl= etWrapper.init(ServletWrapper.java:316) at com.ibm.ws.webcontainer.servlet.= ServletWrapper.initialize(ServletWrapper.java:1119) at com.ibm.ws.wswebcont= ainer.servlet.ServletWrapper.initialize(ServletWrapper.java --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org