Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 88356 invoked from network); 13 Nov 2006 21:18:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 21:18:48 -0000 Received: (qmail 32045 invoked by uid 500); 13 Nov 2006 21:18:42 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 32031 invoked by uid 500); 13 Nov 2006 21:18:42 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 31996 invoked by uid 99); 13 Nov 2006 21:18:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 13:18:42 -0800 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS,X_PRIORITY_HIGH X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of jeffrey.brown@ngc.com designates 208.12.122.34 as permitted sender) Received: from [208.12.122.34] (HELO xmrc0101.northgrum.com) (208.12.122.34) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 13:18:25 -0800 Received: from xbhc0001.northgrum.com ([157.127.103.72]) by xmrc0101.northgrum.com with InterScan Message Security Suite; Mon, 13 Nov 2006 13:23:29 -0800 Received: from xbhv4801.northgrum.com ([158.114.112.119]) by xbhc0001.northgrum.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Nov 2006 13:17:51 -0800 Received: from XMBV4801.northgrum.com ([158.114.112.41]) by xbhv4801.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Mon, 13 Nov 2006 16:17:50 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C70769.2C6050DF" Subject: Re: 2nd POST - HELP! Problems with WSDL2Java Date: Mon, 13 Nov 2006 16:17:48 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: 2nd POST - HELP! Problems with WSDL2Java thread-index: AccDW4QnGkq0U5+iQsmee6XM7qvWcw== X-Priority: 1 Priority: Urgent Importance: high From: "Brown, Jeff \(C2MS\)" To: X-OriginalArrivalTime: 13 Nov 2006 21:17:50.0434 (UTC) FILETIME=[2C960C20:01C70769] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C70769.2C6050DF Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Philipp I can't subscribe to the Axis mailing list for some reason so I had to paste your response manually below. Thanks for the suggestion but I got a similar error anyway (different duplicate file than before but a duplicate file problem nonetheless): C:\TEST_AREA\build.xml:49: WSDL processing error for C:\TEST_AREA\BoundingRegionService.wsdl : Duplicate file name: C:\TEST_AREA\src\net\opengis\www\gml\MeasureType.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. Any other ideas?=20 I wonder why your's works and mine doesn't? I had to use the Ant because I'm behind a firewall and had to add the timeout option to because it will timeout otherwise but I haven't changed anything else but the schemLocation as you suggested below. Will the debug output help? JAB ---------------------------------------------------------- Because, you didn't get an answer, here's what came to my mind at first: I replaced the schemaLocation with v.3.1.1 and after validation, there's no error=20 *************************************** Look: ***************************************=20 =20 ***************************************=20 let me know if it works.... regards, Philipp=20 ---------------------------------------------------------- Never got anything on this and I really need some help on this . . . I'm using Axis 1.4Final. Here is my WSDL file: ---------------------------------------------------------- =20 =20 =20 =20 =20 ---------------------------------------------------------- Here is the error I'm receiving: ---------------------------------------------------------- BUILD FAILED C:\TEST_AREA\build.xml:47: WSDL processing error for C:\TEST_AREA\BoundingRegionService.wsdl : Duplicate file name: C:\TEST_AREA\src\net\opengis\www\gml\CodeOrNullListType.java. Hint: you may have mapped two namespaces with elements of the same name to the same package name. ---------------------------------------------------------- As you can see I'm simply trying to refer to something that is defined in the GML schema from the Open Geospatial Consortium located online at http://www.opengis.net/gml/. I don't know how I can do anything more simple as an example using the GML schema. To replicate what I have, place the above WSDL in a directory and unzip the downloadable schema bundle from the URL given above. I think they call it 03-105r1_GML_3.1.zip. I can provide what I have as an attachment if needed. In addition, I'm using the following Ant build file: ---------------------------------------------------------- Please set BOUNDING_REGION_TEST_HOME Please set BOUNDING_REGION_ENDPT ---------------------------------------------------------- Any suggestion/help will be much appreciated because I can't go any further until this is resolved. Thanks! JAB ------_=_NextPart_001_01C70769.2C6050DF Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Re: 2nd POST - HELP! Problems with WSDL2Java

