WebService response is null

Reply Forum
Forum postHari Krishna @ 2011-12-29 14:20:10
ReplyReply to
Hi All,

I have a client webservice, when I consume it in VS 2008 I receive the result object as null. But when I use the same service in the SOAP UI(SOAP UI is a tool to test the webservices) it sends the xml result. Below is the code that I am using. I even discussed with the webservice provider and they do confirmed that in the logs they are able to see the request and response send from their end.

GetRenewalPriceReqType[] pricereqtype = new GetRenewalPriceReqType[1];
ProgressPriceAPI.SSIGetRenewalPriceListSrvService PricingRequestObj = new SSIGetRenewalPriceListSrvService();
ProgressPriceAPI.GetRenewalPriceResType[] PricingResponseObj ;
ProgressPriceAPI.GetRenewalTaxType[] txprice;
pricereqtype[0] = new GetRenewalPriceReqType();
pricereqtype[0].Domain = "USA";
pricereqtype[0].ContractNumber = "153452";
pricereqtype[0].ContractLine = 5;
pricereqtype[0].AdjustPriceRenewal = "A";
pricereqtype[0].ServiceLevel = "STDNEW";
pricereqtype[0].TaxBasisAmount = 0;
pricereqtype[0].ContractLineSpecified = true;
pricereqtype[0].EffectiveDateSpecified = true;
pricereqtype[0].TaxBasisAmountSpecified = true;
string strDate = "2011-11-30";
DateTimeFormatInfo dtfi = new DateTimeFormatInfo();
dtfi.ShortDatePattern = "YYYY-MM-DD";
dtfi.DateSeparator = "-";
DateTime objDate = Convert.ToDateTime(strDate, dtfi);
pricereqtype[0].EffectiveDate = objDate;
ObjectToXml(pricereqtype[0], "c:\\pricereqtype.xml");
//PricingResponseObj = new GetRenewalPriceResType[2];
PricingResponseObj = PricingRequestObj.SSIGetRenewalPriceListSrv(pricereqtype);The signature is as below

GetRenewalPriceResType[] SSIGetRenewalPriceListSrvService.SSIGetRenewalPriceListSrv(GetRenewalPriceReqType[] SSIGetRenewalPriceListSrvReq)

:)Please let me know if I am missing anything here.

Thanks,
Hari.











© net-tutorials.com 2006 - 2012

MailContact net-tutorials.com