c# - SOAP API with DomainBox in ASP.NET application -



c# - SOAP API with DomainBox in ASP.NET application -

i trying integrate asp.net application http://www.domainbox.com/ using soap api. couldn't find examples. thing offer soap resquest , response examples. question how phone call request , how response info utilize in application?

request:

<soap12:envelope xmlns:xsi=”http://www.w3.org/2001/xmlschema-instance” xmlns:xsd=”http://www.w3.org/2001/xmlschema” xmlns:soap12=”http://www.w3.org/2003/05/ soap-envelope”> <soap12:body> <querydomainrenewalsettings xmlns=”https://sandbox.domainbox.net/”> <authenticationparameters> <reseller>myreseller</reseller> <username>myusername</username> <passwordmy>password</password> </authenticationparameters> <commandparameters> <domainname>atestdomain.co</domainname> </commandparameters> </querydomainrenewalsettings> </soap12:body> </soap12:envelope>

response:

<soap:envelope xmlns:soap=”http://www.w3.org/2003/05/soap-envelope” xmlns:xsi=”http://www.w3.org/2001/xmlschema-instance” xmlns:xsd=”http://www. w3.org/2001/xmlschema”> <soap:body> <querydomainrenewalsettingsresponse xmlns=”https://sandbox.domainbox.net/”> <querydomainrenewalsettingsresult> <resultcode>100</resultcode> <resultmsg>domain renewal settings queried successfully</resultmsg> <txid>4d76201a-3b6d-4ccc-bca5-729439bbac9b</txid> <domainid>87967</domainid> <autorenew>true</autorenew> <autorenewdays>60</autorenewdays> </querydomainrenewalsettingsresult> </querydomainrenewalsettingsresponse> </soap:body> </soap:envelope>

thanks.

you should add together domainbox api service reference if you're using asp.net.

that allow utilize normal c#/vb class,

var parameters = new domainbox.checkdomainavailabilityparameters {domainname= "example.com"}; var result = apiobject.checkdomainavailiability(authobject, paramters); if (result.resultcode == 100) { // results... }

i can provide more detailed illustration if required.

c# asp.net api soap

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -