473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

pat27@gmx.at

Hello,

I have written a Web-Service and an ASP.NET Client and i wantedto use the SoapLogger fromhttp://searchvb.techtarget.com/vsnetTip/1,293823,sid8_gci817646_tax293034,00.html. I do all the tasks quoted in this paper. (forinstance copy the quoted code from this paper in myclass-file.). My Web-Service lies underC:\Inetpub\wwwroot\Reservation\reservation.as mx and the clientlies under C:\Inetpub\wwwroot\ReservationClient\Login.aspx andsome other aspx-sites.

But when i then execute my ASP.Net Client and call a Web-ServiceMethod, where i add the SoapLogger Attrribute in theWebService-Directive the following error occurs:

Server Error in '/ReservationClient' Application.
--------------------------------------------------------------------------------

Client found response content type of '', but expected'text/xml'.
Description: An unhandled exception occurred during the executionof the current web request. Please review the stack trace formore information about the error and where it originated in thecode.

Exception Details: System.InvalidOperationException: Client foundresponse content type of '', but expected 'text/xml'.

Source Error:
Line 515:[System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://unet.univie.ac.at/~a0106514/webservices/PersonLogin",RequestNamespace="http://unet.univie.ac.at/~a0106514/webservices/",ResponseNamespace="http://unet.univie.ac.at/~a0106514/webservices/", Use=System.Web.Services.Description.SoapBindingUse .Literal,ParameterStyle=System.Web.Services.Protoc ols.SoapParameterStyle.Wrapped)]
Line 516: public string PersonLogin(string sEmailAddress, stringsPassword) {
Line 517: object[] results = this.Invoke("PersonLogin", newobject[] {
Line 518: sEmailAddress,
Line 519: sPassword});
Source File: C:\Inetpub\wwwroot\ReservationClient\WebReferences \WebService\Reference.cs Line: 517

Stack Trace:
[InvalidOperationException: Client found response content type of'', but expected 'text/xml'.
]
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, StreamresponseStream, Boolean asyncCall) +1488
System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) +218
ReservationClient.WebService.Reservation.PersonLog in(StringsEmailAddress, String sPassword) inC:\Inetpub\wwwroot\ReservationClient\WebReferenc es\WebService\Reference.cs:517
ReservationClient.Login.ImageButton1_Click(Object sender,ImageClickEventArgs e) inC:\Inetpub\wwwroot\ReservationClient\Login.aspx. cs:90
System.Web.UI.WebControls.ImageButton.onclick(Imag eClickEventArgse) +109
System.Web.UI.WebControls.ImageButton.System.Web.U I.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +69
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandlersourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lectionpostData) +33
System.Web.UI.Page.ProcessRequestMain() +1258

--------------------------------------------------------------------------------
Version Information: Microsoft .NET FrameworkVersion:1.1.4322.573; ASP.NET Version:1.1.4322.573

Are you please able to say me what went wrong here?

Regards

patrick

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>TI3RMD8VWE2+FpdNRgmggQ==</Id>
Nov 21 '05 #1
0 1136

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.