Regarding the SOAP message Request and Response
-
Dear Friend, Thanks for being her for help us.... I am in big trouble now, as i have to create a webservice for one of my client for some travel related web site, the requirement is to receive soap request from one of the client and send response...., i don't know how to work on SOAP just have knowledge of WebService but don't know how to use SOAP in that.... the requirement specification is as follows WebServices Interfacing with Customer should support the following HTTP Headers Accept: text/html Accept: multipart/* Content-Length: <some arbitrary size> Content-Type: text/xml; charset=utf-8 SAMPLE REQUEST <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAPENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"> SOAP-ENV:Body <ns2:ShowHotelDetail xmlns:ns2="http://ws"> <username xsi:type="xsd:string">xyz</username> <password xsi:type="xsd:string">abc@123</password> <hotelrefno xsi:type="xsd:string">APQR1234</refno> <sessionId xsi:type="xsd:string">12379975773148QM750WP9R</sessionId> </ns2:ShowRemittanceDetail> </SOAP-ENV:Body> </SOAP-ENV:Envelope> SAMPLE RESPONSE <?xml version='1.0' encoding='UTF-8'?> <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:ShowHotelDetailResponse xmlns:ns2="http://ws"> <ShowHotelDetailReturn>12379975773148QM750WP9R|HOTEL XYZ|0|10000.78|pascalachenita| carmen|||||street santander, number 12, no 78-90 street,Mumbai|+12121212121</ShowHotelDetailReturn> </ns2:ShowHotelDetailResponse> </S:Body> </S:Envelope> Please Help me the process is we have the list of Inforamtion about the hotels they send us request for selected hotel we will send them response with "|" delimeter text string as ShowHotelDetailReturn in dataset.. Me created this web service usting .Net Technology and C# language.. but at custoemr end its giving error as followed. <?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 soap:Fault<faultcode>soap:Client&