axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Max Reider" <>
Subject fixed -- Re: "urn:" vs. "http://" namespace
Date Sat, 23 Nov 2002 00:26:10 GMT
This one goes down in the "Why should that make a difference?" file.

The dual namespaces were produced by the Java2WSDL argument of:

Then I changed the argument to:
That is, I just removed the quotes around the package. That fixed it. No 
more Just

Picked up the double-quotes usage from the article from back in 

>From: "Max Reider" <>
>Subject: Re: "urn:" vs. "http://" namespace
>Date: Fri, 22 Nov 2002 14:06:10 -0800

Okay, the schema with targetNamespace="" contains all my
array types:
   <complexType name="ArrayOf_xsd_string">
   <complexType name="ArrayOf_tns2_MyClass">

The unexpected schema contains all my original
bean-ified classes:
   <complexType name="PrimaryData">

So why is the namespace I specified for Java2WSDL only being used for array 

>From: "Max Reider" <>
>Subject: "urn:" vs. "http://" namespace
>Date: Fri, 22 Nov 2002 11:45:45 -0800
I run Java2WSDL with these arguments among others:
-lhttp://localhost:8080/axis/foo -n -p""

The Java interface that serves as the input to Java2WSDL exposes various 
bean-ified classes residing in the package

What's odd is that under <wsdl:types>, Java2WSDL creates two
separate schemas:
<schema xmlns=""
<schema xmlns=""

Note the difference between and What's
odder is that some of the complexType entries (corresponding to my
classes) get placed in the one schema and some in the other. And I
can't quite notice a pattern of which goes where.

Anyone recognize why this is happening? Is there some way to enforce
the single namespace, or is that not desirable?

Protect your PC - get VirusScan Online

View raw message