I developed a custom service with http adapter - deployed successfully but when trying to read service - getting below error
There was an error downloading 'servername/.../xppservice.svc'.
The request failed with HTTP status 404: Not Found. 'servername/.../xppservice.svc'.
There was no endpoint listening at servername/.../xppservice.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
The remote server returned an error: (404) Not Found.
If the service is defined in the current solution, try building the solution and adding the service reference again.
DataContract class:
[DataContractAttribute]
class ProductupdateDC
{
ProductId productId;
LiveDate LiveDate;
}
[ DataMemberAttribute('productId')]
public ProductId parmProductId(ProductId _productId= productId)
{
productId =_productId;
return productId;
}
[ DataMemberAttribute('LiveDate')]
public LiveDate parmLiveDate(LiveDate _LiveDate = LiveDate)
{
LiveDate =_LiveDate;
return LiveDate;
}
Service Class:
class ProductupdateService
{
ProductupdateService productservice ;
}
public void new()
{
;
super();
}
[SysEntryPointAttribute(true)]
public void Update( ProductupdateDC ProductupdateDC)
{
XProductTable xproductTable;
ProductId _productId;
LiveToDate _LiveDate;
_productId = ProductupdateDC.parmProductId();
productTable = xproductTable::find(_productId, true);
{
if(xproductTable)
{
ttsBegin;
xproductTable.LiveDate = ProductupdateDC.parmLiveDate();
xproductTable.update();
ttsCommit;
}
}
}
Can anyone help resolve error. nything in code needs to be changed.
*This post is locked for comments
I have the same question (0)

Report
All responses (
Answers (