Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCEJWSD
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Services Certification (OCEJWSD)
wscompile - how to generate wsdl from service endpoint
Sachet Varma
Ranch Hand
Posts: 39
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
the following performs wsdl2java
<wscompile fork="true" base="resources" import="true" mapping="resources/CallCentreWeb_Mapping.xml" verbose="true" debug="true" config="resources/config-wsdl.xml"> <classpath refid="classpath-jboss"/> </wscompile>
can someone please send me a sample code for the reverse?
Thanks!
Sachet Varma
Ranch Hand
Posts: 39
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
I managed to generate the server side files , can anyone tell me how to generate the wsdl though
<target name="generate-server" depends="init"> <wscompile gen="true" define="${wsdl.home}" base="${classfolder}" sourceBase="${source.base}" verbose="true" mapping="${mapping.home}" classpath="${compile.classpath}" config="${config.home}/config.xml"> <classpath> <path refid="compile.classpath"/> </classpath> </wscompile> </target>
How do I specify the location of the folder to which the generated wsdl file should be saved???
Ivan Krizsan
Ranch Hand
Posts: 2198
1
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi!
I have used wsgen, not wscompile, to generate the WSDL when doing Java-first development of web services.
Below is a snippet from the
Ant
buildfile that invokes the wsgen task:
<target name="main"> <exec executable="${wsgen-cmd}"> <arg value="-verbose"/> <!-- Set the classpath. --> <arg value="-classpath"/> <arg value="${class-dir}"/> <!-- Generate a WSDL file. --> <arg value="-wsdl"/> <!-- Specify where to write other generated files (i.e. class files). --> <arg value="-d"/> <arg value="${wsgen-outdir}"/> <!-- Specify where to write WSDL and XML schema files. --> <arg value="-r"/> <arg value="${wsdl-outdir}"/> <!-- Specify where to write generated source files. --> <arg value="-s"/> <arg value="${src-outdir}"/> <!-- Keep generated source files. --> <arg value="-keep"/> <!-- Specify service endpoint interface/class. --> <arg value="com.ivan.Calculator" /> </exec>
Best wishes!
Sachet Varma
Ranch Hand
Posts: 39
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks a lot Ivan!
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Please Help: Can't generate wsdl and mapping file
Error in ant test command
WSDP2.0 pack example
Create an endpoint interface from wsdl using wscompile (jaxrpc)
modeler error: invalid entity name: "GetResponse"
More...