|
Hello Tushar
many thanks for your help
regards
Yousuf
|
|
|
|
|
hi people,
I have a webservice with a method called ValidateClient . I also have a Windows Forms application that is supposed to call this web method asynchronously. In fact, all I want is to have a callback method from the webserver to the client. Normally, when you add a reference to the webservice, you get 3 methods: ValidateClient , BeginValidateClient and EndValidateClient . With those 2 methods, you can assign a callback method that the webservice calls when it's done.
I am using Visual Studio 2005 (framework 2.0)
My problem is now that Intellisense doesn't give me the Begin and End methods. I went to the Reference.cs file of the webservice and didn't find them either. What I have however is a method called ValidateClientAsync . It fires an event ValidateClientCompleted when it finishes executing on the server side and it is asynchronous.
Why did these 2 methods disappear? Do I have to include some attribute in the web method to make them available?
I would like to call my web method from inside a loop. I am not interested in the asynch aspect of it, I am only interested in the callback aspect of it. Is there a way of assigning a callback to a method without being asynchronous?
What I have been thinking of is that if it has to be asynchronous, I can make the loop wait for it to execute by using WaitOne() or something similar. As I was reading the documentation, I found that in order to use WaitOne() I need a WaitHandle and this can only be acquired by having a callback of some sort. Did I understand this right?
I am also using WSE 3.0.
Thanks for your insight on the matter.
Talal.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
--Rich Cook
|
|
|
|
|
I am trying to create an complex object to send back as a response to a request.
for example:
[SoapMethod("GetRO")]
public RODataResponse GetRO( GetRORequest request )
{
RODataResponse resp = new RODataResponse();
string a = request.target;
string b = request.roId;
resp.status = "GetRO Goooood";
resp.roData = null;
return resp;
}
My object is defined as:
public class RODataResponse
{
public string status;
public RepairOrder roData;
}
Which contains a complex object that fails with a serialization error when using Wse2wsdl.exe.
public class RepairOrder
{
public Dictionary<string, LineItem> lineItemList = new Dictionary<string, LineItem>();
public RepairOrder()
{
lineItemList.Add( "one", new LineItem());
}
}
My question is how do you make this work? How do I make a list of items serializible?
|
|
|
|
|
Hi,
I need to load a dll with javascript.
I already succeeded in loading object with a ClassId via the:
var mydll = new ActiveXObject("App.ClassID"); You probably can use the CreateObject function as well.
Now I need to plug-in another dll, which is a .NET assembly. I can't find any clsID in the registry and can't find anything to load the dll. I think there is a function LoadLibrary available, but I have no idea how to use it.
So how can I load a dll with javascript with only knowing the filename?
I hope somebody can help me.
tnx in advance !
PS: the dll in question contains stuff for printing data and runs locally. (so no funky stuff with virusses, trojans, etc)
|
|
|
|
|
V. wrote: LoadLibrary available,
LoadLibrary is not available to Javascript. You must use COM objects. Besides you can't "load" a .NET assembly using LoadLibrary yourself, the platform must do the loading.
It sounds like you need your .NET objects to be exposed as COM objects. This can be done by creating a COM-callable wrapper, see this MSDN article[^]
"Alot of the people on this forum are incredibly stupid, thinking that the internet is real" Score: 1.0 in the Soap Box
led mike
|
|
|
|
|
thanks a lot for the article !
|
|
|
|
|
Is it possible to send a post that contains an uploaded file without letting the user select the file using the "InputFile" HTML control? with AJAX or javascript? (The user doesnt even browse for the file)
Thanx!
|
|
|
|
|
Nope.
Only with java (and maybe activex)
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
ok,
with activeX control that resides in a web page, how can I post a file?
|
|
|
|
|
Hi Friends
I am creating a web service to use bot in asp and asp.net.
its working in both but problem is
it returns long string or text value while i want to return values in the form array
my servcice is like this
publi string[] getinfo(int companyid){
string[] myInfo=new string[2];
myInfo[0]="My Company";
myInfo[0]="Address1";
myInfo[0]="Address2";
return myInfo;
}
i am using in asp
Response.Writ(xmlhttp.responseText)
this statement is giving me resut
My Company
Address1
Address2
I want to store these values in different variables to for the future use,
any one can help me please.
how can i put those values in variables.
Naveed Kamboh
|
|
|
|
|
Hi
Can you please use XML for output so that you can parse the XML in the asp or asp.net pages and store you output in variables
Regards
Tushar kothari
|
|
|
|
|
thanks
how can i do that? any article or coded pls
thanks in advance
Naveed Kamboh
|
|
|
|
|
Hi
You can return XML node from the Web Method and then on other end you have to store that XML node and after parsing you will get the values.
Following is the sample code for that
<web method="">
public function A() as XMLNode
dim XND as new XMLNode
.....your code....
.....Store the output in the XML Node
return XND
On ASPX page
dim XNDC as XMLNode
XNDc = <webservice object="">.A()
Then you can parse the xml node
for you outout
Regards
Tushar kothari
|
|
|
|
|
I have to call Web Method from ASP Pages. But I don’t want to wait for output of the web method. So I had tried to call it Asynchronous call using begin and end. But still it is waiting.
What methodology should I apply so that I can get my goal.
Tushar kothari
|
|
|
|
|
Hi folks,
I want to ask how can I make a simple html editbox unreadable - if there is another
object type or setting
thanx
|
|
|
|
|
Try:
<input type="text" readonly>
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I'm a C# WinForms developer who decided to be cool and make a personal website on a popular ASP.NET host.
Unfortunately, nobody can sell me artistic skill, so I was wondering if anyone could help me find some good templates, .css files, etc. that could help me along.
|
|
|
|
|
|
Hey,
I am about to launch a information website in that I hope to make money from internet advertising. I am really new to advertising on the net and have a few questions.
First how do you prove how many hits your site gets? If someone wants to advertise on my site, surely just telling them how many hits I get isnt good enough, as I could be making up the total. So whats the general practice for this?
The second question is should I handle all the advertising myself? Do I just talk with the client, obtain a banner from them and charge them, all are there services out there that can help with this process?
Thanks very much for your time, would appreciate any feedback.
cheers.
|
|
|
|
|
I found a really useful tool the other day called Google Analytics - it takes data from your site such as who is visiting it, for how long, which pages, at what resolution and where etc etc - very detailed.
Sign up for an acconut - analytics.google.com - they always get flooded with requests, but it seems like they have enough now.
Hope that helps
James
http://www.jamesgupta.com
Website
Design | Maintenance | Hosting
|
|
|
|
|
tmoney101 wrote: The second question is should I handle all the advertising myself? Do I just talk with the client, obtain a banner from them and charge them, all are there services out there that can help with this process?
I'd do both. Check out Google AdSense https://www.google.com/adsense/afc-online-overview[^] and also try to get your own advertisers, like CP does.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
I have a problem with WebServices, I tried to learn about it from the MSDN and followed the following steps:
To create a Web service
1. Open Visual Web Developer.
2. On the File menu, click New Web Site.
The New Web Site dialog box appears.
3. Under Visual Studio installed templates, click ASP.NET Web Service.
4. Click Browse.
5. Click Local IIS.
6. Click Default Web Site.
7. Click Create New Web Application.
Visual Web Developer creates a new IIS Web application.
8. Type the name TemperatureWebService.
9. Click Open.
The New Web Site dialog box appears, with the name of the new Web site in the right-most Location list. The location includes the protocol (http://) and location (localhost). This indicates that you are working with a local IIS Web site.
10. In the Language list, click the programming language that you prefer to work in.
11. Click OK.
Visual Web Developer creates the new Web service and opens a new class named Service, which is the default Web service. However, in the following procedure you will create a new Web service with a specified name and you will not use the Service class.
12. Close the Service class.
The problem:
After I finish step no. 11 this message is displayed:
"Configuring website 'http://localhost/MyWebService' to ASP.NET 2.0 faild. You need to manually configure this site for ASP.NET 2.0 in order for your site to run correctly".
What should I do? Knowing that I have done the setup of the IIS.
Tamatem
|
|
|
|
|
Open the properties for the web application in the IIS manager, go to the ASP.NET tab and select framework 2.0.
---
b { font-weight: normal; }
|
|
|
|
|
Hi ,
I am supposed to develop a web application in .Net 2.0, which should convert a file of any print support type to TIFF, JPEG, PDF and Text format on demand.
Please suggest me how can accomplish this task.
Thanks and Regards,
Raj.
|
|
|
|
|