• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

wsdl2java axis question

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
I think I'll just lie down here for a second. And ponder this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic