The error you originally posted said: <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Unmarshalling Error: cvc-elt.1: Cannot find the declaration of element 'Activating'.</faultstring> </soap:Fault>
but the closest element name in this WSDL is 'Activeren'. Typo? Andrew. 2009/4/24 venuireddy <[email protected]>: > > It's a bit difficult to provide the real wsdl (because of confidentiality) so > here is derived version > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions name="CvWebServiceService" > targetNamespace="http://gateway.test.company.nl/" > xmlns:tns="http://gateway.test.company.nl/" > 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="http://gateway.test.company.nl/" attributeFormDefault="unqualified" > elementFormDefault="unqualified" > targetNamespace="http://gateway.test.company.nl/"> > <xs:complexType name="activering"> > <xs:sequence> > <xs:element name="accountReferentie" type="xs:string"/> > </xs:sequence> > </xs:complexType> > <xs:element name="ophalenVersie" type="ophalenVersie"/> > <xs:complexType name="ophalenVersie"> > <xs:sequence/> > </xs:complexType> > <xs:element name="ophalenVersieResponse" type="ophalenVersieResponse"/> > <xs:complexType name="ophalenVersieResponse"> > <xs:sequence> > <xs:element minOccurs="0" name="versie" type="xs:string"/> > </xs:sequence> > </xs:complexType> > <xs:element name="activeren" type="activeren"/> > <xs:complexType name="activeren"> > <xs:sequence> > <xs:element minOccurs="0" name="Activering" type="activering"/> > </xs:sequence> > </xs:complexType> > <xs:element name="activerenResponse" type="activerenResponse"/> > <xs:complexType name="activerenResponse"> > <xs:sequence/> > </xs:complexType> > </xs:schema> > </wsdl:types> > <wsdl:message name="ophalenVersie"> > <wsdl:part name="parameters" element="tns:ophalenVersie"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="ophalenVersieResponse"> > <wsdl:part name="parameters" element="tns:ophalenVersieResponse"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="activeren"> > <wsdl:part name="parameters" element="tns:activeren"> > </wsdl:part> > </wsdl:message> > <wsdl:message name="activerenResponse"> > <wsdl:part name="parameters" element="tns:activerenResponse"> > </wsdl:part> > </wsdl:message> > <wsdl:portType name="TestService"> > <wsdl:operation name="ophalenVersie"> > <wsdl:input name="ophalenVersie" message="tns:ophalenVersie"> > </wsdl:input> > <wsdl:output name="ophalenVersieResponse" > message="tns:ophalenVersieResponse"> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="activeren"> > <wsdl:input name="activeren" message="tns:activeren"> > </wsdl:input> > <wsdl:output name="activerenResponse" message="tns:activerenResponse"> > </wsdl:output> > </wsdl:operation> > </wsdl:portType> > <wsdl:binding name="WebServiceServiceSoapBinding" type="tns:TestService"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="ophalenVersie"> > <soap:operation soapAction="" style="document"/> > <wsdl:input name="ophalenVersie"> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output name="ophalenVersieResponse"> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > <wsdl:operation name="activeren"> > <soap:operation soapAction="" style="document"/> > <wsdl:input name="activeren"> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output name="activerenResponse"> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > <wsdl:service name="WebServiceService"> > <wsdl:port name="TestServicePort" > binding="tns:WebServiceServiceSoapBinding"> > <soap:address location="http://localhost:9090/TestServicePort"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > The message > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:gat="http://gateway.test.company.nl/"> > <soapenv:Header/> > <soapenv:Body> > <gat:activeren> > <Activering> > <accountReferentie>?</accountReferentie> > </Activering> > </gat:activeren> > </soapenv:Body> > </soapenv:Envelope> > > > > > Andrew Clegg-2 wrote: >> >> 2009/4/24 venuireddy <[email protected]>: >> >>> Is there anybody who can explain this behavior or point me into a >>> direction >>> on how to fix it ? >> >> It's a bit difficult if you don't post your WSDL or an example message >> that causes the error :-) >> >> Andrew. >> >> -- >> :: http://biotext.org.uk/ :: >> >> > > -- > View this message in context: > http://www.nabble.com/Problem-with-enabling-Schema-Validation-tp23218029p23218429.html > Sent from the cxf-user mailing list archive at Nabble.com. > > -- :: http://biotext.org.uk/ ::
