Hi,
 
Lets say I define this method as webservice :--
 
public void aMethod(Collection c);
 
and from client, I intend to send my bean inside this collection. Although, I could register this bean (for example...SimpleBean.java) at the server-side in the WSDD though this :--
"<beanMapping qname="ns:MyBeanObject" xmlns:ns="myBeanNamespace"
             languageSpecificType="java:bus.hello.SimpleBean"/>"
 
but...the problem is...if I invoke the Java2WSDL tool (through ANT task) ...it just takes an Interface as input....where only the above method is defined. Thus..the tool will have NO knowledge
of any sort of Bean / object being sent inside this colleciton.
 
Consequently, the Stub generated by WSDL2Java tool will NOT contain the registration for the bean.
 
Currently, I am using a "browser-generated" (http://localhost/webapp/abcdservice?wsdl)  to generate the wsdl, because wsdl generated through this DOES contain
the complex type declared for my Bean. (Perhaps..this way..it takes the deployment info from server-config.wsdd).
 
How can I use the ANT task or command line invocation to include my own bean complex type within the wsdl?
 
Awaiting responses.
 
 
Thanks.
 

Reply via email to