[JBossWS] - Two services with same portname
by jaap.taal
When I deploy two services with the same method name inside one war file something strange happens:
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
| public class EchoListString {
|
| @WebMethod
| public List<String> echo(List<String> myList) {
| return myList;
| }
|
| }
|
and
| @WebService
| @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
| public class EchoListBean {
|
| @WebMethod
| public List<BasicBean> echo(List<BasicBean> myList) {
| return myList;
| }
|
| }
|
The echo input xsd (as well as the output) which is generated inside the wsdl is:
<xs:complexType name="echo">
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="arg0" type="tns:basicBean" />
</xs:sequence>
</xs:complexType>
the tns:basicBean is used instead of xs:string!
When I change the name of either EchoListString.echo EchoListBean.echo, everything is normal.
I think it's a bug, but i'm not sure!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041670#4041670
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041670
17 years, 8 months
[JBossWS] - Using (Hash)Map in wrapper class
by jaap.taal
I'm using jboss-4.2.0.CR2 with jbossws-1.2.1.GA
I'm trying to deploy the following simple echo webservice.
| @WebService()
| @SOAPBinding(style = SOAPBinding.Style.RPC)
| public class EchoMapSSTest {
|
| @WebMethod
| public Map<String, String> echoMapSS(Map<String, String> myMap) {
| return myMap;
| }
| }
|
JBoss gives the following error message:
... 28 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.util.Map is an interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at java.util.Map
The JAXB2.0 documentation clearly states that java.util.Map MUST be supported, so I think I'm doing something wrong?
Please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041665#4041665
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041665
17 years, 8 months
[EJB 3.0] - In relation to Entity hierarchy and EntityManager's behaviou
by pyctam
I found a strange behaviour of EntityManager for the Entity Hierarchy using JOINED strategy (I have not tested yet other strategies).
Let me assume that I have a hierarchy of joined entities derived from, for example, a Vehicle base class:
| Vehicle
| / | \
| / | \
| / | \
| Ground Air Water
| / | \
| / | \
| / | \
| Airbus Boeing Cessna
| / | \
| / | \
| / | \
| B737 B747 B777
|
When I'm trying to remove a Vehicle entity, entity manager removes all related child records from db (Vehicle->Air->Boeing->B747). It's OK.
When I'm trying to remove a B747 entity, entity manager also removes all ancestor records from db (including Boeing, Air and Vehicle), but I don't need it :-(. I just tried to remove only B747 record, why entity manager supposed that I need to remove all ancestors too? I think that this approach is not right. Because, when I want to remove a B747 record only from db (for example an ailiner with registration number XXXXXX), I didn't want to remove all related ancestors include Vehicle.
When I want to remove just Boeing related records from my db, it means that I just wanted to remove only Boeing records including all its childs (B737, B747 and B777), but not its anchestors (Air and Vehicle).
if you think that my thougts on this subject is not on right way or do not cover OOP concepts, please suggest me some resources and will try to study them to understand inheritance from yours point of view.
--
rustam bogubaev
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041664#4041664
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041664
17 years, 8 months