Archive

Archives pour 06/2009

Proxify Web Services in PEtALS with Maven

02/06/2009

This is quite the same thing than the previous post where I introduced how to expose JAXWS service in PEtALS ESB with Maven. This time, let’s proxify a Web service in PEtALS with Maven.

Here is the Maven descriptor snippet :

<build>
	<plugins>
		<plugin>
			<groupId>org.ow2.petals</groupId>
			<artifactId>maven-petals-wsproxy</artifactId>
			<version>1.0-SNAPSHOT</version>
			<executions>
				<execution>
					<id>generate-jbi</id>
					<phase>package</phase>
					<configuration>
						<wsdl>

http://localhost:8080/Service?wsdl

						</wsdl>
					</configuration>
					<goals>
						<goal>wsproxy</goal>
					</goals>
				</execution>
			</executions>
		</plugin>
	</plugins>
</build>

This will generate a JBI Service Assembly that you can then deploy intoo PEtALS to proxify the service defined in http://localhost:8080/Service?wsdl

You can give it a try, the snapshot version is available on the OW2 Maven repository

PEtALS , ,