[ https://issues.apache.org/jira/browse/AXIS2-1973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12492686 ]
[EMAIL PROTECTED] commented on AXIS2-1973: ---------------------------------------------------- Hello Yong Yang! I just experienced the same error with Websphere 6.1 you described in January 2007 (JIRA). Did you find a solution to your problem? I'll highly appreciate your help if you could be so kind and help me out with your solution. Best regards, Matthias -- This message was sent on behalf of [EMAIL PROTECTED] at openSubscriber.com http://www.opensubscriber.com/message/axis-dev@ws.apache.org/5787881.html > JAVA2WSDL generates invalid WSDL > -------------------------------- > > Key: AXIS2-1973 > URL: https://issues.apache.org/jira/browse/AXIS2-1973 > Project: 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 > Assigned To: Deepal Jayasinghe > Attachments: TestService.java, TestService.wsdl > > > I did use the follow JAVA2WSDL command to generate my own WSDL for my java > code(see[1]) and put the WSDL(see [2]) into the META-INF directory. > > java2wsdl -cp . -tn http://dog2.com -stn http://dog2.com/xsd -cn > TestService > When I deploy the aar file to weblogic 9.1, websphere 6.1, both of web server > 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 > <wsdl:definitions targetNamespace="http://dog2.com"> > - > <wsdl:types> > - > <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" > targetNamespace="http://dog2.com/xsd"> > - > <xs:element name="add"> > - > <xs:complexType> > - > <xs:sequence> > <xs:element name="param0" nillable="true" type="xs:int"/> > <xs:element name="param1" nillable="true" type="xs:int"/> > </xs:sequence> > </xs:complexType> > </xs:element> > - > <xs:element name="addResponse"> > - > <xs:complexType> > - > <xs:sequence> > <xs:element name="return" nillable="true" type="xs:int"/> > </xs:sequence> > </xs:complexType> > </xs:element> > </xs:schema> > </wsdl:types> > - > <wsdl:message name="addMessage"> > <wsdl:part name="part1" element="ns:add"/> > </wsdl:message> > - > <wsdl:message name="addResponseMessage"> > <wsdl:part name="part1" element="ns:addResponse"/> > </wsdl:message> > - > <wsdl:portType name="TestServicePortType"> > - > <wsdl:operation name="add"> > <wsdl:input message="axis2:addMessage"/> > <wsdl:output message="axis2:addResponseMessage"/> > </wsdl:operation> > </wsdl:portType> > - > <wsdl:binding name="TestServiceSOAP11Binding" > type="axis2:TestServicePortType"> > <soap:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > - > <wsdl:operation name="add"> > <soap:operation soapAction="urn:add" style="document"/> > - > <wsdl:input> > <soap:body use="literal" namespace="http://dog2.com"/> > </wsdl:input> > - > <wsdl:output> > <soap:body use="literal" namespace="http://dog2.com"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > - > <wsdl:binding name="TestServiceSOAP12Binding" > type="axis2:TestServicePortType"> > <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" > style="document"/> > - > <wsdl:operation name="add"> > <soap12:operation soapAction="urn:add" style="document"/> > - > <wsdl:input> > <soap12:body use="literal" namespace="http://dog2.com"/> > </wsdl:input> > - > <wsdl:output> > <soap12:body use="literal" namespace="http://dog2.com"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > - > <wsdl:service name="TestService"> > - > <wsdl:port name="TestServiceSOAP11port" > binding="axis2:TestServiceSOAP11Binding"> > <soap:address location="http://localhost:8080/axis2/services/TestService"/> > </wsdl:port> > - > <wsdl:port name="TestServiceSOAP12port" > binding="axis2:TestServiceSOAP12Binding"> > <soap12:address location="http://localhost:8080/axis2/services/TestService"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > [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.getExtensionAttributes()Ljava/util/Map; at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortType(WSDL11ToAxisServiceBuilder.java:886) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(WSDL11ToAxisServiceBuilder.java:429) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:242) > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:215) > at > org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:306) > at > org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:513) > at > org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:196) > at > org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:227) > at > org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:174) > at > org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.java:88) > at > org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAxisConfigurator.java:252) > at > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:72) > at > org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:392) > at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:331) at > com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:185) > at > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:316) > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1119) > at > com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]