You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ryan de Laplante <ry...@ijws.com> on 2009/03/06 20:19:32 UTC
Re: JAX-RPC client generation in Maven2 project
For anyone following this thread now or in the future, here is the
solution I used:
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis-jaxrpc</artifactId>
<version>1.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
<version>0.4</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>wsdl4j</groupId>
<artifactId>wsdl4j</artifactId>
<version>1.6.2</version>
<scope>compile</scope>
</dependency>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
<configuration>
<packageSpace>com.mycompany.service.client</packageSpace>
<sourceDirectory>src/main/resources/META-INF/wsdl</sourceDirectory>
<outputDirectory>target/generated-sources/wsdl2java</outputDirectory>
</configuration>
</plugin>
private MyServiceSEI getMyServicePort() throws ServiceException {
MyServiceLocator locator = new MyServiceLocator();
MyServiceSEI port;
Stub stub;
port = locator.getMyServiceSEIPort();
// OPTIONALLY configure URL and HTTP BASIC authentication
stub = (Stub) port;
stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, "http://hostname/ContextRoot/ServicePort");
stub._setProperty(Stub.USERNAME_PROPERTY, "user");
stub._setProperty(Stub.PASSWORD_PROPERTY, "secret");
return port;
}
There is also a NetBeans ticket:
http://www.netbeans.org/issues/show_bug.cgi?id=159404
Ryan
Ryan de Laplante wrote:
> Hi,
>
> I'd like to add a JAX-RPC client to my JEE5 web project. I tried
> using NetBeans 6.7M2's web service client wizard to see what it adds
> to my POM, but it won't get past the first screen because it wants a
> JAX-RPC plugin. I already have the JAX-RPC plugin installed in
> NetBeans and tested that it works with a regular java web project.
> So, I assume it wants a Maven2 plugin in my POM.
>
> I searched google for a while and there doesn't seem to be examples of
> using JAX-RPC clients in a maven web project. I'm running on
> GlassFish V2 so don't want to use Axis, XFire, etc. I want to use the
> RI without bundling the runtime jars in my .war file.
>
> Can someone please point me to an example of generating JAX-RPC client
> stubs in a maven2 web project, and using them?
>
>
> Thanks,
> Ryan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: JAX-RPC client generation in Maven2 project
Posted by Ryan de Laplante <ry...@ijws.com>.
Ryan de Laplante wrote:
> Wayne Fay wrote:
>> On Fri, Mar 6, 2009 at 11:19 AM, Ryan de Laplante <ry...@ijws.com> wrote:
>>
>>> For anyone following this thread now or in the future, here is the
>>> solution
>>> I used:
>>>
>>
>> Ryan, you're a model citizen... I assume this will go on your blog
>> too, right? ;-)
>>
>> Wayne
>>
> Thank you! That is a good idea, I will blog about it too.
>
> Ryan
>
http://www.ryandelaplante.com/rdelaplante/entry/jax_rpc_client_with_maven2
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: JAX-RPC client generation in Maven2 project
Posted by Ryan de Laplante <ry...@ijws.com>.
Wayne Fay wrote:
> On Fri, Mar 6, 2009 at 11:19 AM, Ryan de Laplante <ry...@ijws.com> wrote:
>
>> For anyone following this thread now or in the future, here is the solution
>> I used:
>>
>
> Ryan, you're a model citizen... I assume this will go on your blog
> too, right? ;-)
>
> Wayne
>
Thank you! That is a good idea, I will blog about it too.
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: JAX-RPC client generation in Maven2 project
Posted by Wayne Fay <wa...@gmail.com>.
On Fri, Mar 6, 2009 at 11:19 AM, Ryan de Laplante <ry...@ijws.com> wrote:
> For anyone following this thread now or in the future, here is the solution
> I used:
Ryan, you're a model citizen... I assume this will go on your blog
too, right? ;-)
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org