I have an asp.net application which is trying to consume a web service developped by using some language but from IBM environment. When I asked about wsdl location they gave me physical path rather than virtual path. If they would have given me the virtual path I could have used web references. But they have given only physical path. Which we can't access with web/service reference in our visual studio.
I have been given the WSDL file then I have we created proxy file using SOAPUI utility (SOAP-UI creates proxy for .net 2.o environment). Is it because of that or something else but I am getting exception when I trying to hit the service and get the data. It is giving me following exception.
The request failed with HTTP status 404: Not Found.
And in the stack trace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object parameters)
at WA.LNI.StayatWork.Public.UI.RetroMembersV1WSDLService.RetroMembersV1WSDLSOAP_HTTP_Service.GetRetroMemberInfo(t_request request) in D:\source\SourceCode\StayatWork-VS2010\WA.LNI.StayatWork.Public.UI\RetroMembersV1WSDLSOAP_HTTP_Service.vb:line 48
at WA.LNI.StayatWork.Public.UI.WebServiceTestPage.Page_Load(Object sender, EventArgs e) in D:\source\SourceCode\StayatWork-VS2010\WA.LNI.StayatWork.Public.UI\WebServiceTestPage.aspx.vb:line 184
And one more thing to add now I found that my application call even not going to the proxy class. Because I put break points in my proxy class contructor and few other methods, my application is not even going to those break points whats this weird thing I dont know. Please anybody pls help me its little urgent.
Well that's an oxy-moron, asking for help accessing a web service, but you can't even get to the web service, so the web service has nothing to do with your problem, because your not even there yet.
So I'm looking at a stack trace for no reason here.
404 means the HTTP request could not be made, the rest of the trace says it sent the request, but no response was delivered. So the request went somewhere on port 80, or else it would of stalled for a very long time with a page not found error. if no port 80 was there, it would be an instant return.
I could able to hit the break point, I was not hitting break point becuase System.Diagnostics.DebuggerStepThroughAttribute() attribute was set on my class. But still I am getting the same exception.
And as you said its returning immediately.
I am not finding the reason please help me its an urgent.
hello urgently i am fresher plz............ my question is that how can see different different content in div on same page after click on menu.
example --- we take a tab(service) on menu bar in dropdown form such as service---- |---security device |--- event management |--- property dealing when i click on secutiy device then it only open the detail of secutiy detail on same page(service).similarly in case of event management, property dealing. on particular id.
I am mostly focused on DB and desktop development, all of my "good" web stuff was done with WebForms. As my spare time allows I am slowly learning ASP.Net MVC, I agree with philosophy behind it, but learning process is much slower than expected and from time to time I look across the fence for possible shortcuts, alternatives etc.
So, should Web Pages be considered as an alternative (of any sort) to ASP.Net MVC?
Do you consider it better than WebForms (and why)?
Are there any important gotchas which usually aren't listed among first N Google results?
Can someone share their experience?
I have worked on Webforms previously and now MVC. In my opinion MVC is better in performance, speed and flexible for test-driven development. Here is the interesting part.... No postbacks, No viewstates, No server controls, No page life-cycle. All done with HTTP RESTful services and HTML controls. And it's completely stateless. Controller controls all user interactions. each user request is served by raising an action method in the controller. Bundling, routing and Web API's are some of the interesting areas in ASP.NET MVC
thank you friend but i want to convert the varchar dataype to datetime format (ie.)if i enter 22.3.2004 in date of birth text box it should to stored on the database as 22/3/2004 how it possible please reply me and also if the user enter like 22.3.2004 error msg has to display pls reply both
Is there a cleaner way to pull a lot of data from a form for calculations?
I feel like I have a lotta ugly tryparse stuff going on. Do people just pull it in one go?
I have like 40 controls a user can change (trust me, it can't be helped) and on recalc its a lot of pull, calculate, put back. Seems horribly messy.
I have a fairly complex form with the same problem. I have 2 routines, one to map the screen to internal values and another to map the internal values to the screen. Ugly. Yes; but it works and it is straight forward.
Web programs do not run like windows programs, you have to change the way you think in designing your program mechanics. Shifting over to the client side would more closely mimic a windows program.
You can start by optimizing your program to run faster on the server side, get rid of the bloat first. Perhaps ask a small optimization question next.
Here's my dilemma. I want all the goodness of controllers, I want strongly typed views and model binding - basically all the best bits of MVC. However, even a fairly simple page will usually require some client side script for showing\hiding elements, confirmation boxes & all that funky stuff that users expect for todays interactive web pages. You normally end up with 'page specific script' which will be a number of event handlers and bindings, with no real structure as such.
Backbone, Knockout and many of the other frameworks mentioned in the article I linked address this problem, they allow you to create client side models and bring structure and cohesion to your client script. However, the way they are designed almost relegates MVC to a simple 'web API' to handle RESTful requests and respond with some JSON. You seem to end up moving logic that I believe should be in the 'server side controller' into a 'script controller', which I'm not really happy with.
I want a structured script representation of my Model, that wires up all by event handlers for my View and keeps everything in a logical order. But I still want model binding, data annotations, validation and logic in my controller, everything that should be handled by MVC.Net. I want the best of both in other words
I've read quite a bit on this subject, so I know there are many different options available to me - that's the very point of the link. I'm just interested how others developing in MVC are addressing this problem?
I have a textbox with multiline, i want to implement a feature in which i click a hyperlink or button then the whole content or selected content of textbox get copy to the clipboard.
Thanks In Advance,Appreciates your help
Hi all, I am trying to create textboxes dynamically and I came across a method that does mostly what I want while searching for a solution on line. The method below is what I've found
for(int i = 0; i<boxes; i++)
TextBox tb = new TextBox();
tb.Location = new System.Drawing.Point(40, 120 + i * 20);
tb.Name = "TextBoxName" + i.ToString();
tb.Size = new System.Drawing.Size(184,20);
tb.TabIndex = i + 2;
tb.Text = String.Empty;
The problem with the above code snippet is that sending values placed inside of the created textboxes to a database is difficult because the textboxes all have the same name. If each textbox can be given a different name when it is created, it will be great. Any suggestion is greatly appreciated, thanks in advance
Would you please explain how all textboxes have same name. The loop clearly says that every textbox created has index associated with its name. First textbox name reads "TextBoxName1", second reads "TextBoxName2" and so on. Where is the issue you are facing?
The problem u have is how to access the dynamically created textboxes, isn't it
look, the code u had written actually creates a number of objects of type TextBox, and give every one a name that is 'TextBoxName1', 'TextBoxName2',.. etc
the problem here is how to access the objects created.
so, you must declare a generic dictionary of string and TextBox on the class level, means
Dictionary<string,TextBox> AllTextBoxes = new
this code will be in the class level not inside any methods.
the second step is to add a line inside the loop to add items to this dictionary, each of them consists of a key and a value, the key is the name of textbox, while the value is the textbox object created in each loop, this line will be at the end of loop,
For starter I don't think that code you posted above is for asp.net. html TextBox control don't have size and location properties (this is controlled by css class and some css styles). Second, don't you think that placing in a loop with "i" index and appending this index name, give each text box unique name?