Hi Deepal, Thanks for the answer. The trouble is, we have a number of other special types (e.g. X509Certificate, Document) which will also require special treatment.
Perhaps I can patch Axis to allow custom type mappings to be specified as in Axis 1. Where would I do that - in the Axis kernel itself or with a module? Alternatively, if I generate the WSDL ahead of time and store it in the .aar, will it still get WS-Policy annotations added to it? These are dynamic, and change as the service is reconfigured. Thanks, On Mon, 17 Sep 2007 16:33:10 +0530, Deepal jayasinghe wrote: > Hi Thomas , > cant you do this with just string or please write your own bean to > represent EPR related data. If you use Axis2 EndpointReference when > generating wsdl (as you have specified) it will show all the fields in > the EndpointReference class using java reflection and there is no way > to avoid that. Therefore writing ur own EPR class will help in the case. > > Thanks > Deepal. >> Hi, >> >> I'm trying to upgrade our services to use Axis 2 (we're currently using >> Axis 1.4). >> >> However, I'm having some trouble with methods which take or return >> WS-Addressing EPRs. e.g. on a factory service we have: >> >> public EndpointReference createResource(String label); >> >> The generated WSDL looks like this: >> >> <xs:schema xmlns:ax268="http://addressing.axis2.apache.org/xsd" >> xmlns:ax269="http://util.java/xsd" attributeFormDefault="qualified" >> elementFormDefault="qualified" >> targetNamespace="http://addressing.axis2.apache.org/xsd"> >> <xs:import namespace="http://util.java/xsd"/> >> <xs:complexType name="EndpointReference"> >> <xs:sequence> >> <xs:element minOccurs="0" name="address" nillable="true" >> type="xs:string"/> >> >> <xs:element minOccurs="0" name="addressAttributes" nillable="true" >> type="xs:anyType"/> >> <xs:element minOccurs="0" name="allReferenceParameters" nillable="true" >> type="ns14:Map"/> >> <xs:element minOccurs="0" name="attributes" nillable="true" >> type="xs:anyType"/> >> <xs:element minOccurs="0" name="extensibleElements" nillable="true" >> type="xs:anyType"/> >> <xs:element minOccurs="0" name="logCorrelationIDString" nillable="true" >> type="xs:string"/> >> <xs:element minOccurs="0" name="metaData" nillable="true" >> type="xs:anyType"/> >> <xs:element minOccurs="0" name="metadataAttributes" nillable="true" >> type="xs:anyType"/> >> <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/> >> <xs:element minOccurs="0" name="referenceParameters" nillable="true" >> type="ns14:Map"/> >> >> </xs:sequence> >> </xs:complexType> >> </xs:schema> -- Dr Thomas Leonard IT Innovation Centre 2 Venture Road Southampton Hampshire SO16 7NP Tel: +44 0 23 8076 0834 Fax: +44 0 23 8076 0833 mailto:[EMAIL PROTECTED] http://www.it-innovation.soton.ac.uk --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
