• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3130
  • Last Modified:

Netbeans webservice client for java 1.4.2

Using Netbeans 5.5.1. Trying to implement a client via java 1.4.2_07.

The project components will not let me add a web service client with a wsdl, netbeans tells me must be java 1.5. I know there must be a way to generate the artifacts but i cannot find it. I'm running in circles with wscompile. Please help, will answer any questions.
0
mattososky
Asked:
mattososky
  • 4
  • 3
1 Solution
 
elissaqpCommented:
right click on your project, tab Sources, source level: 1.4
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
I don't think its is possible using Netbeans 5.5 with JDK 1.4.2 to generate the web service client.

as Netbeans 5.5 uses JAX_WS for client generation.

check this link

http://www.netbeans.org/kb/50/quickstart-webservice.html

see "Setting Up Your Environment" in the above link. and click for netbeans 5.5 related details you can find that JDK 5 or 6 is required.

If you particularly want 1.4.2 web service client I suggest you to use axis with Eclipse WTP it will be a matter of minutes to create client using Eclipse WTP.


www.eclipse.org/webtools/jst/components/ws/1.0/tutorials/WebServiceClient/WebServiceClient.html 

and google for more on WTP if required.
0
 
mattososkyAuthor Commented:
will check on the comments above; but:

Netbeans also has the capability to use JAX-RPC for web service clients. set one up with no problem. Just does not work with java 1.4.2.

Secondly, would it be possible to create the web service artifacts with WTP, then use those class files within my Netbeans without problems?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Sure you can do that But you need additional Jar's like axis jar, and 7 more. If you want to particularly want to generate stubs using netbeans the use netbeans 5.0. you can create stubs using jax-RPC that will completely solve your problem.

Check he below PDF link

http://wiki.netbeans.info/wiki/attach/VisualWeb/VisualPackWebServicesUserDoc-5.pdf

its shows generating JAXRPC client using Tomcat and netbeans 5.5.
0
 
mattososkyAuthor Commented:
I have no problem including the jar files,in fact the are already part of my project, im going to try that aaproach.

the other pdf link doen not seem relevant ( J2EE5)
0
 
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Which server are you using for JEE5?
0
 
mattososkyAuthor Commented:
not using jee5,,

using JBOSS 3 server and java 1.4.2
0
 
mattososkyAuthor Commented:
not having luck,

using the wsdl2java tool, can generate classes, but coming out with an apparently common error:

WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart).  Attachment support is disabled.

this doesnt stop the .java file from being generated,  nor does it stop me from putting them in my and and compiling them. But when the application runs a get an exception stating the same thing.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now