So how do I set up the mapping if I have this in different web services? As far
as I can tell, you can only create one mapping per class, since it has to be in
the same package and have the same name as the class. Unfortunately, Aegis
documentation is almost non-existant, so I have to ask what may seem like
really simple questions :)
Andres Bernasconi <[EMAIL PROTECTED]> wrote:
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 and
always stay connected to friends.
---------------------------------
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel
bargains.