[JBoss JIRA] Created: (JBWS-1795) Type Substitution doesn't work with Schema2Java Client approach
by Markus Schumpa (JIRA)
Type Substitution doesn't work with Schema2Java Client approach
---------------------------------------------------------------
Key: JBWS-1795
URL: http://jira.jboss.com/jira/browse/JBWS-1795
Project: JBoss Web Services
Issue Type: CTS Challenge
Security Level: Public (Everyone can see)
Components: jbossws-jaxrpc, jbossws-jaxws, tools-jaxrpc, tools-jaxws
Affects Versions: jbossws-2.0.1, jbossws-2.0.0
…
[View More]Environment: WindowsXP, JDK5U11, JBoss4.2.1
Reporter: Markus Schumpa
I have written a web service with a parameter and a return value.
the method is like:
ListLocation calculate (ListLocation){...}
The parameter is something like:
class ListLocation {
private List<LocationImpl> list;
}
class LocationImpl{...}
class Cabin extends LocationImpl{...}
class TechCabin extends LocationImpl{...}
so I added the @XmlSeeAlso ({Cabin.class, TechCabin.class}) annotation to the LocationImpl class.
I can now deploy the web service and the wsdl gets generated in a proper way.
The first thing I did to test the service was writting a simple client which creates a Cabin and a TechCabin instance and adds these two instances to the ListLoaction list and passes it to the web service. For this I used the classes I coded.
With this setup everything worked fine and the service was able to cast the list members to the proper type. So the type substitution worked well.
But I need the test the Schema2Java approach, too.
So I consumed the WSDL with wsconsume and the -t 2.1 switch.
(wsconsume -k -p com.titan.domain.generated -w http://127.0.0.1:8080/OR19.1TC/TravelAgentBean?wsdl -s d:\TC\source1\ -o d:\TC\output1\ -t 2.1 http://127.0.0.1:8080/OR19.1TC/TravelAgentBean?wsdl)
I addopted the client to use the generated classes. But here the type substitution doesn't work. The list only contains LocationImpl instances.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[View Less]
17 years, 6 months
[JBoss JIRA] Created: (JBWS-1817) Investigate wsse with jaxws dispatch
by Thomas Diesler (JIRA)
Investigate wsse with jaxws dispatch
------------------------------------
Key: JBWS-1817
URL: http://jira.jboss.com/jira/browse/JBWS-1817
Project: JBoss Web Services
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
Fix For: jbossws-2.0.2
I'm having a bit of trouble figuring this out - I'm trying to create a simple standalone dispatch for communication with an already …
[View More]set up webservice. I got everything working as expected if I use no security system - the problem arises when trying to invoke a request message involving an WSSecurityHandlerClient, resulting in a:
Code:
javax.xml.ws.soap.SOAPFaultException: org.jboss.ws.core.CommonSOAPFaultException: This service requi
res <wsse:Security>, which is missing.
at org.jboss.ws.core.jaxws.client.DispatchSOAPBinding.getReturnObject(DispatchSOAPBinding.java:165)
at org.jboss.ws.core.jaxws.client.DispatchImpl.getReturnObject(DispatchImpl.java:290)
at org.jboss.ws.core.jaxws.client.DispatchImpl.invokeInternal(DispatchImpl.java:141)
at org.jboss.ws.core.jaxws.client.DispatchImpl.invoke(DispatchImpl.java:102)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[View Less]
17 years, 6 months