You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by girish sonber <gi...@capgemini.com> on 2007/09/07 16:26:06 UTC
Simple front-end and xs:anyType
hi ,
this is my interface:
import com.src.capgemini.javapole.data.model.Party;
@SOAPBinding(use=SOAPBinding.Use.LITERAL, style=SOAPBinding.Style.DOCUMENT)
@WebService(name="WsParty",
targetNamespace="http://idserver.adc.capgemini.com/")
public interface WsParty {
@WebMethod(operationName="getAllParty", exclude=false)
@ResponseWrapper(className="com.capgemini.adc.idserver.GetAllPartyResponse",
localName="getAllPartyResponse",
targetNamespace="http://idserver.adc.capgemini.com/")
@RequestWrapper(className="com.capgemini.adc.idserver.GetAllParty",
localName="getAllParty",
targetNamespace="http://idserver.adc.capgemini.com/")
public List<Party> getAllParty();
}
and my wsdl file is
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="WsPartyService"
targetNamespace="http://idserver.adc.capgemini.com/"
xmlns:ns1="http://idserver.adc.capgemini.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://idserver.adc.capgemini.com/"
attributeFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="http://idserver.adc.capgemini.com/">
<xs:element name="getAllParty" nillable="true" type="tns:getAllParty"/>
<xs:element name="getAllPartyResponse" nillable="true"
type="tns:getAllPartyResponse"/>
<xs:complexType name="getAllPartyResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="getAllParty"/>
</xs:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://idserver.adc.capgemini.com/"
attributeFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="http://idserver.adc.capgemini.com/">
<xs:complexType name="party">
<xs:sequence>
<xs:element minOccurs="0" name="firstName" type="xs:string"/>
<xs:element name="internalId" type="xs:long"/>
<xs:element minOccurs="0" name="lastName" type="xs:string"/>
<xs:element name="partyUid" type="xs:long"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="getAllPartyResponse">
<wsdl:part name="result" element="ns1:getAllPartyResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getAllParty">
<wsdl:part name="parameters" element="ns1:getAllParty">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="WsParty">
<wsdl:operation name="getAllParty">
<wsdl:input name="getAllParty" message="ns1:getAllParty">
</wsdl:input>
<wsdl:output name="getAllPartyResponse"
message="ns1:getAllPartyResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WsPartyServiceSoapBinding" type="ns1:WsParty">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getAllParty">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="getAllParty">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getAllPartyResponse">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WsPartyService">
<wsdl:port name="WsPartyPort" binding="ns1:WsPartyServiceSoapBinding">
<soap:address location="http://localhost:9090/hello"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
here i think that
xs:complexType name="getAllPartyResponse">
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
xs:anytype shoul be of type party
and when i generate the implementation class i give me the error
return type is incompatible with the SEI .
please help
--
View this message in context: http://www.nabble.com/Simple-front-end-and-xs%3AanyType-tf4336455.html#a12556331
Sent from the cxf-user mailing list archive at Nabble.com.