microsoft.public.dotnet.framework.aspnet.webservices Archive - January 2002
Post a message to this list
Messages
Page: 123
Exposing Classes via a webservice. (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
I have spent the last few holiday days stuffed with chocolate 'n stuff, trying to find out how to expose my class MyNameSpace.Class1 via a WebService. I failed! [WebMethod] public MyNameSpace.Class1 test1() { return null; } .... namespace MyNameSpace [Serializable] public class Class1 { [XmlAttribute] public string LastName; [XmlAttribute] public string Age; } .... When I attach to this from my te...
When will SOAP in VS.NET support multidimensional arrays? (3 replies)
microsoft.public.dotnet.framework.aspnet.webservices
A function with this signature: WebMethod() Public Function RandomArrayofArrays(ByVal row As Integer, ByVal col As Integer) As Double()() generates good SOAP and WSDL. A function with this signature: WebMethod() Public Function Random2DArray(ByVal row As Integer, ByVal col As Integer) As Double(,) compiles, but fails to run with the following Server exception (at end of this post). What gives? The...
Session usage with multtiple web services (5 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Please help me with the best strategy to keep some session between a number of web services. The scenario is the following. I am implementing the presentation layer seperately from the business logic, which is implemented as a set of web services. After login to the web service, I need to call other services, but they need to know some session information between them. I have implemented the follo...
Add Web Services to Win Client problem (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
HI All, I am following the "Creating a Distributed Application" walkthrough and having trouble adding the Web Service Reference of the AuthorsWebService. The URL I'm entering in the Add Web Service Reference wizard is: http://localhost/AuthorsWebService/AuthorsWebService.vsdisco The XML content of the vsdisco file is: ?xml version "1.0" encoding "utf 8" ? dynamicDiscovery xmlns "urn:schemas dynami...
return data via webservice behavior (4 replies)
microsoft.public.dotnet.framework.aspnet.webservices
If I return a simple class from a webservice via the webservice behavior, how do/can I convert that object in client javascript? How will the webservice return object be typed? objTest.value seems to be null in the alert! VB.net...Class returned by Webservice method WarehouseNumber TextChanged Public Class WarehouseDetails Public WarehouseCode As String Public WarehouseName As String End Class Jav...
Web Service Auth through IIS (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
I am trying to get my Web Service to impersonate a user on my system by means of Windows authentication. My problem is that I am trying to access the service through a C# windows application. My IIS server is set to Windows authentication for the service's directory. Basically, I am wondering if anyone can enlighten me on how to get my Windows application to send the login information to my IIS, s...
http 401: Access Denied (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
The request failed with HTTP status 401: Access Denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The request failed with HTTP status 401: Access Denied. I wrote a Web Service that returns a DataSet. ...
sharing state between web methods (3 replies)
microsoft.public.dotnet.framework.aspnet.webservices
How do I share a session value between 2 methods of a web service? My current code seems to think I am starting a new session on each call.
hai i got web service problem (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
haiiiiiiiiii i got problem abt webservice. first i created webservice in my windows xp machine, then i copied to my windows NT machine ("jani"), but in this machine iam not having any .NET frame work. so first i copied files by using copy project option in to some other folder in windows xp machine. this files moved to folder "rosi" in wwwroot directory in NT server machine ("jani"). now in intern...
Remote Scripting in ASP.NET? (3 replies)
microsoft.public.dotnet.framework.aspnet.webservices
My "legacy" ASP application uses remote scripting, which enables the page to respond immediately to a user action, and execute another script without having to repost the entire page. Specifically, the user first enters a Social Security Number (SSN#) into a textbox. Then, in the OnBlur() event, I make a remote scripting call to a function that does a database lookup to verify that the newly enter...
getting SLL client-certificates for authentication in my webservice (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
I am working on a secure webservice with C# and ASP.NET. The client application has to consume the service through a SSL connection with client certificates. Now I will use the retrieved client certificate from the SSL connection to authenticate the client in my webservice additionally. How do I get the client certificate inside my webservice from the server and the established SSL connection ? Th...
Web Service Data Caching (3 replies)
microsoft.public.dotnet.framework.aspnet.webservices
As I gather from MS docs, a Cache instance is created for each class and its lifetime is tied to that of the application. With that said, and as I've seen in all the examples I've looked at, I would think that I should be able to access that Cache object with a simple: Cache.Insert(some params); or Cache("CacheName") However, that is not the case. My class is unaware of the presence of any Cache o...
Webservice returning duplicate Node Names due to Arrays (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
When I call the following class code from a WebService, and return the SalesOrderLineItems from the WebService, I get the following XML. How do I get rid of the 2 levels of "SalesOrderLineItems"??? This is part of a larger XML document but this is where I'm having my problem. Public Class SalesOrderLineItems Public SalesOrderLineItems() As SalesOrderLineItem Public Sub GetSalesOrderLineItems (ByVa...
Missing HttpContext in WebService running from .NET Windows Application (.NET exe) (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Hi all, I would like to call a WebService from .NET Windows Application (e.g. from a form). Unfortunately WebMethods called from this kind of client doesn't have Session and Context instance (they are null). Does anybody know the reason? Is it possible to find an another solution for saving global objects? Conditions: .NET Release Candidate simple WebService generated by wizard atrribute [WebMetho...
Secutiry problems accessing a webService (4 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Hi, I have a simple Webservice and I can call it from a .net client program on the local machine. When I access the Webservice from a different computer (same domain, same domain account) I get a SecurityException. The WebService is anonymous, I can access the WebService from the Browser on the other Computer. Do I have to add some login code or something? Regards Eugen
Could not create type 'postipwebservice2.Service1'. (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
I am starting to pull my hairs off... I don't understand why this is not working. I started a new webservice project. I did not do anything beside uncommenting the "hello world" method. Used the "project copy project option" to copy only the necessary files to another directory. Copied the result to my office online dev. server. I get the following error : Description: An error occurred during the...
Session State Problem (3 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Upon creating a new ASP.NET Web Service, I uncomment out the HelloWorld function and add the following lines of code: WebMethod() Public Function HelloWorld() As String Try Session.Add("UserName", "Alex") ERRORS HERE Catch e As Exception Console.WriteLine(e.Message) End Try HelloWorld "Hello World" End Function I get the following error when I try to .Add the key value pair to the session object: ...
web service and source control (4 replies)
microsoft.public.dotnet.framework.aspnet.webservices
I need to put my web service in my own directory, not in wwwroot. So I created the directory and made it virtual IIS directory. Then I created web service project using the directory. It worked just fine. But then when other members of our team created the virtual directory on their machines, got all the files and tried to open the solution in VS.NET Beta 2 it complained that can't load web servic...
Client Certificates for proxy objects (5 replies)
microsoft.public.dotnet.framework.aspnet.webservices
This question is exactly the same as that posted to the Usenet newsgroup entitled "Web Services: SSL and Certificates with .NET?" Mr. Powell diligently answered all questions except the final one, which is what is topping me. The scenario follows: I have a webservice setup for which a want to use client certificates. I generated and installed a Web Server certificate on my web server. I then gener...
Error HTTP status 401: Access Denied. (9 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Hi, I created 2 web services with VB.NET. When I test them in the automatically generated aspx page, there's no problem. However, when I try to call them from a program, I get the following error: The request failed with HTTP status 401: Access Denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information ab...
Returning Objects from a WebService (11 replies)
microsoft.public.dotnet.framework.aspnet.webservices
If I return an object that has both data and methods from a WebService will the methods be stripped off and only the data serialized into xml or will the methods and data be serialized slowing down performance to the client? I am using the webservice.htc to work with a dhtml project. If I need to I could subclass the data in the object and then only return that class but I really don't want to do ...
inheritance question (3 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Can I create a base webservice in .NET and have all my other webservices extend the base web service? thanks scott
Querying Services on Another Computer - Fails...... (5 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Greetings, I've developed an assembly in VB.NET that allows me to stop and start services, etc., on any computer that I specify. The function takes 2 variables, a ComputerName and a ServiceName. This assembly works fine in any VB.NET application pointing to any computer on my network. So, thinking I'd like to expose this functionality to other developers in my company I decided to publish this ass...
Permission denied? (6 replies)
microsoft.public.dotnet.framework.aspnet.webservices
I've created a web service and a .NET test client program. When I run the client on the same machine that web service runs on, everything is fine. However, when I run the client program on different machine. I get An unhandled exception of type 'System.Security.SecurityException' occurred in mscorlib.dll Additional information: Request for the permission of type System.Net.WebPermission, System, V...
Check whether Web Service is running at a particular domain (2 replies)
microsoft.public.dotnet.framework.aspnet.webservices
Hi All, I have created a web service in VS.Net. Now I want to check from the client point of view whether it is up and running either programatically / any other way...Any suggestions will be appreciated. Please respond postively. Regards, Sriram Mallajyosula SriramM@NIIT.com
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com