Thanks Anne.
As Dims and you suggested, i was successful to write a wsdl, write a schema
into the wsdl, then perform wsdl2java, then edit the skeleton to put
businesslogic and finally i was able to call the service from a MS Excel
Client.
Thanks for your help towards this.
But, now i have a issue as follows:
1.
I have included the schema definition for my elements in wsdl as follows:
<xs:element name="CUSIP">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
Since im using the simpleType, wsdl2java ABD framework generates individual
java classes for each such element.
I have 190 + elements, so it creates 190+ java classes.
I removed the simpletype for the above cusip and avoided restriction as
follows:
<xs:element name="CUSIP" type="xs:string"/>
Then i cannot see any class created by the wsdl2java for CUSIP. I could see
the get/set methods in the parent element class itself.
So, my question is: How to avoid creating multiple classes for each element,
provided if i want to use restriction based validation?
2.
Even though i had put restriction earlier and sent a CUSIP value > 100
characters there was no validation fired at the wsdl level. Why is this?
Why is that the Schema validation present inside the wsdl not firing?
Am i doing something wrong anywhere in the implementation.
I have attached the wsdl for reference (located at the end of this thread).
Your help towards this would be much appreciable.
Thanks,
Kiran Kumar. http://www.nabble.com/file/6119/SecurityRequestV2.wsdl
SecurityRequestV2.wsdl
--
View this message in context:
http://www.nabble.com/-AXIS2--Which-binding-framework-should-i-use-for-complex-xml-handling-tf3137320.html#a8716986
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]