[jboss-user] [JBossWS] - How to get complex types fully defined by exposed WSDL
mick_mcgovern@hotmail.com
do-not-reply at jboss.com
Thu Aug 7 04:02:19 EDT 2008
Hi,
I've got a web service EJB with a method signature that includes some of our own classes.
Problem is that the exposed WSDL defines these classes as complex but then does not provide the detailed definition - meaning that a client would not be able to dynamically call the method based purely on reading the WSDL.
Is there a way to get the exposed WSDL to fully define the complex types?
Code fragment and generated WSDL follows.
Thanks
JBoss AS 4.2.0
@WebService(name = "EnquireAccountServiceBean", targetNamespace = ServiceConstants.WEB_SERVICE_NAME_SPACE, serviceName = "EnquireAccountServiceBean")
@WebContext(contextRoot = "/XMLTranServiceBeanService")
@SOAPBinding(style = SOAPBinding.Style.RPC)
@Stateless(name = "EnquireAccountServiceBean")
public class EnquireAccountServiceBean extends BaseServiceBean implements EnquireAccountService {
@WebMethod
public AccountBalance enquireAccountBalance(TransactionInfo info, String accountNum) {
......
Exposed WSDL:
<xs:schema targetNamespace="http://www.whatever.com" version="1.0">
<xs:complexType name="transactionInfo"/>
<xs:complexType name="accountBalance"/>
</xs:schema>
......
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169214#4169214
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169214
More information about the jboss-user
mailing list