[
https://issues.apache.org/jira/browse/TUSCANY-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Raymond Feng resolved TUSCANY-1710.
-----------------------------------
Resolution: Invalid
The SCA spec says if a java class implements a remotable interface and there is
no @Service annotation, the remotable interface will be used as a service. The
implementation class can have more operations than the service interface and by
design we can just expose a subset of the operations. Meanwhile, the java class
cannot be used for remotable interfaces.
I agree the exception is probably not so good. I would appreciate you open
another JIRA to track that.
Thanks,
Raymond
> Get service by class's name will cause error when add a binding.ws
> ------------------------------------------------------------------
>
> Key: TUSCANY-1710
> URL: https://issues.apache.org/jira/browse/TUSCANY-1710
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Axis Binding Extension
> Affects Versions: Java-SCA-Next
> Environment: win jdk1.6 eclipse tuscany svn 575578
> Reporter: gengshaoguang
> Fix For: Java-SCA-Next
>
>
> I just found this:
> I finished a component with <implementation.java class="[a.b.C]"> and it
> works with
> getService(a.b.C.class,"[component's name]");
> Then I added a <service><binding.ws/></service> to the above component, and
> modified a.b.C to implements a @Remotable interface a.b.I, and I will have to
> use:
> getService(a.b.I.class,"[component's name]");
> Otherwise(if I don't change the first parameter), I will get an will known
> error: "Can't handle mixed payloads betweem OMElements and other types".
> This will bring a discomfort to a user: when they deside to expose an exist
> resource to outside consumer, they need to change their own code!
> Did some one get into the same scenario? Of course, I myself might did some
> incorrect.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]