Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Axis 1.x: Java2WSDL namespace options

Thread view: 
bruce_phipps@my-deja.com - 09 Aug 2006 09:40 GMT
Axis 1.4 newbie.

I am using the Java2WSDL tool on mypackage/HelloWorld.class

But I am unsure of how to use the options:
-n [target namespace of WSDL file] -- this seems to define the "folder"
where the WSDL file is exported.
-p [mapping from package to namespace]

Are these options required? Will they affect the required deployment
folders on Tomcat (do the namespaces entered here need to be duplicated
on deployment)?

Thanks
bruce
Arne Vajhøj - 11 Aug 2006 02:10 GMT
> I am using the Java2WSDL tool on mypackage/HelloWorld.class
>
[quoted text clipped - 6 lines]
> folders on Tomcat (do the namespaces entered here need to be duplicated
> on deployment)?

They are not required.

It is usually a very good thing to do the mapping.

Example:

-N http://localhost:8080/axis/services/TestService=ws.stub

Untested because I always prefer to use the ant task:

<axis-wsdl2java output="${gensrc.dir}" url="${wsdl.url}">
    <mapping
namespace="http://localhost:8080/axis/services/TestService"
package="ws.stub"/>
</axis-wsdl2java>

Arne
bruce_phipps@my-deja.com - 11 Aug 2006 08:56 GMT
Thanks, but I am still unsure about which namespaces to use.
Generally, the lines at the top of a WSDL file I do not full understand
yet. The rest of the WSDL file: SOAP message definitions, methods etc.
I can understand OK.

Bruce

> > I am using the Java2WSDL tool on mypackage/HelloWorld.class
> >
[quoted text clipped - 24 lines]
>
> Arne
Arne Vajhøj - 11 Aug 2006 23:49 GMT
> Thanks, but I am still unsure about which namespaces to use.
> Generally, the lines at the top of a WSDL file I do not full understand
> yet. The rest of the WSDL file: SOAP message definitions, methods etc.
> I can understand OK.

For WSDL2Java which my example was for:
  namespace is the one in the existing WSDL file
  package is whatever you want it to be

For Java2WSDL it is the opposite:t
  package is the one from your existing code
  namespace is whatever you want it to be

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.