Any chance anyone can point me in the right direction on this one? I'm
trying to convert from axis 1.4 so we don't have to go the axis2 route
and this is going to be a show stopper. :(
 
I've also tried with <String,String> (thinking the complex type was the
problem) and get the same results with or without the aegis mapping.
 
I forgot to include the environment:
 
XFire 1.2.4
Java 1.5
Tomcat 5.5.16
 
-  Doug

________________________________

From: Bell, Douglas [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 23, 2007 10:51 AM
To: [email protected]
Subject: [xfire-user] aegis mapping and Map question


I am using aegis to define the contents of a Map on a object, but keep
getting a anyType2anyTypeMap. I've included the object, aegis mapping,
and the relevant fragment of the resulting WSDL.
 
 
The Object
--------------------------------------------------------------
public class ImpactDetail {

private GUID original;

private Map<GUID, String> impacts;

public ImpactDetail()  { 

}

public Map<GUID, String> getImpacts() {

    return impacts;

}

public void setImpacts(Map<GUID, String> impacts) {

    this.impacts = impacts;

}

public GUID getOriginal() {

    return original;

}

public void setOriginal(GUID original) { 

    this.original = original;

}

The aegis mapping (GUID is a simple object with only a String value)
--------------------------------------------------------------
<mappings>
<mapping>

<method name="getImpacts">

<return-type
keyType="com.boingo.enterprise.configuration.manager.domain.id.GUID"
componentType="java.lang.String"/>

</method>

</mapping>

</mappings>

 
The relevant WSDL fragment
--------------------------------------------------------------:
 
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://impact.domain.manager.configuration.enterprise.b
oingo.com">
-
<http://10.103.0.67:13760/configuration-manager/services/ConfigurationMa
nagerService?wsdl#>  <xsd:complexType name="ArrayOfImpactDetail">
-
<http://10.103.0.67:13760/configuration-manager/services/ConfigurationMa
nagerService?wsdl#>  <xsd:sequence>
  <xsd:element maxOccurs="unbounded" minOccurs="0" name="ImpactDetail"
nillable="true" type="ns4:ImpactDetail" /> 
  </xsd:sequence>
  </xsd:complexType>
-
<http://10.103.0.67:13760/configuration-manager/services/ConfigurationMa
nagerService?wsdl#>  <xsd:complexType name="ImpactDetail">
-
<http://10.103.0.67:13760/configuration-manager/services/ConfigurationMa
nagerService?wsdl#>  <xsd:sequence>
  <xsd:element minOccurs="0" name="impacts" nillable="true"
type="tns:anyType2anyTypeMap" /> 
  <xsd:element minOccurs="0" name="original" nillable="true"
type="ns1:GUID" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:schema>

Reply via email to