|
I have to consume a set of Java APIs on the web server application from my ASP.net web service. Is there a way to do it?
|
|
|
|
|
A number of examples of web services include a .asmx file that typically has a single line
<%@ WebService Language="c#" Codebehind="WebService1.cs" Class="MyService.WebService1" %>
This is also documented in the .NET SDK for creating a web service. In the case of the examples and the SDK they indicate that if you open the file with a browser, the browser should display information about the web service. I am very unsuccessfully having IE6.0 do that for me. All the browser will do is prompt me for a program to open the file with and when I intruct it to use IE, it simply displays the text of the file. I'm likely interpretating something very wrong here, but at a complete loss of what. Any kind pointers would be appreciated. Thanks.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
I could be wrong with this, but the asmx file, should be able to give you information when you go to the webservice that is hosted on the IIS. If you just open up the file, it may not work. What you would need is a WSDL file and I think you can generate it from the .NET command prompt.
Hope this helps, or I can be totally off.
|
|
|
|
|
Actually you are pretty close to what I'm finding as I dig in other areas of the .NET SDK. It's not so much that the documentation is wrong, but rather it just doesn't tell the whole story and what is really unfortunate is that in some cases it's becoming evident it is dependant upon the user working with VS.NET in putting their solution together. The details of deployment are still sketchy to me, but I think I'm getting closer. Thanks for the help.
Chris Meech
We're more like a hobbiest in a Home Depot drooling at all the shiny power tools, rather than a craftsman that makes the chair to an exacting level of comfort by measuring the customer's butt. Marc Clifton
VB is like a toolbox, in the hands of a craftsman, you can end up with some amazing stuff, but without the skills to use it right you end up with Homer Simpson's attempt at building a barbeque or his attempt at a Spice rack. Michael P. Butler
|
|
|
|
|
I'm very new to the Web development side of .NET and need to do the following:
Create a web service that uses Window Authentication which will be consumed by clients that will not be running on the same domain.
I've seen how you can set up a ASP.NET project to use Windows authentication (using the Web.config file), is it the same for Web service.
How would securely authenticate the client without having to enter the credentials every time a method from the web service is invoked?
Thanks in advance
|
|
|
|
|
Hi there,
I've used the following code on my store page to determine if the current page is actually in the regsoft store or not, allowing the use of the same .js file for both uses:
<code>
function WriteBarLinkUnterminated(RelativeUrl)
{
StoreUrlCriteria = "regsoft";
CurrentUrl = "";
CurrentUrl = document.location.href;
if(CurrentUrl.search(StoreUrlCriteria) != -1)
{
// In store. Use absolute url.
AbsoluteUrl = "http://www.aephid.com/";
AbsoluteUrl += RelativeUrl;
document.writeln("<a href = '" + AbsoluteUrl + "' target = '_top'>");
}
else
{
// Not in store.
document.writeln("<a href = '" + RelativeUrl + "' target = '_top'>");
}
}
</code>
However, I've recently found security errors popping up saying "Permission Denied". More research shows that this property is both deprecated, and also security rules no longer let you read it --- only change it!
see:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/om/xframe_scripting_security.asp
Does anyone know the proper way I can replace this block of code? I can't just use absolute urls because then I cannot navigate the website off the local hard drive and test it before it is deployed.
Please help!
swine
[b]yte your digital photos with [ae]phid [p]hotokeeper - <a href = http:\\www.aephid.com\photokeeper-default-frame-codeproject.shtml>www.aephid.com</a>.
|
|
|
|
|
Anyone have any suggestions for a search engine to use on a website? I have a site (designed with php, so no ASP search engines please), thats documentation section is quite large, and I frequently get questions from people about how to find stuff.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
|
Yeah I have, but I was hoping folks here might have some first hand experience with one.
I have seen a bunch of junky looking stuff, with one or two possibbles that look useful.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Jim Crafton wrote:
I have seen a bunch of junky looking stuff, with one or two possibbles that look useful.
Are you talking about people that use google for their search engine on their site or just junky search engines they have developed? I currently use google for my site ( DeveloperNotes.com[^]) and it's rather simple, just set up an account with google and you can even get your banner logo added to the top of your search results page; all for free.
- Nick Parker My Blog
|
|
|
|
|
Yeah we looked into using google. The problem is that doesn't give as many hits as we'd like, plus we'd like to be able to control the presentation a bit more.
I was referring to junk search engines that people develop, not google.
The deal is that I would like to present a search page to search through source generated (via doxygen) documentation that spans over 1,800 html files (almost 28 megs).
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Does anyone have any info on using web services with Classic ASP? (ASP3.0) I'm about to go for a hunt on the web to see what I can find out, but if anyone can point me to a good start, that would be appreciated.
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
You can't go wrong with the 4guysfromrolla guys. Helped me a lot in the begining and I still use them.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"All Corvettes are red. Everything else is just a mistake."
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Great source, Paul. I also like www.w3schools.com[^] for excellent tutorials.
"Another day done - All targets met; all systems fully operational; all customers satisfied; all staff keen and well motivated; all pigs fed and ready to fly" - Jennie A.
|
|
|
|
|
Thanks guys, checking both sites out.
NATHAN RIDLEY
Web Application Developer
email: nathan @ netlab.com.au
[remove the spaces before and after the @ symbol]
|
|
|
|
|
|
Hi,
I have been using data binding for a lot of features and it is kind of working, but I keep getting into the chicken and the egg situation; I initialise the dataset in Page_Load, but, for example with a databound combo box, its selection resets when the page loads. This shouldn't happen because I have set the "AutoPostBack" property to true, if I temporily take out the dataset initialisation code then the combo box works fine, but of course with no data in it.
Would anybody be able to point me in the right direction please?
Regards,
Lea Hayes
|
|
|
|
|
maybe you need to use
if (!Page.IsPostBack) {
}
in your Page_Load
Wally Atkins Newport News, VA, USA
|
|
|
|
|
I've got a textbox in which I don't want the user to be able to use the backspace button. How can I cancel? I tried the event.cancelBubble but it doesn't seem to work.
Please help.
|
|
|
|
|
I can't see how cancelBubble would help you do this.
What would I do:
I would store the value of the text field in a variable, then, onChange I would compare the new value with the old one. With the correct logic I would return true or false and would allow the new value or replace it with the old one.
Hope that this helps.
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
|
Hi,
When selecting an image (within the code) using: MyImage.ImageURL = "test.jpg", the image is stretched within the image control, is there a way to make the image control automatically change to the images size?
And another image related question, how can you obtain the images dimensions?
Regards,
Lea Hayes
|
|
|
|
|
lhayes00 wrote:
When selecting an image (within the code) using: MyImage.ImageURL = "test.jpg", the image is stretched within the image control, is there a way to make the image control automatically change to the images size?
Don't specify a width or height in the IMG tag
lhayes00 wrote:
And another image related question, how can you obtain the images dimensions?
I imagine the same way you would access the SRC attribute
document.blah.myImage.width
blah is not actually an object, you'll have to figure that out.
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|
|
Does anybody know how to fill the fields of IE's web page
from within VB or C++ ? What if the page is secure? Of
course, there is no problem to fill all the fields by
hand. The question is how to do it automatically, by
running .exe or .dll.
|
|
|
|
|
Wrong forum
You mean like Google toolbar auto form fill feature?
It's generally more difficult then writting a normal EXE I suggest looking at the following article for a heads up:
http://www.codeproject.com/atl/ietoolbartutorial.asp?target=ie%7Ctoolbar[^]
I imagine you might be able to do it with a normal EXE, but you would have to tap into the IWebBrowser2 interface, so I hope your comfortable with COM interfaces
Cheers
The word of the day is legs, let's go back to my house and spread the word
|
|
|
|