Axis2 POJO deployment support some configuration options through a
customized WSDL file such as HTTP binding options, but it does not support
up to your exceptions. To receive such flexibility you have to use one of a
contract first approach using Axis2 code gen tool ( WSDL2JAVA).

Also FYI WS-* standards discourage to use attributes within the payload.

Thanks !


On Tue, Apr 17, 2012 at 11:39 PM, Trenton D. Adams <tre...@athabascau.ca>wrote:

> So, is it safe to assume that I can't actually modify the WSDL result?
>
> Is it also safe to assume I can't enforce a "required" parameter with
> axis2 1.6.x when using a POJO?
>
> Le 12-04-10 05:17 PM, Trenton D. Adams a écrit :
>
>  Hi Guys,
>>
>> I'm using Axis2 1.6.x.
>>
>> I've customized my WSDL, and put the file in META-INF/ of my service
>> AAR. That's all peachy, and the web service returns my custom WSDL, but
>> it doesn't actually change the results of the web service call.
>>
>> For example, I have a return from a POJO method, which is a Java object.
>> It's returned fine, but the name of the element is "return", instead of
>> the name I've given in my custom WSDL.
>>
>> I've also customized one of the types to return content as attributes,
>> rather than elements, something like the following, but it's still
>> returning them as elements...
>>
>> <xs:element minOccurs="0" name="mailingAddress" nillable="true"
>> type="ax25:Address"/>
>>
>> <xs:complexType name="Address">
>> <xs:simpleContent>
>> <xs:extension base="xs:string">
>> <xs:attribute type="xs:string" name="zipCode" use="optional"/>
>> <xs:attribute type="xs:string" name="streetLine1" use="optional"/>
>> <xs:attribute type="xs:string" name="stateCode" use="optional"/>
>> <xs:attribute type="xs:string" name="city" use="optional"/>
>> <xs:attribute type="xs:string" name="countryCode" use="optional"/>
>> <xs:attribute type="xs:string" name="streetLine2" use="optional"/>
>> <xs:attribute type="xs:string" name="streetLine3" use="optional"/>
>> </xs:extension>
>> </xs:simpleContent>
>> </xs:complexType>
>>
>>
>> How do I rectify these issues?
>>
>> Thanks.
>>
>>
>
> --
> Trenton D. Adams
> Senior Systems Analyst/Web Software Developer
> Navy Penguins at your service!
> Athabasca University
> (780) 675-6195
> :wq!
>
> --
>   This communication is intended for the use of the recipient to whom it
>   is addressed, and may contain confidential, personal, and or privileged
>   information. Please contact us immediately if you are not the intended
>   recipient of this communication, and do not copy, distribute, or take
>   action relying on it. Any communications received in error, or
>   subsequent reply, should be deleted or destroyed.
> ---
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> java-user-unsubscribe@axis.**apache.org<java-user-unsubscr...@axis.apache.org>
> For additional commands, e-mail: java-user-h...@axis.apache.org
>
>


-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

Reply via email to