Course Solutions Uncategorized (Solved) : Following C Code Creates Web Service Using System Using Systemcollectionsgeneric Using Sys Q34343052 . . . .

(Solved) : Following C Code Creates Web Service Using System Using Systemcollectionsgeneric Using Sys Q34343052 . . . .

 

I have the following C# code that Creates a Web Service:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace WebService
{
/// <summary>
/// Summary description for UltimateGamingPC
/// </summary>
[WebService(Namespace = “http://tempuri.org/”)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// To allow this Web Service to be called from script, usingASP.NET AJAX, uncomment the following line.
// [System.Web.Script.Services.ScriptService]
public class UltimateGamingPC :System.Web.Services.WebService
{

  
public struct ProductDetails
{
public int ProductCode;
public string ProductTitle;
public string Description;
public double Price;
}

private ProductDetails Products;

public UltimateGamingPC()
{
Products.ProductCode = 0;
Products.ProductTitle = “”;
Products.Description = “”;
Products.Price = 0;
}

private void AssignValues(int ProductCode)
{

Products.ProductCode = ProductCode;

if (ProductCode == 1)
{
Products.ProductTitle = “UG Hunter”;
Products.Description = “Intel I7/3.4GHZ, 8GB RAM, 32GB SSD, 1TBHHD, Gigabyte GeForce GT710”;
Products.Price = 1999.00;
}
else if (ProductCode == 2)
{
Products.ProductTitle = “UG Predator”;
Products.Description =

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post