Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
fix WSDL path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilles DAVIN committed Mar 4, 2016
1 parent a5e6c67 commit 84b1923
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 24 deletions.
62 changes: 42 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
<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>com.payline</groupId>
<artifactId>payline-java-sdk</artifactId>
<version>4.44.1</version>
<version>4.44.1.1</version>
<name>Payline JAVA SDK Project</name>
<description>The Payline API provides access to the various functions of the Payline payment solution. It is based on standard web service components, which include the SOAP protocol, the WSDL and XSD definition languages. These standards are supported by a large range of development tools on multiple platforms. This SDK covers all the functions of the Payline payment solution.</description>

<properties>
<java.version>1.6</java.version>
<payline.wsdl.version>4.44.1</payline.wsdl.version>
</properties>

<url>www.payline.com</url>
<developers>
<developer>
Expand All @@ -25,9 +32,7 @@
<name>MONEXT</name>
<url>http://www.monext.fr/</url>
</organization>
<properties>
<java.version>1.6</java.version>
</properties>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
Expand All @@ -38,6 +43,35 @@
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<profiles>
<profile>
<id>sign</id> <!-- this profile can be deactivated to skip artifact signature -->
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

</profiles>

<build>
<finalName>payline-java-sdk-${project.version}</finalName>
<sourceDirectory>src/main/java</sourceDirectory>
Expand Down Expand Up @@ -110,24 +144,11 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.12</version>
<version>2.4.1</version>
<executions>
<execution>
<id>wsimport-from-jdk</id>
Expand All @@ -144,14 +165,15 @@
<wsdlDirectory>${basedir}/src/main/resources/wsdls</wsdlDirectory>
<!-- wsdl file -->
<wsdlFiles>
<wsdlFile>v${project.version}.wsdl</wsdlFile>
<wsdlFile>v${payline.wsdl.version}.wsdl</wsdlFile>
</wsdlFiles>
<!-- Keep generated files -->
<keep>true</keep>
<!-- Package name -->
<packageName>com.payline.ws.model</packageName>
<!-- generated source files destination -->
<sourceDestDir>${basedir}/generated/src</sourceDestDir>
<wsdlLocation>wsdls/v${payline.wsdl.version}.wsdl</wsdlLocation>
</configuration>
</plugin>
</plugins>
Expand Down
8 changes: 4 additions & 4 deletions src/main/java/com/payline/kit/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public final class Utils {
/**
* WSDL
*/
public static final String WSDL = "v4.44.1.wsdl";
public static final String WSDL = "wsdls/v4.44.1.wsdl";

/**
* logger.
Expand Down Expand Up @@ -145,7 +145,7 @@ public static void setHTTPBasicCredentialAndEndPointFromBundle(final Object prox
System.setProperty("http.proxyPassword", PaylineProperties.getString("PROXY_PWD"));
}
} else {
// Suppression des paramètres proxy pour éviter un effet cache
// Suppression des param�tres proxy pour �viter un effet cache
System.setProperty("http.proxySet", "false");
System.clearProperty("http.proxyHost");
System.clearProperty("http.proxyPort");
Expand Down Expand Up @@ -217,7 +217,7 @@ public static void setHTTPBasicCredentialAndEndPointFromParams(final Object prox
System.setProperty("http.proxyPassword", params.getProxyPassword());
}
} else {
// Suppression des paramètres proxy pour éviter un effet cache
// Suppression des param�tres proxy pour �viter un effet cache
System.setProperty("http.proxySet", "false");
System.clearProperty("http.proxyHost");
System.clearProperty("http.proxyPort");
Expand Down Expand Up @@ -447,7 +447,7 @@ public static String gzipDecompress(final byte[] decrypt) {
}
} catch (Exception e) {
e.printStackTrace();
logger.log(LOG_LEVEL, "Erreur lors de la décompression");
logger.log(LOG_LEVEL, "Erreur lors de la d�compression");
}
return outStr;
}
Expand Down

0 comments on commit 84b1923

Please sign in to comment.