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: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to