Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > web service returns blank page when invoking

Reply
Thread Tools

web service returns blank page when invoking

 
 
David
Guest
Posts: n/a
 
      07-27-2005
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

 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      07-27-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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
>



 
Reply With Quote
 
 
 
 
David
Guest
Posts: n/a
 
      07-27-2005
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!

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      07-27-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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!
>



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      07-27-2005
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.

 
Reply With Quote
 
David
Guest
Posts: n/a
 
      07-27-2005
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>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      07-27-2005
Post the source code from Mozilla.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
The sun never sets on
the Kingdom of Heaven

"David" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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>
>



 
Reply With Quote
 
David
Guest
Posts: n/a
 
      07-27-2005
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">
<wsdlart name="parameters" element="tns:HelloWorld" />
</wsdl:message>

<wsdl:message name="HelloWorldSoapOut">
<wsdlart name="parameters" element="tns:HelloWorldResponse" />
</wsdl:message>
<wsdlortType name="Service1Soap">
<wsdlperation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn" />
<wsdlutput message="tns:HelloWorldSoapOut" />
</wsdlperation>
</wsdlortType>

<wsdl:binding name="Service1Soap" type="tns:Service1Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdlperation name="HelloWorld">
<soapperation soapAction="http://tempuri.org/HelloWorld"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdlutput>
<soap:body use="literal" />

</wsdlutput>
</wsdlperation>
</wsdl:binding>
<wsdl:service name="Service1">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/" />
<wsdlort name="Service1Soap" binding="tns:Service1Soap">
<soap:address
location="http://localhost/WebService1/Service1.asmx" />
</wsdlort>
</wsdl:service>

</wsdl:definitions>

 
Reply With Quote
 
David
Guest
Posts: n/a
 
      07-27-2005
Source from: http://localhost/WebService1/Service1.asmx/HelloWorld
================================================== ====

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">Hello World</string>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      07-27-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM
WebService Returns Black Page When Invoking David ASP .Net Web Services 2 07-27-2005 08:42 PM
Efficient way of dynamically invoking a method that returns a primitive type? Andreas Jakobik Java 3 12-09-2004 09:02 PM
Invoking Web Service wothout client proxy Chris ASP .Net Web Services 3 02-19-2004 07:08 PM
404 error invoking web service Tim Orr ASP .Net Web Services 0 07-22-2003 04:51 AM



Advertisments