aspose file tools*
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
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Reply locked New topic
Author

WSDL int.java ERROR

Paul Truckle
Greenhorn

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.

Lin
Paul Truckle
Greenhorn

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
Greenhorn

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
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Paul,

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


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL int.java ERROR