wood burning stoves 2.0
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes WSDL int.java ERROR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Reply locked New topic

WSDL int.java ERROR

Paul Truckle

Joined: Feb 22, 2005
Posts: 24
Hi, I'm totally new to Web Services can have a problem with JBuilder trying to generate a file named int.java from the WSDL. The WSDL is supplied by a TDA in my company and I've noticed that it has a few descriptions that include <restriction base="int"/>. When I import the WSDL and select the option to Generate Local Server Implementation (which seems the next logical step) and try to compile from the default generated files, it's looking for String.java (that's OK, even though it doesn't find it) and also int.java...which doesn't make sense to me, so it FAILS to compile properly. I've also noticed that there is a deployment file WSDD that has a type of "java:int" in it.

This may be a basic issue, but I'm new to Web Services this week so any help would be appreciated.

Thanks, Paul.
Lin Feng
Ranch Hand

Joined: Dec 11, 2002
Posts: 142
Could you please provide more information?
The <restriction base="int"/> means it is a restricted interger( You can restrict the value range , set it to an enumeration type etc...). However I do not understand what do you mean it is looking for String.java and int.java. Do you have those types (String ,int ) defined in your wsdl?
Usually it would be pretty straight forward to develop a web service if you
already have a wsdl file and you are using a wizard.

Paul Truckle

Joined: Feb 22, 2005
Posts: 24
Hi Lin. Thanks for the response. Not sure I can expand anymore. I think we may have some sort of configuration issue. Basically we have restriction base="int" within our WSDL. We follow the steps for creating Web Services within JBuilder, i.e. new project, new file (Web Configuration), Drag the WSDL into JBuilder, right click and generate local server which fails, because it's looking for String.java and int.java. There must be something not quite right here, because it shouldn't be looking for int.java, it wouldn't be possible to create a class with a name of "int". Nothing else to add really.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
try to first validate the wsdl given by some third party which may be another unit in ur company then find whether ur jbuilder's web service toolkit supports all types of web service styles like rpc/encoded, document/literal, document/wrapped etc. and try to isolate the problem and go step by step may be first trying to consume the wsdl with other web service toolkits like apache axis etc.

all the above stuff is just a suggestion but may not necessarily work for you. u need to apply divide N conquer rule to find solutions to ur problem :-)

RR Kumaran
SCJP 1.4
Paul Truckle

Joined: Feb 22, 2005
Posts: 24
Hi. Ive been told that this issue maybe down to the a mismatch of Apache Toolkit version and WSDL standard version.
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610

This problem seems to be more related to JBuilder and how it generates WSDL files and not that much to the certification itself.

Moreover, we would be grateful if you do not crosspost the same topic in multiple forums. I'm closing this topic now. You can continue this discussion in the other topic you opened in the web services forum.

Thank you for your comprehension

[Blog] [Blogroll] [My Reviews] My Linked In
Consider Paul's rocket mass heater.
subject: WSDL int.java ERROR