• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where is my generated stub??

 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 548
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Julien Martin
Ranch Hand
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 548
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 548
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 384
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic