You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "tao.youzt" <ta...@alipay.com> on 2007/12/20 03:28:44 UTC

答复: [virus report]raising virus warning when mvn tuscany source codes

It sounds too bad , anyone who know the reason?

――――――――――――――――――――――
尤占涛(Tony)
Alibaba Technology Department.
Mobile:13732275093
――――――――――――――――――――――


-----邮件原件-----
发件人: 王洪伟 [mailto:david.pku.bj@gmail.com] 
发送时间: 2007年12月20日 9:54
收件人: tuscany-dev
主题: [virus report]raising virus warning when mvn tuscany source codes

Hi,all
This morning, I checked out tuscany java sources from apache .
Some virus warnings raised when I mvned it.

Detail information as follows:
=========================
扫描类型:自动防护 扫描
事件:发现安全风险!
威胁:W32.Pagipef.I!html
文件:
D:\maven-sca\java\sdo\sample\target\classes\org\apache\tuscany\samples\sdo\o
verview.html
位置:未知存储
计算机:DAVID
用户:DAVID\ce
采取的操作:清除 成功 : 拒绝访问
发现的日期:2007年12月20日  9:23:23
=======================================

[1] http://www.tuscany.org.cn/images/9/9e/VirusReport.JPG


Regards,

david

RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
simon, sure - do I have credentials / rights to open a jira?/

-- also what about the NPE I reported in the morning, one for that too?

/clemens

-----Original Message-----
From: Simon Nash [mailto:nash@apache.org]
Sent: Friday, February 08, 2008 4:14 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


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
>
>
At the moment Tuscany is ignoring JAX-WS annotations in <interface.java>
interfaces.  It should process these annotations.  Can you open a JIRA
and attach your test case so that we can track the problem?

  Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Simon Nash <na...@apache.org>.
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
> 
> 
At the moment Tuscany is ignoring JAX-WS annotations in <interface.java>
interfaces.  It should process these annotations.  Can you open a JIRA
and attach your test case so that we can track the problem?

  Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Simon Nash <na...@apache.org>.
Simon Nash wrote:
>
> (cut)
>>> 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 to
> solve this problem.  We also need the ability to generate a WSDL interface
> at runtime from a Java interface containing JAX-WS annotations.  (Our
> current code for this uses Axis2, which doesn't understand JAX-WS
> annotations.)  The code we need would do the same as the JAX-WS tool
> wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
> be done at runtime and would generate WSDL to a stream instead of a file.
> 
>>>From a quick look at both these options, it looks like it would be
> possible for the Tuscany runtime to call into code from either CXF or
> the JAX-WS tools to do the generation.  However, this wouldn't be using
> any official APIs but would require a bit of copying and adapting the code
> that is currently there.  Of the two options, the CXF code seems rather
> easier to work with.  Also, since CXF is an Apache project, Tuscany could
> contribute back to CXF any modifications we make to enable this.
> 
> Before I launch into actually trying to get this working, does anyone
> else have comments or suggestions on the general approach?
> 
I'll take the lack of reaction as confirmation that I haven't missed any
other obvious alternatives and it's worth my looking into how to use
the CXF code to do this.  More later...

  Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
given that I have a full testcase on my box with SDO generated through oracle adf bc, I guess I am happy to play guinea pig ..

/clemens

-----Original Message-----
From: Raymond Feng [mailto:enjoyjava@gmail.com]
Sent: Sunday, February 10, 2008 9:56 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


Hi,

I think we have two issues here:

1) Generate the WSDL port type from a java interface following the JAX-WS
mapping rules (JSR-181 annotations can be used to customize the WSDL). The
SCA spec chooses JAX-WS to map between remotable java interfaces and WSDLs.
I assume Simon's proposal is for this step.

2) Generate or map the XML Schema for the java parameter types, return type
and exception types. The data can be represented by different databindings
such as JAXB, SDO or XMLBeans. Some of them have metadata for the XML
elements/types such as JAXB annotations and SDO Type/Property. We need to
make sure the generated XSDs are consistent with these information. The
Java2XSD should be pluggable based on the databindings.

Thanks,
Raymond

----- Original Message -----
From: "Simon Nash" <na...@apache.org>
To: <tu...@ws.apache.org>
Sent: Sunday, February 10, 2008 12:42 PM
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 to
> solve this problem.  We also need the ability to generate a WSDL interface
> at runtime from a Java interface containing JAX-WS annotations.  (Our
> current code for this uses Axis2, which doesn't understand JAX-WS
> annotations.)  The code we need would do the same as the JAX-WS tool
> wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
> be done at runtime and would generate WSDL to a stream instead of a file.
>
> From a quick look at both these options, it looks like it would be
> possible for the Tuscany runtime to call into code from either CXF or
> the JAX-WS tools to do the generation.  However, this wouldn't be using
> any official APIs but would require a bit of copying and adapting the code
> that is currently there.  Of the two options, the CXF code seems rather
> easier to work with.  Also, since CXF is an Apache project, Tuscany could
> contribute back to CXF any modifications we make to enable this.
>
> Before I launch into actually trying to get this working, does anyone
> else have comments or suggestions on the general approach?
>
>  Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I think we have two issues here:

