JaxRpcPortProxyFactoryBean and objects from WSDL
Hi Springers.
Have the following question.
The wsdl document from the webservice defines some object which has to be passed to the webservice invoke method. Like this:
Code:
<wsdl:definitions targetNamespace="http://10.68.5.231:8080/axis/services/MyRequestService">
-
<!--
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
-->
<wsdl:types>
<schema targetNamespace="http://packaging.framework.com">
<import namespace="http://10.68.5.231:8080/axis/services/MyRequestService"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="MyRequest">
<sequence>
<element name="auxData" nillable="true" type="soapenc:string"/>
<element name="clientKey" nillable="true" type="soapenc:string"/>
<element name="datXKey" nillable="true" type="soapenc:string"/>
<element name="encoding" nillable="true" type="soapenc:string"/>
<element name="password" nillable="true" type="soapenc:string"/>
<element name="schemaName" nillable="true" type="soapenc:string"/>
<element name="timeout" nillable="true" type="soapenc:int"/>
<element name="username" nillable="true" type="soapenc:string"/>
</sequence>
</complexType>
So. when I used AXIS the class com.framework.packaging.MyRequest had been generated, compiled and jared. And I was able to use this class in the application, to populate all necessary fields and then pass it as an argument to the webservice method.
Using JaxRpcPorProxyFactoryBeans this class will be generated at runtime. So here is the question. How can I use this runtime generated class to populate all its properties.
I tried to create a bean in the application context xml file
Code:
<bean id="myRequest" class="com.framework.packaging.MyRequest"/>
but when I start the application server the ClassNotFoundException is thrown.
Thanks in advance.