![]() |
web service returns blank page when invoking
Hi Everyone!
I am working on a project for a directed study class and am having problems with webservices. I have .NET Framework version 1.1.4322.573 with IIS and Frontpage Extensions installed and Visual Studio 2003. These are all a fresh install as I removed and re-installed to try and fix the problem to no avail. What Happens ============ In Visual Studio I can create a new Web Service project, say WebService1, and all is created fine on IIS. I then open the default file created by Visual Studio (service1.asmx) and uncomment the "Hello World" web service. [WebMethod] public string HelloWorld() { return "Hello World"; } I can then browse to http://localhost/WebService1/s ervice1.asmx and click the link for the web method HelloWorld. I then click the Invoke button. A new window opens and it is blank, there is nothing there. On 1 other machine I have seen this work on campus where XML was returned with the "Hello World" text in it, but not here. When I try to view source in Internet Explorer the text for "Source" in the view menu is grayed out. On 2 machines I have tried to get this to work and I get the same result. I really do not know where to go. I am writing an Instant Messenger app for C# and Web Services but I am at a wall here where I can't move further until I can get the web services to respond. Thanks in advance for any help you can send my way! -David R Underwood drunderw AT presby.edu |
Re: web service returns blank page when invoking
Did you rebuild the Web Service after making the change?
-- HTH, Kevin Spencer Microsoft MVP ..Net Developer The sun never sets on the Kingdom of Heaven "David" <drunderw@presby.edu> wrote in message news:1122480013.517287.114680@g43g2000cwa.googlegr oups.com... > Hi Everyone! > > I am working on a project for a directed study class and am having > problems with webservices. > > I have .NET Framework version 1.1.4322.573 with IIS and Frontpage > Extensions installed and Visual Studio 2003. These are all a fresh > install as I removed and re-installed to try and fix the problem to no > avail. > > What Happens > ============ > In Visual Studio I can create a new Web Service project, say > WebService1, and all is created fine on IIS. I then open the default > file created by Visual Studio (service1.asmx) and uncomment the "Hello > World" web service. > > [WebMethod] > public string HelloWorld() > { > return "Hello World"; > } > > I can then browse to http://localhost/WebService1/s ervice1.asmx and > click the link for the web method HelloWorld. I then click the Invoke > button. > A new window opens and it is blank, there is nothing there. On 1 other > machine I have seen this work on campus where XML was returned with the > "Hello World" text in it, but not here. When I try to view source in > Internet Explorer the text for "Source" in the view menu is grayed out. > > On 2 machines I have tried to get this to work and I get the same > result. I really do not know where to go. > > I am writing an Instant Messenger app for C# and Web Services but I am > at a wall here where I can't move further until I can get the web > services to respond. > > Thanks in advance for any help you can send my way! > > -David R Underwood > drunderw AT presby.edu > |
Re: web service returns blank page when invoking
Thanks Kevin for your response. I rebuilt the solution and web service
and I also created a new blank web serivice project in Visual Studio that was just the default "HelloWorld" web service. Neither will work. Thanks! |
Re: web service returns blank page when invoking
Sorry to disappoint you, David, but I'm mystified. I can't think of a reason
offhand. You might try using the Debugger to step through the code when you run it using F5. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer The sun never sets on the Kingdom of Heaven "David" <drunderw@presby.edu> wrote in message news:1122481690.386850.307280@g14g2000cwa.googlegr oups.com... > Thanks Kevin for your response. I rebuilt the solution and web service > and I also created a new blank web serivice project in Visual Studio > that was just the default "HelloWorld" web service. Neither will work. > Thanks! > |
Re: web service returns blank page when invoking
There are no unusual debugging codes - no errors represented. The only
thing that shows up in the debugger is shown below: Auto-attach to process '[2968] aspnet_wp.exe' on machine 'WEBDEV' succeeded. 'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\msco rlib.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b0 3f5f7f11d50a3a\system.web.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system\1.0.5000.0__b77a5c 561934e089\system.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.xml\1.0.5000.0__b7 7a5c561934e089\system.xml.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regul arexpressions.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web.regularexpress ions\1.0.5000.0__b03f5f7f11d50a3a\system.web.regul arexpressions.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.web.services\1.0.5 000.0__b03f5f7f11d50a3a\system.web.services.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.drawing\1.0.5000.0 __b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.web.mobile\1.0.500 0.0__b03f5f7f11d50a3a\system.web.mobile.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\webservice1\7984f4c2\26c7a006\assembly\dl2\3 99d6382\f02f7441_d592c501\webservice1.dll', Symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.data\1.0.5000.0__b 77a5c561934e089\system.data.dll', No symbols loaded. 'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\assembly\gac\system.enterpriseservices \1.0.5000.0__b03f5f7f11d50a3a\system.enterpriseser vices.thunk.dll', No symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\webservice1\7984f4c2\26c7a006\wl0p5036.dll', Symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\temp orary asp.net files\webservice1\7984f4c2\26c7a006\ibeem5u2.dll', Symbols loaded. '/LM/w3svc/1/root/WebService1-1-127669753379218750': Loaded 'e72kt9_f', No symbols loaded. |
Re: web service returns blank page when invoking
Ok so I decided to load it in Mozilla instead of IE and Mozilla
displayed it but with an error: At the top of the page it reads: "This XML file does not appear to have any style information associated with it. The document tree is shown below." Below it is: <string>Hello World</string> |
Re: web service returns blank page when invoking
Post the source code from Mozilla.
-- HTH, Kevin Spencer Microsoft MVP ..Net Developer The sun never sets on the Kingdom of Heaven "David" <drunderw@presby.edu> wrote in message news:1122487914.869168.251580@g43g2000cwa.googlegr oups.com... > Ok so I decided to load it in Mozilla instead of IE and Mozilla > displayed it but with an error: At the top of the page it reads: > > "This XML file does not appear to have any style information associated > with it. The document tree is shown below." > > Below it is: > <string>Hello World</string> > |
Re: web service returns blank page when invoking
http://localhost/WebService1/Service1.asmx?WSDL
=========================================== <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> <s:element name="HelloWorld"> <s:complexType /> </s:element> <s:element name="HelloWorldResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> </s:schema> </wsdl:types> <wsdl:message name="HelloWorldSoapIn"> <wsdl:part name="parameters" element="tns:HelloWorld" /> </wsdl:message> <wsdl:message name="HelloWorldSoapOut"> <wsdl:part name="parameters" element="tns:HelloWorldResponse" /> </wsdl:message> <wsdl:portType name="Service1Soap"> <wsdl:operation name="HelloWorld"> <wsdl:input message="tns:HelloWorldSoapIn" /> <wsdl:output message="tns:HelloWorldSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="Service1Soap" type="tns:Service1Soap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="HelloWorld"> <soap:operation soapAction="http://tempuri.org/HelloWorld" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Service1"> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/" /> <wsdl:port name="Service1Soap" binding="tns:Service1Soap"> <soap:address location="http://localhost/WebService1/Service1.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions> |
Re: web service returns blank page when invoking
Source from: http://localhost/WebService1/Service1.asmx/HelloWorld
================================================== ==== <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">Hello World</string> |
Re: web service returns blank page when invoking
Very odd. I copied and pasted this into NotePad, saved it as an XML file,
and opened it in IE, with no problems. Perhaps it is an IE setting that is causing your problem. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer The sun never sets on the Kingdom of Heaven "David" <drunderw@presby.edu> wrote in message news:1122489233.253537.143320@g44g2000cwa.googlegr oups.com... > Source from: http://localhost/WebService1/Service1.asmx/HelloWorld > ================================================== ==== > > <?xml version="1.0" encoding="utf-8"?> > <string xmlns="http://tempuri.org/">Hello World</string> > |
| All times are GMT. The time now is 09:39 AM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.