1) Generate the WSDL port type from a java interface following the JAX-WS 
mapping rules (JSR-181 annotations can be used to customize the WSDL). The 
SCA spec chooses JAX-WS to map between remotable java interfaces and WSDLs. 
I assume Simon's proposal is for this step.

2) Generate or map the XML Schema for the java parameter types, return type 
and exception types. The data can be represented by different databindings 
such as JAXB, SDO or XMLBeans. Some of them have metadata for the XML 
elements/types such as JAXB annotations and SDO Type/Property. We need to 
make sure the generated XSDs are consistent with these information. The 
Java2XSD should be pluggable based on the databindings.

Thanks,
Raymond

----- Original Message ----- 
From: "Simon Nash" <na...@apache.org>
To: <tu...@ws.apache.org>
Sent: Sunday, February 10, 2008 12:42 PM
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 to
> solve this problem.  We also need the ability to generate a WSDL interface
> at runtime from a Java interface containing JAX-WS annotations.  (Our
> current code for this uses Axis2, which doesn't understand JAX-WS
> annotations.)  The code we need would do the same as the JAX-WS tool
> wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
> be done at runtime and would generate WSDL to a stream instead of a file.
>
> From a quick look at both these options, it looks like it would be
> possible for the Tuscany runtime to call into code from either CXF or
> the JAX-WS tools to do the generation.  However, this wouldn't be using
> any official APIs but would require a bit of copying and adapting the code
> that is currently there.  Of the two options, the CXF code seems rather
> easier to work with.  Also, since CXF is an Apache project, Tuscany could
> contribute back to CXF any modifications we make to enable this.
>
> Before I launch into actually trying to get this working, does anyone
> else have comments or suggestions on the general approach?
>
>  Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Jean-Sebastien Delfino <js...@apache.org>.
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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
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:nash@apache.org]
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:nash@apache.org]
> 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 to
> solve this problem.  We also need the ability to generate a WSDL interface
> at runtime from a Java interface containing JAX-WS annotations.  (Our
> current code for this uses Axis2, which doesn't understand JAX-WS
> annotations.)  The code we need would do the same as the JAX-WS tool
> wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
> be done at runtime and would generate WSDL to a stream instead of a file.
>
>>From a quick look at both these options, it looks like it would be
> possible for the Tuscany runtime to call into code from either CXF or
> the JAX-WS tools to do the generation.  However, this wouldn't be using
> any official APIs but would require a bit of copying and adapting the code
> that is currently there.  Of the two options, the CXF code seems rather
> easier to work with.  Also, since CXF is an Apache project, Tuscany could
> contribute back to CXF any modifications we make to enable this.
>
> Before I launch into actually trying to get this working, does anyone
> else have comments or suggestions on the general approach?
>
>   Simon
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Simon Nash <na...@apache.org>.
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:nash@apache.org]
> 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 to
> solve this problem.  We also need the ability to generate a WSDL interface
> at runtime from a Java interface containing JAX-WS annotations.  (Our
> current code for this uses Axis2, which doesn't understand JAX-WS
> annotations.)  The code we need would do the same as the JAX-WS tool
> wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
> be done at runtime and would generate WSDL to a stream instead of a file.
> 
>>>From a quick look at both these options, it looks like it would be
> possible for the Tuscany runtime to call into code from either CXF or
> the JAX-WS tools to do the generation.  However, this wouldn't be using
> any official APIs but would require a bit of copying and adapting the code
> that is currently there.  Of the two options, the CXF code seems rather
> easier to work with.  Also, since CXF is an Apache project, Tuscany could
> contribute back to CXF any modifications we make to enable this.
> 
> Before I launch into actually trying to get this working, does anyone
> else have comments or suggestions on the general approach?
> 
>   Simon
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
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?

cherrs clemens

-----Original Message-----
From: Simon Nash [mailto:nash@apache.org]
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 to
solve this problem.  We also need the ability to generate a WSDL interface
at runtime from a Java interface containing JAX-WS annotations.  (Our
current code for this uses Axis2, which doesn't understand JAX-WS
annotations.)  The code we need would do the same as the JAX-WS tool
wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
be done at runtime and would generate WSDL to a stream instead of a file.

From a quick look at both these options, it looks like it would be
possible for the Tuscany runtime to call into code from either CXF or
the JAX-WS tools to do the generation.  However, this wouldn't be using
any official APIs but would require a bit of copying and adapting the code
that is currently there.  Of the two options, the CXF code seems rather
easier to work with.  Also, since CXF is an Apache project, Tuscany could
contribute back to CXF any modifications we make to enable this.

