I want to work with the Affilinet API. One WSDL File of it is here:
I use this Maven Plugin to generate the source:
My Pom.xml Plugin configuration:
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<id>schema1-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>webservices.framework.affilinet.logon</generatePackage>
<schemas>
<schema>
<url>https://api.affili.net/V2.0/Logon.svc?wsdl</url>
</schema>
</schemas>
</configuration>
</execution>
<execution>
<id>schema2-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>webservices.framework.affilinet.inbox</generatePackage>
<schemas>
<schema>
<url>https://api.affili.net/V2.0/PublisherInbox.svc?wsdl</url>
</schema>
</schemas>
</configuration>
</execution>
<execution>
<id>schema3-generate</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>webservices.framework.affilinet.inbox</generatePackage>
<schemas>
<schema>
<url>https://api.affili.net/V2.0/AccountService.svc?wsdl</url>
</schema>
</schemas>
</configuration>
</execution>
</executions>
</plugin>
So, when compiling this, i get an error :
com.sun.istack.SAXParseException2; systemId: https://api.affili.net/V2.0/AccountService.svc?wsdl; lineNumber: 1; columnNumber: 2127; Two declarations cause a collision in the objectFactory class.
But how do i fix this with a wsdl file from a url?
schemaLocation does not accept the wsdl file....
Edit: Full log:
[ERROR] Error while generating code.Location [ https://api.affili.net/V2.0/AccountService.svc?wsdl{1,6200}].
com.sun.istack.SAXParseException2; systemId: https://api.affili.net/V2.0/AccountService.svc?wsdl; lineNumber: 1; columnNumber: 6200; This is the other declaration.