[ http://wso2.org/jira/browse/WSAS-598?page=all ]

Charitha Kankanamge closed WSAS-598.
------------------------------------

    Resolution: Fixed

This issue has been fixed in Axis2 trunk. Verified in WSAS-2.2-qabuild3 and 
closed the bug.

> MS interop: Stub generation fails with an XmlSchemaException if a service 
> with complex data types (doc/lit/wrapped) is used
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WSAS-598
>                 URL: http://wso2.org/jira/browse/WSAS-598
>             Project: WSO2 WSAS
>          Issue Type: Bug
>    Affects Versions: 2.1
>         Environment: winxp, jdk15
>            Reporter: Charitha Kankanamge
>         Assigned To: Charitha Kankanamge
>             Fix For: 2.2
>
>
> Following exception thrown while generating stub using a service which 
> includes a doclit-wrapped wsdl with complex data types.
> ERROR [2007-10-31 17:14:50,656]  
> org.apache.ws.commons.schema.XmlSchemaException: An imported schema
>  was announced to have the namespace 
> http://schemas.microsoft.com/2003/10/Serialization/, but has th
> e namespace http://schemas.microsoft.com/2003/10/Serialization/Arrays
> java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 
> An imported schema was
> announced to have the namespace 
> http://schemas.microsoft.com/2003/10/Serialization/, but has the namespace 
> http://schemas.microsoft.com/2003/10/Serialization/Arrays
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1886)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1627)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:175)
>         at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
>         at 
> org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:140)
>         at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:2186)
>         at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:306)
>         at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processTypes(WSDL11ToAxisServiceBuilder.java:297)
>         at 
> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:265)
>         at 
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:136)
>         at 
> org.wso2.codegen.service.java.JavaClientGeneratorService.generate(JavaClientGeneratorService.java:113)
>         at 
> org.wso2.codegen.service.java.JavaClientGeneratorServiceMessageReceiverInOut.invokeBusinessLogic(JavaClientGeneratorServiceMessageReceiverInOut.java:48)
>         at 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42)
>         at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at 
> org.wso2.adminui.AdminUIServletFilter.doFilter(AdminUIServletFilter.java:142)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>         at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
>         at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>         at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.ja
> va:80)
>         at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.ws.commons.schema.XmlSchemaException: An imported 
> schema was announced to have
>  the namespace http://schemas.microsoft.com/2003/10/Serialization/, but has 
> the namespace http://sch
> emas.microsoft.com/2003/10/Serialization/Arrays
>         at 
> org.apache.ws.commons.schema.SchemaBuilder$1.validate(SchemaBuilder.java:1612)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:310)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:95)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:82)
>         at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359)
>         at 
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304)
>         at 
> org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884)
>         ... 36 more
> Steps to reproduce:
> ===============
> 1. Generate skeleton using following URL (use WSDL2Code page in WSAS 
> management console)
> http://131.107.72.15/SoapWsdl_ComplexDataTypes_XmlFormatter_Service_Indigo/ComplexDataTypesDocLitW.svc?wsdl
> code gen options = -ss, -sd, -ssi, -u, -uw
> 2. Save the generated zip file and issue mvn eclipse:eclipse command
> 3. Implement the business logic of the service skeleton, compile and save the 
> service
> 4. Deploy the service archive in WSAS
> 5. Go to the stub generation page in WSAS management console
> 6. Click on 'Generate' button with default options
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev

Reply via email to