Before I launch into actually trying to get this working, does anyone
else have comments or suggestions on the general approach?

  Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Simon Nash <na...@apache.org>.
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 to
solve this problem.  We also need the ability to generate a WSDL interface
at runtime from a Java interface containing JAX-WS annotations.  (Our
current code for this uses Axis2, which doesn't understand JAX-WS
annotations.)  The code we need would do the same as the JAX-WS tool
wsgen -wsdl, or the CXF tool java2wsdl, except that the processing would
be done at runtime and would generate WSDL to a stream instead of a file.

>From a quick look at both these options, it looks like it would be
possible for the Tuscany runtime to call into code from either CXF or
the JAX-WS tools to do the generation.  However, this wouldn't be using
any official APIs but would require a bit of copying and adapting the code
that is currently there.  Of the two options, the CXF code seems rather
easier to work with.  Also, since CXF is an Apache project, Tuscany could
contribute back to CXF any modifications we make to enable this.

Before I launch into actually trying to get this working, does anyone
else have comments or suggestions on the general approach?

  Simon


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
https://issues.apache.org/jira/browse/TUSCANY-2033

and 

https://issues.apache.org/jira/browse/TUSCANY-2034 

latter one contains the patch

/clemens

-----Original Message-----
From: Clemens Utschig - Utschig [mailto:clemens.utschig@oracle.com]
Sent: Friday, February 08, 2008 4:14 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


thx jean - this is key for SDO via SOAP interop (the complex case)  - hence I guess also pretty interesting ..

-- have you seen the other email today, with the bug in the Java2WSDL resolver and the NPE?

/clemens

-----Original Message-----
From: Jean-Sebastien Delfino [mailto:jsdelfino@apache.org]
Sent: Friday, February 08, 2008 4:10 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


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.
--
Jean-Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


RE: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
thx jean - this is key for SDO via SOAP interop (the complex case)  - hence I guess also pretty interesting ..

-- have you seen the other email today, with the bug in the Java2WSDL resolver and the NPE?

/clemens

-----Original Message-----
From: Jean-Sebastien Delfino [mailto:jsdelfino@apache.org]
Sent: Friday, February 08, 2008 4:10 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


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.
--
Jean-Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Jean-Sebastien Delfino <js...@apache.org>.
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.
-- 
Jean-Sebastien

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Tuscany: Axis2 codegen bug? - java interface exposed as service, annoted with javax.xml.ws.RequestWrapper(...) is not honoring the namespace

Posted by Clemens Utschig - Utschig <cl...@oracle.com>.
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

Re: 答复: [virus report]raising virus warning when mvn tuscany source codes

Posted by Simon Laws <si...@googlemail.com>.
On Dec 20, 2007 2:28 AM, tao.youzt <ta...@alipay.com> wrote:

>
> It sounds too bad , anyone who know the reason?
>
> ――――――――――――――――――――――
> 尤占涛(Tony)
> Alibaba Technology Department.
> Mobile:13732275093
> ――――――――――――――――――――――
>
>
> -----邮件原件-----
> 发件人: 王洪伟 [mailto:david.pku.bj@gmail.com]
> 发送时间: 2007年12月20日 9:54
> 收件人: tuscany-dev
> 主题: [virus report]raising virus warning when mvn tuscany source codes
>
> Hi,all
> This morning, I checked out tuscany java sources from apache .
> Some virus warnings raised when I mvned it.
>
> Detail information as follows:
> =========================
> 扫描类型:自动防护 扫描
> 事件:发现安全风险!
> 威胁:W32.Pagipef.I!html
> 文件:
>
> D:\maven-sca\java\sdo\sample\target\classes\org\apache\tuscany\samples\sdo\o
> verview.html
> 位置:未知存储
> 计算机:DAVID
> 用户:DAVID\ce
> 采取的操作:清除 成功 : 拒绝访问
> 发现的日期:2007年12月20日  9:23:23
> =======================================
>
> [1] http://www.tuscany.org.cn/images/9/9e/VirusReport.JPG
>
>
> Regards,
>
> david
>
Hi

Firstly can I ask where you got the Tuscany files from, for example, are
these from a release downloaded from the Apache Tuscany Incubator web site
or are these files checked out from SVN or are they from somewhere else?

Looking at some description of the problem you seem to be having [1] it does
look like this has the potential to affect HTML files and the like. However
it's not obvious by manual inspection that the files you are having problems
with are affected in the Tuscany code base.

I'm need to determine whether this is a problem in the Tuscany code base or
a problem with these files being affected on your local machine. Can you
compare the files listed in the JPG you reference with the files in SVN. The
files are fairly short so a manual comparison with what is in SVN, for
example, see [2] for overview.html,  may highlight if any HTML tags have
been added.

I just had a quick chat with Kelvin who knows about the SDO files at least
and I think he will generate from MD5  signatures for the files he has for
you to do a more automated check.

Regards

Simon

[1]
http://www.symantec.com/security_response/writeup.jsp?docid=2007-112909-3431-99&tabid=2
[2]
http://svn.apache.org/repos/asf/incubator/tuscany/java/sdo/sample/src/main/java/org/apache/tuscany/samples/sdo/overview.html