Philipp

I can't subscribe to the Axis mailing = list for some reason so I had to paste your response manually = below.

Thanks for the suggestion but I got a = similar error anyway (different duplicate file than before but a = duplicate file problem nonetheless):

C:\TEST_AREA\build.xml:49: WSDL = processing error for C:\TEST_AREA\BoundingRegionService.wsdl :
 Duplicate file name: = C:\TEST_AREA\src\net\opengis\www\gml\MeasureType.java.
Hint: you may have mapped two = namespaces with elements of the same name to the same package = name.

Any other ideas?

I wonder why your's works and mine = doesn't? I had to use the Ant <setproxy> because I'm behind a = firewall and had to add the timeout option to <axis-wsdl2java> = because it will timeout otherwise but I haven't changed anything else = but the schemLocation as you suggested below. Will the debug output = help?

JAB

----------------------------------------------------------=

Because, you didn't get an answer, = here's what came to my mind at first:
I replaced the schemaLocation with = v.3.1.1 and after validation, there's no error
***************************************
 Look:
 ***************************************
<?xml version=3D"1.0" = ?> <definitions name=3D"BoundingRegionService" = targetNamespace=3D"http://boundingregion.xxx= .com/service/" xmlns:tns=3D"http://boundingregion.xxx= .com/service/" xmlns:gml=3D"http://www.opengis.net/gml" = xmlns=3D"http://schemas.xmlsoap.org/wsdl= /"> <types> <schema xmlns=3D"http://www.w3.org/2001/XMLSchem= a"> <import namespace=3D"http://www.opengis.net/gml" = \ schemaLocation=3D"http://schemas= .opengis.net/gml/3.1.1/base/gml.xsd" /> </schema> = </types> <message = name=3D"ComputeBoundingRegionInput"> <part = name=3D"body" element=3D"gml:location" /> = </message> <message = name=3D"ComputeBoundingRegionOutput"> <part = name=3D"body" element=3D"gml:boundingBox" /> = </message> <portType = name=3D"BoundingRegionServicePortType"> <operation = name=3D"ComputeBoundingRegion"> <input = message=3D"tns:ComputeBoundingRegionInput" /> <output = message=3D"tns:ComputeBoundingRegionOutput" /> = </operation> </portType> </definitions>

***************************************
let me know if it works.... regards, = Philipp

----------------------------------------------------------=

Never got anything on this and I really = need some help on this . . .

I'm using Axis 1.4Final. Here is my = WSDL file:

----------------------------------------------------------=

<?xml version=3D"1.0" = ?>
<definitions = name=3D"BoundingRegionService" targetNamespace=3D"http://boundingregion.xxx= .com/service/" xmlns:tns=3D"http://boundingregion.xxx= .com/service/" xmlns:gml=3D"http://www.opengis.net/gml" = xmlns=3D"http://schemas.xmlsoap.org/wsdl= /">

   <types>
      = <schema xmlns=3D"http://www.w3.org/2001/XMLSchem= a">
         = <import namespace=3D"http://www.opengis.net/gml" = schemaLocation=3D"GML-3.1.0/base/gml.xsd" />
      = </schema>
   </types>
   <message = name=3D"ComputeBoundingRegionInput">
      = <part name=3D"body" element=3D"gml:location" = />
   </message>
   <message = name=3D"ComputeBoundingRegionOutput">
      = <part name=3D"body" element=3D"gml:boundingBox" = />
   </message>
   <portType = name=3D"BoundingRegionServicePortType">
      = <operation name=3D"ComputeBoundingRegion">
         = <input message=3D"tns:ComputeBoundingRegionInput" /> =
         = <output message=3D"tns:ComputeBoundingRegionOutput" /> =
      = </operation>
   </portType>
