<?xml version="1.0" encoding="utf-8"?> <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:Header> <UserDetails xmlns="http://tempuri.org/"> <userName>string</userName> <password>string</password> </UserDetails> </soap12:Header> <soap12:Body> <GetProductsbyId xmlns="http://tempuri.org/"> <id>string</id> </GetProductsbyId> </soap12:Body> </soap12:Envelope>
[WebMethod(Description = "Returns Products details")] [SoapHeader("User", Required = true)]
public ProductDetails[] GetProductId(string id) { if (User.userName == "testuser" && User.password == "pass123") { return _prx.Get(id); } else { return null; } return null; }
GetProductsbyId
GetProductId
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)