1. You can as long as the Request and Response correspond to different web
services and their namespace are different. That is: you can't if you have a
web service with a method like
public Response doIt(Request);
2. Dunno.. I thought that worked :D
On 3/13/07, Andrey Utis <[EMAIL PROTECTED]> wrote:
Hi all,
I have a couple Aegis questions:
1. I think the answer is No, but I'll ask anyway:
Suppose I have a class which is part of two different XML elements, and I
want this class to map different properties for the different elements. Is
there a way to do this in Aegis? For example:
public class ServiceRequest {
private Item itemReq;
}
public class ServiceResponse {
private Item itemResp;
}
public class Item {
private String action;
private String id;
}
I want the schema for ServiceRequest itemReq property to include both
action and id properties, but for ServiceResponse I only want to include the
id property. Can I do this with Aegis? It seems to me that I cannot, since
you cant really create two mapping files for one class.
2. I want one of my fields to be an attribute in XML, instead of an
element.
Here is my mapping:
<
mappings>
<mapping>
<property name="requestTime" style="attribute" />
<property name="userInfo" minOccurs="1"/>
</mapping> </
mappings>
But when I generate the WSDL, I get this schema bit:
<xsd:sequence>
* * <xsd:element name="*userInfo*" type="*ns1:UserInfo*" />
* * <xsd:element minOccurs="*0*" name="*requestDtm*" type="*xsd:dateTime*
" />
</xsd:sequence>
Any ideas why? How can I make requestDtm an attribute?
Thanks
Andrey
------------------------------
Don't be flakey. Get Yahoo! Mail for
Mobile<http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail>and
always stay
connected<http://us.rd.yahoo.com/evt=43909/*http://mobile.yahoo.com/mail>to
friends.