Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
AnswerRe: browse control Pin
radupopescu7774-Feb-09 0:50
radupopescu7774-Feb-09 0:50 
QuestionWindows service for detecting USB device Pin
arun_pk4-Feb-09 0:07
arun_pk4-Feb-09 0:07 
QuestionFolder Protection Pin
vishnukamath3-Feb-09 23:08
vishnukamath3-Feb-09 23:08 
AnswerRe: Folder Protection Pin
«_Superman_»3-Feb-09 23:53
professional«_Superman_»3-Feb-09 23:53 
GeneralRe: Folder Protection Pin
vishnukamath4-Feb-09 0:13
vishnukamath4-Feb-09 0:13 
AnswerRe: Folder Protection Pin
Giorgi Dalakishvili4-Feb-09 0:38
mentorGiorgi Dalakishvili4-Feb-09 0:38 
GeneralRe: Folder Protection Pin
vishnukamath4-Feb-09 1:18
vishnukamath4-Feb-09 1:18 
Questionexposed items in a web service Pin
bfis1081373-Feb-09 22:16
bfis1081373-Feb-09 22:16 
I made a web service and when I went to make the tet client I noticed that the Order Class was exposed which was fine with me except that the Order class comes from the BookStoreBLL reference which I guess is making me wonder if the Order class is exposed then why isn't all of the BookStoreBLL class exposed? And how could I expose at least one more item? And why is the Order class showing up? The following is my main code page for my Web Service.

using System;
using System.Data;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.ComponentModel;
using BookStoreBLL;

namespace WebService1
{
    /// <summary>
    /// Summary description for Service1
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [ToolboxItem(false)]
    public class Service1 : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }
        OrderedBooksCollection coll;
        BooksBLL bll;
        UsersBLL userBll;
        OrdersBLL orderBll;
        [WebMethod]
        public Book[] AllBooks()
        {
            bll = new BooksBLL("C");
            return bll.allBooks();
            
        }

        [WebMethod]
        public ReturnedOrderInfo ExecuteOrder(User u, Order o)
        {
            ReturnedOrderInfo info = new ReturnedOrderInfo();
            
            info.OrderNumber = 0;
            userBll = new UsersBLL("C");
            UserRoles role = userBll.verifyUser(u.UserName, u.PW);
            if (role == UserRoles.BadPass || role == UserRoles.None || role == UserRoles.NoUsers)
            {
                info.Status = orderStatus.UnauthorizedUser;
                return info;
            }
            //bll = new BooksBLL("C");
            info = orderBll.ProcessOrder(o);
            return info;
        }



    }
}

AnswerRe: exposed items in a web service Pin
SeMartens3-Feb-09 22:42
SeMartens3-Feb-09 22:42 
QuestionSecurity issue in Web browser control Pin
ZonSyed3-Feb-09 22:08
ZonSyed3-Feb-09 22:08 
Questionarray of function Pin
t_nedelchev3-Feb-09 21:50
t_nedelchev3-Feb-09 21:50 
AnswerRe: array of function Pin
Spunky Coder3-Feb-09 22:01
Spunky Coder3-Feb-09 22:01 
AnswerRe: array of function Pin
N a v a n e e t h3-Feb-09 22:04
N a v a n e e t h3-Feb-09 22:04 
GeneralRe: array of function Pin
t_nedelchev3-Feb-09 22:23
t_nedelchev3-Feb-09 22:23 
GeneralRe: array of function Pin
User 66583-Feb-09 23:06
User 66583-Feb-09 23:06 
GeneralRe: array of function Pin
Ennis Ray Lynch, Jr.4-Feb-09 4:24
Ennis Ray Lynch, Jr.4-Feb-09 4:24 
AnswerRe: array of function Pin
PIEBALDconsult4-Feb-09 7:35
mvePIEBALDconsult4-Feb-09 7:35 
QuestionDynamically change method Pin
MAW303-Feb-09 21:13
MAW303-Feb-09 21:13 
AnswerRe: Dynamically change method Pin
Spunky Coder3-Feb-09 21:22
Spunky Coder3-Feb-09 21:22 
AnswerRe: Dynamically change method Pin
N a v a n e e t h3-Feb-09 21:45
N a v a n e e t h3-Feb-09 21:45 
GeneralRe: Dynamically change method Pin
User 66584-Feb-09 0:23
User 66584-Feb-09 0:23 
AnswerRe: Dynamically change method Pin
PIEBALDconsult4-Feb-09 8:03
mvePIEBALDconsult4-Feb-09 8:03 
QuestionWindows Communication Foundation (setup.bat file configuration) Pin
AmbitiousBeginner3-Feb-09 20:48
AmbitiousBeginner3-Feb-09 20:48 
AnswerRe: Windows Communication Foundation (setup.bat file configuration) Pin
SeMartens3-Feb-09 21:54
SeMartens3-Feb-09 21:54 
GeneralRe: Windows Communication Foundation (setup.bat file configuration) Pin
AmbitiousBeginner3-Feb-09 22:22
AmbitiousBeginner3-Feb-09 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.