RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace
Also how is the mapping from ns to wsdl done w/o an include? /clemens (powered by ocs mobile) clemens utschig - utschig soa product management -Original Message- From: Clemens Utschig - Utschig [EMAIL PROTECTED] To: tuscany-dev@ws.apache.org tuscany-dev@ws.apache.org Sent: 2/11/08 7:30 AM Subject: RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace shouldn't an include do it, so that I could potentially store the wsdl anywhere .. I'll try that later today - thx for the advise.. -Original Message- From: Simon Nash [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 5:54 AM To: tuscany-dev@ws.apache.org Subject: Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace Clemens Utschig - Utschig wrote: would it help to have a interface.wsdl? that contains the whole thing - rather than generating it from the annonated java interface? -- if so, any example for that? Yes, it would help. It might not solve all the problems, but it should get you further. I couldn't find a sample that uses interface.wsdl on a reference (seems like an omission), though there are a few that use it on a service definition. You would need to replace the interface.java element with something like interface.wsdl interface=http://model/common/serviceinterface#wsdl.interface(EmpFlexFieldService) / The generated wsdl file needs to be somewhere on your classpath. In our samples and tests that use generated wsdl, we put the wsdl files in the src/main/resources/wsdl directory. Simon cherrs clemens -Original Message- From: Simon Nash [mailto:[EMAIL PROTECTED] Sent: Sunday, February 10, 2008 12:42 PM To: tuscany-dev@ws.apache.org Subject: Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace Jean-Sebastien Delfino wrote: Clemens Utschig - Utschig wrote: Folks, I have a simple composite as below - which makes use of SDO through SOAP in the reference ?xml version=1.0 encoding=UTF-8? composite xmlns=http://www.osoa.org/xmlns/sca/1.0; targetNamespace=/model/common/ xmlns:dbsdo=http://tuscany.apache.org/xmlns/sca/databinding/sdo/1.0; name=FlexEmployeeComposite xmlns:tns=/model/common/types/ xmlns:types=/model/common/types/ xmlns:errors=http://xmlns.oracle.com/adf/svc/errors/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; component name=FlexEmployeeServiceComponent implementation.java class=com.oracle.soa.test.tuscany.impl.EmployeeServiceComponent/ reference name=empFlexFieldService/ /component reference name=empFlexFieldService promote=FlexEmployeeServiceComponent/empFlexFieldService interface.java interface=model.common.serviceinterface.EmpFlexFieldService/ binding.ws uri=http://localhost:1234/Application4710-Model-context-root/EmpFlexFieldService/ /reference /composite that promotes the java interface from the reference as service .. the interface is annotated as webservice - as below .. @javax.jws.WebMethod(action=/model/common/createEmployees1, operationName=createEmployees1) @javax.xml.ws.RequestWrapper(targetNamespace=/model/common/types/, localName=createEmployees1) @javax.xml.ws.ResponseWrapper(targetNamespace=/model/common/types/, localName=createEmployees1Response) @javax.jws.WebResult(name=result) DataObject createEmployees1(@javax.jws.WebParam(mode=javax.jws.WebParam.Mode.IN, name=employees1) DataObject employees1) throws ServiceException; which implies that the namespace for this element is /model/common/types/ however - Axis2, takes the targetNamespace - and hence tries to send out ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body _ns_:getEmployees1 xmlns:_ns_=/model/common/ empno xmlns=/model/common/1/empno /_ns_:getEmployees1 /soapenv:Body /soapenv:Envelope instead of soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body xmlns:ns1=/model/common/types/ ns1:getEmployees1 ns1:empno/ns1:empno /ns1:getEmployees1 /soap:Body /soap:Envelope anybody seen this? - this sounds like a real bug to me.. thx clemens I'm not sure that the support for jaxws annotations is ready and integrated in the build yet, although it may be pretty close. Raymond, it looks like you've been working on the interface-java-jaxws module recently, can you give us its status? Thanks. I don't think the code in the interface-java-jaxws module is enough
RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace
Jean-sebastien, Qualified = target namespace?or wsdl name? Say my wsdl is named aaa.wsdl do I reference it by http://aaa ? Thx clemens -Original Message- From: Jean-Sebastien Delfino [EMAIL PROTECTED] To: tuscany-dev@ws.apache.org Sent: 2/11/08 6:33 PM Subject: Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace Clemens Utschig - Utschig wrote: shouldn't an include do it, so that I could potentially store the wsdl anywhere .. I'll try that later today - thx for the advise.. You don't even need an include, just place the WSDL file anywhere inside your SCA contribution (JAR or folder), reference its qualified name from your .composite and we should find it. -- Jean-Sebastien - 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]
[continuum] BUILD SUCCESSFUL: Apache Tuscany DAS Implementation project
] [install:install] [INFO] Installing /x1/continuum/working-directory/356/samples/customer/target/tuscany-das-sample-customer-j2se-1.0-incubating-SNAPSHOT.jar to /home/continuum/.m2/repository/org/apache/tuscany/das/samples/tuscany-das-sample-customer-j2se/1.0-incubating-SNAPSHOT/tuscany-das-sample-customer-j2se-1.0-incubating-SNAPSHOT.jar [INFO] [INFO] [INFO] [INFO] Reactor Summary: [INFO] [INFO] Apache Tuscany DAS Implementation project . SUCCESS [5.841s] [INFO] Tuscany DAS for Relational Databases .. SUCCESS [24.524s] [INFO] Tuscany DAS Samples ... SUCCESS [0.081s] [INFO] Tuscany DAS Canned DB Initializer Utility . SUCCESS [17.778s] [INFO] Tuscany DAS Company Sample SUCCESS [4.132s] [INFO] Tuscany DAS J2SE Customer Sample .. SUCCESS [1.712s] [INFO] [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 55 seconds [INFO] Finished at: Sun Jun 03 09:59:23 PDT 2007 [INFO] Final Memory: 12M/24M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[continuum] BUILD FAILURE: Apache Tuscany DAS Implementation project
encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 17 source files to /x1/continuum/working-directory/356/samples/dbconfig/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 1 source file to /x1/continuum/working-directory/356/samples/dbconfig/target/test-classes [INFO] [surefire:test] [INFO] Surefire report directory: /x1/continuum/working-directory/356/samples/dbconfig/target/surefire-reports --- T E S T S --- Running org.apache.tuscany.das.rdb.dbconfig.DBInitializerTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.917 sec FAILURE! testCreateDatabase(org.apache.tuscany.das.rdb.dbconfig.DBInitializerTestCase) Time elapsed: 0.845 sec ERROR! java.lang.ExceptionInInitializerError at org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239) at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68) at org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76) at org.apache.tuscany.sdo.impl.FactoryBase.createDocumentRoot(FactoryBase.java:307) at org.apache.tuscany.sdo.impl.FactoryBase.initXSD(FactoryBase.java:166) at org.apache.tuscany.sdo.model.internal.impl.InternalFactoryImpl.createXSDMetaData(InternalFactoryImpl.java:211) at org.apache.tuscany.sdo.model.internal.impl.InternalFactoryImpl.initializeMetaData(InternalFactoryImpl.java:206) at org.apache.tuscany.sdo.model.internal.impl.InternalFactoryImpl.init(InternalFactoryImpl.java:172) at org.apache.tuscany.sdo.model.internal.InternalFactory.clinit(InternalFactory.java:41) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) at java.lang.reflect.Field.getFieldAccessor(Field.java:898) at java.lang.reflect.Field.get(Field.java:357) at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:214) at org.apache.tuscany.das.rdb.dbconfig.impl.DbconfigFactoryImpl.init(DbconfigFactoryImpl.java:194) at org.apache.tuscany.das.rdb.dbconfig.DbconfigFactory.clinit(DbconfigFactory.java:28) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) at java.lang.reflect.Field.getFieldAccessor(Field.java:898) at java.lang.reflect.Field.get(Field.java:357) at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:214) at org.apache.tuscany.das.rdb.dbconfig.DBConfigUtil.loadDBConfig(DBConfigUtil.java:47) at org.apache.tuscany.das.rdb.dbconfig.DBInitializer.init(DBInitializer.java:97) at org.apache.tuscany.das.rdb.dbconfig.DBInitializer.init(DBInitializer.java:78) at org.apache.tuscany.das.rdb.dbconfig.DBInitializerTestCase.testCreateDatabase(DBInitializerTestCase.java:22) Results : Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 38 seconds [INFO] Finished at: Sat Jun 02 01:11:23 PDT 2007 [INFO] Final Memory: 10M/30M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[continuum] BUILD FAILURE: Apache Tuscany DAS Implementation project
default encoding to copy filtered resources. [INFO] [compiler:compile] Compiling 17 source files to /x1/continuum/working-directory/356/samples/dbconfig/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] Compiling 1 source file to /x1/continuum/working-directory/356/samples/dbconfig/target/test-classes [INFO] [surefire:test] [INFO] Surefire report directory: /x1/continuum/working-directory/356/samples/dbconfig/target/surefire-reports --- T E S T S --- Running org.apache.tuscany.das.rdb.dbconfig.DBInitializerTestCase Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.161 sec FAILURE! testCreateDatabase(org.apache.tuscany.das.rdb.dbconfig.DBInitializerTestCase) Time elapsed: 1.023 sec ERROR! java.lang.ExceptionInInitializerError at org.apache.tuscany.sdo.impl.SDOFactoryImpl.createAttribute(SDOFactoryImpl.java:239) at org.apache.tuscany.sdo.impl.ClassImpl.clinit(ClassImpl.java:68) at org.apache.tuscany.sdo.impl.SDOFactoryImpl$SDOEcoreFactory.createEClass(SDOFactoryImpl.java:76) at org.apache.tuscany.sdo.impl.FactoryBase.createDocumentRoot(FactoryBase.java:307) at org.apache.tuscany.sdo.impl.FactoryBase.initXSD(FactoryBase.java:166) at org.apache.tuscany.sdo.model.internal.impl.InternalFactoryImpl.createXSDMetaData(InternalFactoryImpl.java:211) at org.apache.tuscany.sdo.model.internal.impl.InternalFactoryImpl.initializeMetaData(InternalFactoryImpl.java:206) at org.apache.tuscany.sdo.model.internal.impl.InternalFactoryImpl.init(InternalFactoryImpl.java:172) at org.apache.tuscany.sdo.model.internal.InternalFactory.clinit(InternalFactory.java:41) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) at java.lang.reflect.Field.getFieldAccessor(Field.java:898) at java.lang.reflect.Field.get(Field.java:357) at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:214) at org.apache.tuscany.das.rdb.dbconfig.impl.DbconfigFactoryImpl.init(DbconfigFactoryImpl.java:194) at org.apache.tuscany.das.rdb.dbconfig.DbconfigFactory.clinit(DbconfigFactory.java:28) at sun.misc.Unsafe.ensureClassInitialized(Native Method) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:917) at java.lang.reflect.Field.getFieldAccessor(Field.java:898) at java.lang.reflect.Field.get(Field.java:357) at org.apache.tuscany.sdo.util.SDOUtil.registerStaticTypes(SDOUtil.java:214) at org.apache.tuscany.das.rdb.dbconfig.DBConfigUtil.loadDBConfig(DBConfigUtil.java:47) at org.apache.tuscany.das.rdb.dbconfig.DBInitializer.init(DBInitializer.java:97) at org.apache.tuscany.das.rdb.dbconfig.DBInitializer.init(DBInitializer.java:78) at org.apache.tuscany.das.rdb.dbconfig.DBInitializerTestCase.testCreateDatabase(DBInitializerTestCase.java:22) Results : Tests run: 1, Failures: 0, Errors: 1, Skipped: 0 [INFO] [ERROR] BUILD FAILURE [INFO] [INFO] There are test failures. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 50 seconds [INFO] Finished at: Sat Jun 02 18:36:33 PDT 2007 [INFO] Final Memory: 10M/30M [INFO] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]