Fw: WSDL2java : Duplicate global type error

2009-02-05 Thread Guo Tianchong
  Can someone give some insight on this


Guo

- Original Message - 
From: Guo Tianchong gu...@nec-as.nec.com.cn
To: axis-user axis-user@ws.apache.org
Sent: Tuesday, February 03, 2009 6:14 PM
Subject: WSDL2java : Duplicate global type error


| Hi, all
|
| When I run WSDL2java in xmlbeans databinding. it's always report the 
following exception.
|
| Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error:
| sch-props-correct.2: Duplicate global type: 
ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in 
file:
| null)
|at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
|... 8 more
| Caused by: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error: sch-props-correct.2: Duplicate global 
type:
| ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type found 
in file: null)
|at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
|at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|at java.lang.reflect.Method.invoke(Method.java:324)
|at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
|
|
| The soapenc.xsd file has been downloaded from 
http://schemas.xmlsoap.org/soap/encoding/, and has been saved in localhost.
| My applications's wsdl import the soapenc.xsd file as this:
|
| xs:import namespace=http://schemas.xmlsoap.org/soap/envelope/;
| schemaLocation=./soapenc.xsd/
|
| Can anyone tell me how to resolve this problem?
| Thanks
|
| Guo
|
|
|
|
|
|
| 



Re: Fw: WSDL2java : Duplicate global type error

2009-02-05 Thread keith chapman
I'm not sure about your exact scenario. But Axis2 does not support
soap-encoding

Thanks,
Keith.

On Fri, Feb 6, 2009 at 7:15 AM, Guo Tianchong gu...@nec-as.nec.com.cnwrote:

  Can someone give some insight on this


 Guo

 - Original Message -
 From: Guo Tianchong gu...@nec-as.nec.com.cn
 To: axis-user axis-user@ws.apache.org
 Sent: Tuesday, February 03, 2009 6:14 PM
 Subject: WSDL2java : Duplicate global type error


 | Hi, all
 |
 | When I run WSDL2java in xmlbeans databinding. it's always report the
 following exception.
 |
 | Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
 project://local/soapenc.xsd:95:3: error:
 | sch-props-correct.2: Duplicate global type: Array@
 http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in
 file:
 | null)
 |at
 org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
 |... 8 more
 | Caused by: org.apache.xmlbeans.XmlException:
 project://local/soapenc.xsd:95:3: error: sch-props-correct.2: Duplicate
 global type:
 | ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type
 found in file: null)
 |at
 org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
 |at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 |at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 |at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 |at java.lang.reflect.Method.invoke(Method.java:324)
 |at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
 |
 |
 | The soapenc.xsd file has been downloaded from
 http://schemas.xmlsoap.org/soap/encoding/, and has been saved in
 localhost.
 | My applications's wsdl import the soapenc.xsd file as this:
 |
 | xs:import namespace=http://schemas.xmlsoap.org/soap/envelope/;
 | schemaLocation=./soapenc.xsd/
 |
 | Can anyone tell me how to resolve this problem?
 | Thanks
 |
 | Guo
 |
 |
 |
 |
 |
 |
 |




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


Re: Fw: WSDL2java : Duplicate global type error

2009-02-05 Thread Guo Tianchong
Thanks for your response!

Guo
  - Original Message - 
  From: keith chapman
  To: axis-user@ws.apache.org
  Sent: Friday, February 06, 2009 1:52 PM
  Subject: Re: Fw: WSDL2java : Duplicate global type error


  I'm not sure about your exact scenario. But Axis2 does not support 
soap-encoding

  Thanks,
  Keith.


  On Fri, Feb 6, 2009 at 7:15 AM, Guo Tianchong gu...@nec-as.nec.com.cn wrote:

 Can someone give some insight on this


Guo


- Original Message -
From: Guo Tianchong gu...@nec-as.nec.com.cn
To: axis-user axis-user@ws.apache.org
Sent: Tuesday, February 03, 2009 6:14 PM
Subject: WSDL2java : Duplicate global type error


| Hi, all
|
| When I run WSDL2java in xmlbeans databinding. it's always report the 
following exception.
|
| Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error:
| sch-props-correct.2: Duplicate global type: 
ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type found in 
file:
| null)
|at 
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
|... 8 more
| Caused by: org.apache.xmlbeans.XmlException: 
project://local/soapenc.xsd:95:3: error: sch-props-correct.2: Duplicate global 
type:
| ar...@http://schemas.xmlsoap.org/soap/encoding/ (Original global type 
found in file: null)
|at 
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
|at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
|at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
|at java.lang.reflect.Method.invoke(Method.java:324)
|at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
|
|
| The soapenc.xsd file has been downloaded from 
http://schemas.xmlsoap.org/soap/encoding/, and has been saved in localhost.
| My applications's wsdl import the soapenc.xsd file as this:
|
| xs:import namespace=http://schemas.xmlsoap.org/soap/envelope/;
| schemaLocation=./soapenc.xsd/
|
| Can anyone tell me how to resolve this problem?
| Thanks
|
| Guo
|
|
|
|
|
|
|





  -- 
  Keith Chapman
  Senior Software Engineer
  WSO2 Inc.
  Oxygenating the Web Service Platform.
  http://wso2.org/

  blog: http://www.keith-chapman.org