HI Barney.

First you need to create a GethHtml.aar file. Then deploy it putting
service directory under repository in Axis2_home and run axis2server.bat .
Now you can get wsdl for your service using
http://localhost:8080/services/GetHtml<http://localhost:8080/services/listServices>
save it as GetHtml.wsdl. Ok try with below command

c:\axis2-1.6.1-bin\axis2-1.6.1\bin>java2wsdl -uri
<path_to_the_GetHtml.wsdl> -o <path_to_the_output_dir>

above -uri and -o both are options you can find all option
here<http://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html#cmdref>

On Tue, Nov 8, 2011 at 1:40 AM, Barney Sperlin <bsperli...@yahoo.com> wrote:

>
> Hello,
>     Following the quickstart tutorial for POJOs, using the
> StockQuoteService, I've been able to use the java2wsdl, ant
> generate.service, ant generate.client and ant run.client.  The aar file was
> moved into the appropriate tomcat folder and I could see it in
> http://localhost:8080/services/listServices.  The command line gave the
> expected output.
>     However, trying the above with a simple Java program which I wrote in
> Eclipse doesn't even get started right.  The file, with a single class with
> main() in it, is in C:\javaprograms\GetHTML\src\gethtml.java so trying
> java2wsdl in a command line of my Windows XP:
> c:\axis2-1.6.1-bin\axis2-1.6.1\bin>java2wsdl -cp
> \javaprograms\GetHTML\src\ -cn Get_html -of Get_html.wsdl
>
> And all that comes back repeatedly is a listing of the proper format for
> java2wsdl.  I've tried different classpathes (such as
> ..\..\..\javaprograms\ etc. ) but the only error message is the improper
> formatting.  What needs to be done?
>      Thanks,
>            Barney
>
>


-- 
Shameera Rathnayaka
Undergraduate
Department of Computer Science and Engineering
University of Moratuwa.
Sri Lanka.

Blog : http://shameerarathnayaka.blogspot.com/

Reply via email to