Created
May 10, 2012 13:11
-
-
Save nhojpatrick/2652903 to your computer and use it in GitHub Desktop.
Axis2-j merge import and element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loki:merge-schema-import-plus-element john$ mvn clean install | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building axis2-j-merge-schema-import-plus-element 1 | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ axis2-j-merge-schema-import-plus-element --- | |
[INFO] Deleting /Users/john/projects/tmp/axis2-j/merge-schema-import-plus-element/target | |
[INFO] | |
[INFO] --- axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code (generate-sources-wsdl2code) @ axis2-j-merge-schema-import-plus-element --- | |
Retrieving document at '/Users/john/projects/tmp/axis2-j/merge-schema-import-plus-element/src/main/resources/sample.wsdl'. | |
Retrieving schema at 'request.xsd', relative to 'file:/Users/john/projects/tmp/axis2-j/merge-schema-import-plus-element/src/main/resources/sample.wsdl'. | |
Retrieving schema at 'response.xsd', relative to 'file:/Users/john/projects/tmp/axis2-j/merge-schema-import-plus-element/src/main/resources/sample.wsdl'. | |
Retrieving schema at 'exceptions.xsd', relative to 'file:/Users/john/projects/tmp/axis2-j/merge-schema-import-plus-element/src/main/resources/sample.wsdl'. | |
May 10, 2012 2:16:45 PM org.apache.axis2.xmlbeans.CodeGenerationUtility$Axis2EntityResolver resolveEntity | |
INFO: Resolving schema with publicId [http://request.domain.tld] and systemId [request.xsd] | |
org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name ResponseOutput with namespace http://service.domain.tld | |
at org.apache.axis2.wsdl.databinding.TypeMappingAdapter.getTypeMappingName(TypeMappingAdapter.java:82) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getOutputParamElement(AxisServiceBasedMultiLanguageEmitter.java:3241) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getOutputElement(AxisServiceBasedMultiLanguageEmitter.java:2870) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2362) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2242) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:2199) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeSkeletonInterface(AxisServiceBasedMultiLanguageEmitter.java:2101) | |
at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:1397) | |
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:275) | |
at org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:567) | |
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) | |
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) | |
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) | |
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) | |
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) | |
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) | |
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) | |
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) | |
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) | |
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) | |
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) | |
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) | |
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 5.126s | |
[INFO] Finished at: Thu May 10 14:16:46 BST 2012 | |
[INFO] Final Memory: 6M/81M | |
[INFO] ------------------------------------------------------------------------ | |
[ERROR] Failed to execute goal org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.2:wsdl2code (generate-sources-wsdl2code) on project axis2-j-merge-schema-import-plus-element: org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.databinding.UnmatchedTypeException: No type was mapped to the name ResponseOutput with namespace http://service.domain.tld -> [Help 1] | |
[ERROR] | |
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. | |
[ERROR] Re-run Maven using the -X switch to enable full debug logging. | |
[ERROR] | |
[ERROR] For more information about the errors and possible solutions, please read the following articles: | |
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException | |
loki:merge-schema-import-plus-element john$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://exception.domain.tld" xmlns:tns="http://exception.domain.tld" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:complexType name="CompanyException"> | |
<xsd:sequence> | |
<xsd:element name="requestId" nillable="false"> | |
<xsd:simpleType> | |
<xsd:restriction base="xsd:string"> | |
<xsd:maxLength value="36" /> | |
<xsd:whiteSpace value="collapse" /> | |
</xsd:restriction> | |
</xsd:simpleType> | |
</xsd:element> | |
<xsd:element name="code" nillable="false"> | |
<xsd:simpleType> | |
<xsd:restriction base="xsd:string"> | |
<xsd:minLength value="16" /> | |
<xsd:maxLength value="16" /> | |
</xsd:restriction> | |
</xsd:simpleType> | |
</xsd:element> | |
<xsd:element name="message" nillable="false"> | |
<xsd:simpleType> | |
<xsd:restriction base="xsd:string"> | |
<xsd:maxLength value="250" /> | |
<xsd:whiteSpace value="collapse" /> | |
</xsd:restriction> | |
</xsd:simpleType> | |
</xsd:element> | |
</xsd:sequence> | |
</xsd:complexType> | |
<xsd:element name="CompanyFault" nillable="false" type="tns:CompanyException" /> | |
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>tld.domain</groupId> | |
<artifactId>axis2-j-issue-merge-schema-import-plus-element</artifactId> | |
<packaging>jar</packaging> | |
<version>1</version> | |
<prerequisites> | |
<maven>3</maven> | |
</prerequisites> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-wsdl2code-maven-plugin</artifactId> | |
<version>1.6.2</version> | |
<executions> | |
<execution> | |
<id>generate-sources-wsdl2code</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>wsdl2code</goal> | |
</goals> | |
<configuration> | |
<packageName>tld.domain.service</packageName> | |
<wsdlFile>src/main/resources/sample.wsdl</wsdlFile> | |
<databindingName>xmlbeans</databindingName> | |
<generateAllClasses>true</generateAllClasses> | |
<generateServerSide>true</generateServerSide> | |
<generateServerSideInterface>true</generateServerSideInterface> | |
<generateServicesXml>true</generateServicesXml> | |
<generateTestcase>false</generateTestcase> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.axis2</groupId> | |
<artifactId>axis2-wsdl2code-maven-plugin</artifactId> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xsd:schema xmlns:tns="http://request.domain.tld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://request.domain.tld" elementFormDefault="qualified" attributeFormDefault="qualified"> | |
<xsd:complexType name="RequestInterface" abstract="false" block="#all" final="#all" mixed="false"> | |
<xsd:sequence> | |
<xsd:element name="request-input" type="xsd:string" nillable="false" /> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<xsd:schema xmlns:tns="http://response.domain.tld" xmlns:xsd="http://www.w3.org/2001/XMLSchema" | |
targetNamespace="http://response.domain.tld" elementFormDefault="qualified" attributeFormDefault="qualified"> | |
<xsd:complexType name="ResponseInterface" abstract="false" block="#all" final="#all" mixed="false"> | |
<xsd:sequence> | |
<xsd:element name="response-output" type="xsd:string" nillable="false" /> | |
</xsd:sequence> | |
</xsd:complexType> | |
</xsd:schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<definitions targetNamespace="http://service.domain.tld" xmlns="http://schemas.xmlsoap.org/wsdl/" | |
xmlns:companyFault="http://exception.domain.tld" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.domain.tld"> | |
<types> | |
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.domain.tld" | |
xmlns:tns="http://request.domain.tld" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:import namespace="http://request.domain.tld" schemaLocation="request.xsd" /> | |
<xsd:element name="RequestInput" nillable="false" type="tns:RequestInterface" /> | |
</xsd:schema> | |
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.domain.tld" | |
xmlns:tns="http://response.domain.tld" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:import namespace="http://response.domain.tld" schemaLocation="response.xsd" /> | |
<xsd:element name="ResponseOutput" nillable="false" type="tns:ResponseInterface" /> | |
</xsd:schema> | |
<xsd:schema targetNamespace="http://service.domain.tld" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<xsd:import namespace="http://exception.domain.tld" schemaLocation="exceptions.xsd" /> | |
</xsd:schema> | |
</types> | |
<message name="CompanyFault"> | |
<part element="companyFault:CompanyFault" name="CompanyFault" /> | |
</message> | |
<message name="ServiceResponse"> | |
<part element="tns:ResponseOutput" name="ResponsePart" /> | |
</message> | |
<message name="ServiceRequest"> | |
<part element="tns:RequestInput" name="RequestPart" /> | |
</message> | |
<portType name="ServicePort"> | |
<operation name="TheOperation"> | |
<input message="tns:ServiceRequest" name="ServiceRequest" /> | |
<output message="tns:ServiceResponse" name="ServiceResponse" /> | |
<fault message="tns:CompanyFault" name="CompanyFault" /> | |
</operation> | |
</portType> | |
<binding name="ServiceBinding" type="tns:ServicePort"> | |
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" /> | |
<operation name="TheOperation"> | |
<soap:operation soapAction="" style="document" /> | |
<input name="ServiceRequest"> | |
<soap:body parts="RequestPart" use="literal" /> | |
</input> | |
<output name="ServiceResponse"> | |
<soap:body parts="ResponsePart" use="literal" /> | |
</output> | |
<fault name="CompanyFault"> | |
<soap:fault name="CompanyFault" use="literal" /> | |
</fault> | |
</operation> | |
</binding> | |
<service name="TheService"> | |
<port binding="tns:ServiceBinding" name="ServicePort"> | |
<soap:address location="http://my-server:my-port/ " /> | |
</port> | |
</service> | |
</definitions> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment