Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

wsdl2java axis question  RSS feed

 
Nikhil Reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using axis wsdl2java task to generate client stubs. But for some reason, when classes are generated, the packages have / instead of .
Can anyone advise why it is generating slashes instead of . Proabably because wsdl file is not designed properly.
 
David Brossard
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by
when classes are generated, the packages have / instead of .
?

How do you call wsdl2java?

With Axis 1.x, with an Ant script this is the way to call it:

<axis-wsdl2java output="path/to/out/folder" testcase="false"
url="path/to/your/wsdlfile.wsdl">
<mapping namespace="${namespace}" package="${package}" />
</axis-wsdl2java>


This will generate the client stub only.

You can find more info here: http://ws.apache.org/axis/java/ant/axis-wsdl2java.html

the mapping element associates a given namespace to a package. An example of a namespace is urn:my.company.com and an example of a package is com.company.my.
 
Chelis Flores
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you must to use -p here.some.package (here.some.package is you package)
FOr example:
java org.apache.axis.wsdl.WSDL2Java -p mx.com.some.package.here http://localhost/axis/SomeWebService.jws?wsdl
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!