hi all, i am using Apache SOAP to write Javabase soap client. The Java based soap client is talking to .NET based web service. i am getting following error.
Caught SOAPException (SOAP-ENV:Client): No Deserializer found to deserialize a 'http://tempuri.org/:AuthorisePaymentResult' using encoding style 'null'. i tried to debug the issue using TcpTunnelGUI i am getting below request and response.. ******************** REQUEST**************** POST /PaymentAuthorisation/PaymentAuthorisation/PaymentAuthorisation.asmx HTTP/1.0 Host: 192.168.1.7:8081 Content-Type: text/xml;charset=utf-8 Content-Length: 927 SOAPAction: "http://tempuri.org/AuthorisePayment" Accept-Encoding: gzip Authorization: Basic YWRtaW5pc3RyYXRvcjpmbGlwLnNpdA== <?xml version='1.0' encoding='UTF-8'?> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns1:AuthorisePayment xmlns:ns1="http://tempuri.org" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <InputXML xsi:type="xsd:string"><Input_Message><Operational><Application_Identification><AppId>A2G</AppId></Application_Identification></Operational><Data><Amount>123567.12</Amount><CardNumber>12345123451234512345</CardNumber><DateExpiry>1104</DateExpiry><TxnType>P</TxnType><TxnRef>1234567812345678123456781234567812345678123456781234567812345678</TxnRef></Data></Input_Message></InputXML> </ns1:AuthorisePayment> </SOAP-ENV:Body> </SOAP-ENV:Envelope> **********************RESPONSE************** Content-Type: text/xml; charset=utf-8 Content-Length: 881 <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><AuthorisePaymentResponse xmlns="http://tempuri.org/"><AuthorisePaymentResult><?xml version="1.0" encoding="UTF-8"?><Output_Message><Status_Information><Status>Error</Status><Record_Count>0</Record_Count><Error>PaymentAuthorisation.InputValidateXML: The 'Operational' element is not declared. An error occurred at file:///C:/Inetpub/wwwroot/PaymentAuthorisation/XmlDefinitions/PaymentAuthorisation_Input.xsd(10, 6). XMLSchema: PaymentAuthorisation_Input.xsd InputXML: </Error></Status_Information></Output_Message></AuthorisePaymentResult></AuthorisePaymentResponse></soap:Body></soap:Envelope> I am getting an error on client side as Caught SOAPException (SOAP-ENV:Client): No Deserializer found to deserialize a ' http://tempuri.org/:AuthorisePaymentResult' using encoding style 'null'. please help me out to resolve this issue. Thx Nilesh