• Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap Response not getting in ASP page  RSS feed

 
Harsh Cap
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using Asp as my client application which send me the request in soapXml format. I process that request in servlet and send back the soapResponse XML. I am creating soap response manually and write it to the Output Stream.

My problem is when I send my response like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?><soapenv xmlns="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ro="http://service.dispute.dms.fdi.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Body><processRequestResponse xmlns="http://firstdata.com.au/DMS/service"><processRequestReturn><CopyDisputeResponse><ro:caseType>121</ro:caseType><ro:entityId>222</ro:entityId><ro:deviceType>333</ro:deviceType><ro:disputeType>444</ro:disputeType><ro:isownTerminal>true</ro:isownTerminal><ro:textId>false</ro:textId><ro:issuer>issuer</ro:issuer><ro:accquirer>accquirer</ro:accquirer></CopyDisputeResponse></processRequestReturn></processRequestResponse></Body></soapenv>

My asp get the response and I parsed this XML in my ASP code. But in the above response if you see the Envelop element is not present. When i try to send response with the soap envelop like this :

<?xml version="1.0" encoding="UTF-8" standalone="no"?><soapenv:Envelop xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ro="http://service.dispute.dms.fdi.com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><processRequestResponse xmlns="http://firstdata.com.au/DMS/service"><processRequestReturn><CopyDisputeResponse><ro:caseType>121</ro:caseType><ro:entityId>222</ro:entityId><ro:deviceType>333</ro:deviceType><ro:disputeType>444</ro:disputeType><ro:isownTerminal>true</ro:isownTerminal><ro:textId>false</ro:textId><ro:issuer>issuer</ro:issuer><ro:accquirer>accquirer</ro:accquirer></CopyDisputeResponse></processRequestReturn></processRequestResponse></soapenv:Body></soapenv:Envelop>

I am not getting anyting in ASP. Please help me out.

Regards
Harsh Mudgal
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!