wood burning stoves 2.0*
The moose likes Web Services and the fly likes create skeleton with WSDL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "create skeleton with WSDL" Watch "create skeleton with WSDL" New topic
Author

create skeleton with WSDL

soraya penina
Greenhorn

Joined: Dec 16, 2008
Posts: 2
when I create skeleton with WSDL using this command -> java -cp .;%AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true math.wsdl
File MathServiceSoapBindingImpl.java was generated..
the code which is in the file is:

now, i want asked all of you, why the method return -3??
I have read code of math.wsdl..but i didn't find clue for it..

can you all explain it for me??
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.


With reference to your question, can you please copy & paste your wsdl so that it can give some clue ?

Thanks!
Balaji


Spritle Software Blogs
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
The WSDL2Java emitter add the arbitrary return types (null for String) -3 in your case which needs to be modified in your SoapBindinImpl class to bind it with your functionality provider. Since, this value has nothing to do with your custom WSDL, please update the return statement with the actual implementinn method from the provider.
soraya penina
Greenhorn

Joined: Dec 16, 2008
Posts: 2
Originally posted by Nitin Pathak:
The WSDL2Java emitter add the arbitrary return types (null for String) -3 in your case which needs to be modified in your SoapBindinImpl class to bind it with your functionality provider. Since, this value has nothing to do with your custom WSDL, please update the return statement with the actual implementinn method from the provider.


sorry....can you explain it with more detail??
what -3 is default value if create skeleton with WSDL??

Thanks,
Soraya
Nitin Pathak
Ranch Hand

Joined: Sep 25, 2006
Posts: 70
Creating a java class with the operations (read methods) returning Integer types have the arbitrary integer value of -3 assigned to the return type; as the WSDL2Java utility class is NOT aware of your functionality provider:

For example - I created a SoapBindingImpl class from WSDL2Java with the following code:


Here, for both the add and subtract methods, the return type has been assigned as -3 which we definitely need to change.

We need to make the following changes to bind WS with the functionality provider:

Where the modifications made are depicted in bold.

It does not matter what arbitrary values your method returns, which in this case we have learnt is -3; what matters is the binding the service with the provider (in this case it is SimpleCalculator).

Hope this helps a bit!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create skeleton with WSDL
 
Similar Threads
totally screwed newbie, need assignment help
No databinding in JAX-WS - wsimport
should we create wsdl files ?
Compilation problem!
Benefit of using Apache Axis 1.1?