Hi Axis group,
Please help me to solve this..
I have a doc/literal web service. I am trying to invoke service methods based on XML QName. But I am not successful, always get the <faultstring>org.xml.sax.SAXException: Deserializing parameter 'getEventsRequestElement': could not find deserializer for type {http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd}getEventsRequestType</faultstring>
Here is my entry for this service in Server-config.wsdd file and I am using Axis 1.1
<service name="LoggingService" provider="java:RPC" style="Document" use="literal"> <parameter name="allowedMethods" value="*"/> <wsdlFile>…/log/Logging.wsdl</wsdlFile> <parameter name="className" value="DocLitLoggerImpl"/> <operation name="getEvents" qname="ns:getEventsRequestElement" xmlns:ns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd" returnQName="retNS:getEventsResponseElement" xmlns:retNS="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd" returnType="rtns:GetEventsResponseType" xmlns:rtns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd" > <parameter qname="tns:getEventsRequestElement" type="tns:getEventsRequestType" xmlns:tns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd"/> </operation>
http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd <typeMapping xmlns:ns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd" qname="ns:getEventsRequestType" languageSpecificType="java:com.hp.globalops.log.GetEventsRequestType" serializer="org.apache.axis.encoding.ser.castor.CastorSerializerFactory" deserializer="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory" encodingStyle=""/>
<typeMapping xmlns:ns="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd" qname="ns:getEventsResponseType" languageSpecificType="java:com.hp.globalops.log.GetEventsResponseType" serializer="org.apache.axis.encoding.ser.castor.CastorSerializerFactory" deserializer="org.apache.axis.encoding.ser.castor.CastorDeserializerFactory" encodingStyle=""/> </service>
This is my input soap message:
<soapenv:Body> <m:getEventsRequestElement xmlns:m="http://www.ws-i.org/SampleApplications/SupplyChainManagement/2002-08/LoggingFacility.xsd"> <m:DemoUserID>TestUserID</m:DemoUserID> </m:getEventsRequestElement> </soapenv:Body>
Also attaching my wsdl file and schema with this message.
Any help will be deeply appreciated.. Thanks, Ranjith Pillai. |
LoggingFacility.xsd
Description: LoggingFacility.xsd
Logging.wsdl
Description: Logging.wsdl