that's a pending issue. would appreciate if you could log an enhcancement issue.
-- dims
On 11/9/06, Philipp Perner <[EMAIL PROTECTED]> wrote:
Yeah,
You are brilliant!!!
Is there any reason why datahandler doesn't work? In Axis1 v.1.4 it
worked perfectly
Which datatypes are supported for input/output parameters?
regards, Philipp
Davanum Srinivas schrieb:
> replace the DataHandler with a byte[] and see if that helps.
>
> -- dims
>
> On 11/9/06, Philipp Perner <[EMAIL PROTECTED]> wrote:
>> How do you generate wsdl file?
>>
>> I have a service class, which has some methods. For example a
>> datahandler should be returned and a beanclass i designed.
>> When i generate wsdl file with java2wsdl from command line the generated
>> wsdl file is invalid and cannot be transformed to service classes by
>> WSDL2Java.bat:
>>
>> Command to generate WSDL from Java Code:
>> java -cp {required libs} org.apache.ws.java2wsdl.Java2WSDL -tn
>> http://Pseudonymisierung.pseudo.service.axis.healthgate -tp ns -stn
>> http://Pseudonymisierung.pseudo.service.axis.healthgate/types -stp types
>> -o ../ -l "http://localhost:8081/axis2/services/" -sn
>> "Pseudonymisierung" -cn healthgate.axis.service.pseudo.Pseudonymisierung
>> -of pseudo.wsdl
>>
>> --> No error
>>
>> Command to generate Java Code from WSDL:
>>
D:\Development\eclipse3.2\WebService\WEB-INF>D:\downloads\axis2-1.1-SNAPSHOT\bin\WSDL2Java.bat
>>
>> -uri pseudo.wsdl -ss -sd -d xmlbeans -o \generated -p
>> healthgate.axis.service.pseudo.Pseudonymisierung
>>
>> Using AXIS2_HOME: D:\downloads\axis2-std-1.0-bin
>> Using JAVA_HOME: D:\Java\j2sdk1.4.2_12
>> Exception in thread "main"
>> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing
>> WSDL
>> at
>>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:94)
>>
>> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
>> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>> Caused by: org.apache.axis2.AxisFault: Schema for namespace
>> 'http://net.java/xsd' already contains type 'URLStreamHandlerFactory;
>> nested exception is:
>> java.lang.RuntimeException: Schema for namespace
>> 'http://net.java/xsd' already contains type 'URLStreamHandlerFactory
>> at
>>
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243)
>>
>> at
>>
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:87)
>>
>> ... 2 more
>> Caused by: java.lang.RuntimeException: Schema for namespace
>> 'http://net.java/xsd' already contains type 'URLStreamHandlerFactory
>> at
>> org.apache.ws.commons.schema.XmlSchema.addType(XmlSchema.java:244)
>> at
>>
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:110)
>>
>> at
>>
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:250)
>>
>> at
>>
org.apache.axis2.description.WSDL2AxisServiceBuilder.getXMLSchema(WSDL2AxisServiceBuilder.java:959)
>>
>> at
>>
org.apache.axis2.description.WSDL2AxisServiceBuilder.copyExtensibleElements(WSDL2AxisServiceBuilder.java:1067)
>>
>> at
>>
org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:221)
>>
>> ... 3 more
>>
>>
>> any clues to fix this problem?
>> Please help, because I'm stuck in there since monday...
>>
>> regards, philipp
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]