aspose file tools*
The moose likes Web Services and the fly likes Where is my generated stub?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Where is my generated stub??" Watch "Where is my generated stub??" New topic
Author

Where is my generated stub??

Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello,

I am new to web services and I am using the jwsdp from Sun. I succesfully built and deployed a web service and I would like to test it with a java client. I just do not know where to find my generated stub. I ran the following command:



Can anyone please help?

Thanks in advance,

Julien.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
it would create a directory package u specified in config.xml using packageName attribute and it would generate such package comprising stub classes in the directory specified by -d option of wscompile -gen command


RR Kumaran
SCJP 1.4
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
No. That is the whole point of my post. There is NO stub generated in either directory. Is my command wrong? How do I get my generated stub??
Thanks in advance,
Julien.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
follow these below steps:

1.
assume below is config.xml

<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl location="http://soap.amazon.com/schemas3/AmazonWebServices.wsdl" packageName="com.corejsf.amazon" />
</configuration>

2.
c:\> wscompile �httpproxy:10.236.235.7:3128 �import .\WS\config.xml
c:\> wscompile �httpproxy:10.236.235.7:3128 �gen .\WS\config.xml
This will create a com directory in the current folder

c:\> jar �cvf aws.jar com
copy this aws.jar to your web application�s lib direcory
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello and thanks for your replies,

I followed your instructions and I am now running this:



Here is what I get:



Here is my WSDL:



By the way when I run this:

I get this:

error: error: file not found: G╟⌠httpproxy:10.236.235.7:3128
Usage: wscompile [options] configuration_file

Regards,

Julien.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
I think you didnt read the JWSDP'S wscompile documentation completely. I prefer you to do that.

-httpproxy options are required to be specified if you are usually accessing internet from behind a firewall otherwise u dont need to provide those details. try removing this option ...
Julien Martin
Ranch Hand

Joined: Apr 24, 2004
Posts: 384
Hello Nritya,

I got it to work with the �httpproxy option. I got it to work for the amazon web service as well as for the jwsdp samples.

However it does not work for the wsdl listed below.

I get the following warning and no stub class is generated.




Here is my wsdl


Can you tell me what's wrong with my wsdl please?

Thanks in advance,

Julien.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where is my generated stub??
 
Similar Threads
Method Signature identification in JAX-RPC Client
Setting Timeout with WebSphere generated services
Setting Timeout with WebSphere generated services
setting the endpoint url
Want to Edit cells in a JTable