</definitions>

----------------------------------------------------------=

Here is the error I'm receiving:

----------------------------------------------------------=

BUILD FAILED
C:\TEST_AREA\build.xml:47: WSDL = processing error for C:\TEST_AREA\BoundingRegionService.wsdl :
 Duplicate file name: = C:\TEST_AREA\src\net\opengis\www\gml\CodeOrNullListType.java.
Hint: you may have mapped two = namespaces with elements of the same name to the same package = name.

----------------------------------------------------------=

As you can see I'm simply trying to = refer to something that is defined in the GML schema from the Open = Geospatial Consortium located online at http://www.opengis.net/gml/. I don't know how I can do anything more simple as an = example using the GML schema.

To replicate what I have, place the = above WSDL in a directory and unzip the downloadable schema bundle from = the URL given above. I think they call it 03-105r1_GML_3.1.zip. I can = provide what I have as an attachment if needed.

In addition, I'm using the following = Ant build file:

----------------------------------------------------------=

<project = name=3D"BoundingRegionService"
         = default=3D"compileJava"
         = basedir=3D".">

        <target name=3D"environment">

        =         <property environment=3D"env" />
        =         <fail = unless=3D"env.BOUNDING_REGION_TEST_HOME">Please set = BOUNDING_REGION_TEST_HOME</fail>
        =         <fail = unless=3D"env.BOUNDING_REGION_ENDPT">Please set = BOUNDING_REGION_ENDPT</fail>

        =         <property name=3D"project.COTS"
        =                   = value=3D"COTS" />
        =         <property = name=3D"project.boundingRegionServiceWsdl"
        =                   = value=3D"BoundingRegionService.wsdl" />

        </target>

        <target name=3D"classpath" = depends=3D"environment">
        =         <path id=3D"project.classpath">
        =         =         <pathelement path=3D"." />
        =         =         <pathelement path=3D"classes" />
        =         =         <fileset = dir=3D"${project.COTS}/Axis/1.4Final">
        =         =         =         <include name=3D"*.jar" />
        =         =         </fileset>
        =         =         <fileset = dir=3D"${project.COTS}/J2EE/1.4">
        =         =         =         <include name=3D"j2ee.jar" />
        =         =         </fileset>
        =         </path>

        =         <taskdef = resource=3D"axis-tasks.properties"
        =                  = classpathref=3D"project.classpath" />
        </target>

        <target name=3D"clean">
        =         <delete dir=3D"classes" = failonerror=3D"false" />
        =         <delete dir=3D"lib" = failonerror=3D"false" />
        =         <delete = dir=3D"src/com/xxx/boundingregion/service" = failonerror=3D"false" />
        </target>

        <target name=3D"axisWSDL2Java" = depends=3D"classpath">
        =         <axis-wsdl2java output=3D"src"
        =                  &nbs= p;      verbose=3D"true"
         &nbs= p;            = ;          = debug=3D"true"
         &nbs= p;            = ;          = all=3D"true"
         &nbs= p;            = ;          = serverside=3D"true"
        =                  &nbs= p;      = url=3D"${project.boundingRegionServiceWsdl}">
        =         </axis-wsdl2java>
        </target>

        <target name=3D"compileJava" = depends=3D"axisWSDL2Java">
        =         <mkdir dir=3D"classes" />
        =         <javac srcdir=3D"src"
        =                = destdir=3D"classes"
        =                = debug=3D"on"
        =                = deprecation=3D"off"
        =                = includeAntRuntime=3D"no"
        =                = includeJavaRuntime=3D"no">
        =         =         <classpath refid=3D"project.classpath" = />
        =         </javac>
        </target>

</project>

----------------------------------------------------------=

Any suggestion/help will be much = appreciated because I can't go any further until this is resolved. = Thanks!

JAB

------_=_NextPart_001_01C70769.2C6050DF--