Search code examples
vb.netwsdlasmx

HttpWebRequest works with only asmx or wsdl also


HttpWebRequest works with only asmx or wsdl also ?

https://incometaxindiaefiling.gov.in/e-FilingWS/ditws/Get26asInfo.wsdl can b used ? with following data for - HttpWebRequest

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:v="http://incometaxindiaefiling.gov.in/ditws/tds/v_1_0">
<soapenv:Header/>
<soapenv:Body>
<v:getTDSDetails>
<v:LoginInfo>
<v:userName>xxxxxxxxxx</v:userName>
<v:password>xxxxxxxxxx</v:password>
</v:LoginInfo>
<v:ClientInfo>
<v:pan>xxxxxxxxxx</v:pan>
<v:dob>xxxxxxxxxx</v:dob>
<v:assessmentYear>xxxxxxxxxx</v:assessmentYear>
</v:ClientInfo>
</v:getTDSDetails>
</soapenv:Body>
</soapenv:Envelope>

if not, how to get Response Envelope xml while consuming wsdl(service reference)


Solution

  • The WSDL exists as a framework to tell external entities how to consume the web service - you should send all actual web service requests to the ASMX file to ensure they are handled properly.

    See the W3 specification