How to response XMl format using SOAP protocol
-
Hi Friends, I have created one Web Service which give output in following format. <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlnsoap="http://schemas.xmlsoap.org/soap/envelope/" xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlnssd="http://www.w3.org/2001/XMLSchema"> <soapody> <ShowResponse xmlns="http://abc.com/WS/service.asmx"> <ShowResult> <xschema id="NewDataSet" xmlns="" xmlnss="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urnchemas-microsoft-comml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> xs:complexType <xs:choice minOccurs="0" maxOccurs="unbounded"><xs:element name="ShowResponse"> xs:complexType <xsequence> <xs:element name="ShowReturn" msdata:Caption="ShowDetail" type="xstring" minOccurs "0" maxOccurs="unbounded"> <xs:element name="ShowResponse"> xs:complexType <xsequence> <xs:element name="ShowReturn" msdata:Caption="ShowDetail" type="xstring" minOccurs="0" /> </xsequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xschema> <diffgriffgram xmlns:msdata="urnchemas-microsoft-comml-msdata" xmlnsiffgr="urnchemas-microsoft-comml-diffgram-v1"> <NewDataSet xmlns=""> <ShowResponse diffgr:id="ShowResponse1" msdata:rowOrder="0" diffgr:hasChanges="inserted"> <ShowReturn>11iou3zzj1vfsy55lsietz45|3</ShowReturn> </ShowResponse> </NewDataSet> </diffgriffgram> </ShowResult> </ShowResponse> </soap> want to show the same output in following format <?xml version='1.0' encoding='UTF-8'?> <S:Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"> <Sody> <ns2showResponse xmlns:ns2="http://ws"> <ShowReturn>1248759429159ARY2265657989;/ShowReturn> </ns2showResponse> </Sody> Please help me regarding the same and tell me how to format soap message request response using Visual Studio 2005 IDE... Thanks and regards Sasmi