473,403 Members | 2,293 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,403 software developers and data experts.

SoapDisplayExtension & webservices

Im studying for my 70-320 exam and i am working from Amit Kalani exam prep book but i can not get one of the examples to work.

When i add SoapDisplayExtension to the [WebMethod] like [WebMethod, SoapDisplayExtension] i get the follow error:-

An unhandled exception of type 'System.InvalidOperationException' occurred in system.web.services.dll

Additional information: Client found response content type of '', but expected 'text/xml'.

at this point:-

public Bug GetBug(int bugID) {
object[] results = this.Invoke("GetBug", new object[] {
bugID});
return ((Bug)(results[0]));
}

I know that the webservice works because i can open it and test it in Internet Explorer, so now im stuck

Can anyone help
PLEASE

___
Newsgroups brought to you courtesy of www.dotnetjohn.com
Nov 23 '05 #1
1 1319
Ron,

I don't know if you found the answer to this, but I have chased this problem
for a couple of days. It turns out to be a security problem, the anonymous
internet user does not have write access to the folder specified in the
SoapDisplayExtension.

Hope this helps,
Dick Wood

"Ron Prowse" <Ro********@NOSPAME.lineone.net> wrote in message
news:eD**************@TK2MSFTNGP11.phx.gbl...
Im studying for my 70-320 exam and i am working from Amit Kalani exam prep
book but i can not get one of the examples to work.

When i add SoapDisplayExtension to the [WebMethod] like [WebMethod,
SoapDisplayExtension] i get the follow error:-

An unhandled exception of type 'System.InvalidOperationException' occurred
in system.web.services.dll

Additional information: Client found response content type of '', but
expected 'text/xml'.

at this point:-

public Bug GetBug(int bugID) {
object[] results = this.Invoke("GetBug", new object[] {
bugID});
return ((Bug)(results[0]));
}

I know that the webservice works because i can open it and test it in
Internet Explorer, so now im stuck

Can anyone help
PLEASE

___
Newsgroups brought to you courtesy of www.dotnetjohn.com

Nov 23 '05 #2

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

Similar topics

4
by: Norm Dotti | last post by:
I'm using the AppDomain.CurrentDomain.GetAssemblies() method to obtain a list of currently loaded assemblies. This returns the expected assembly name and version values. However, if I make a...
7
by: Thomas | last post by:
Hi all! Currently I have a web application that consists of a classic frameset. I would like to rebuild the application and just use tables or layers. The problem is, that some parts of the...
1
by: robby valles | last post by:
My company has a large windows form app with the datalayer being webservices. pretty randomly the webservice calls will either be very slow or i'll get the server unavailable. there are times when...
1
by: Colin Graham | last post by:
My skills are in VB. Net/SQL Server and i have touched on PDA development mainly as a tester. i am aware of using webservices for functionality. I have been given a task to develop a solution...
2
by: Peter McEvoy | last post by:
Folks, I've been building a Webservice API for a contract that will be exposed to the internet at large. There are two endpoints, and each endpoint contains a number of webmethods. Every...
5
by: | last post by:
Hi, How long do webservice objects live for? In particular, if i have static variables filled with data from a static constructor in a webservice, how long will that data persist? thxs
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
1
by: smeel | last post by:
Hi Guys, I'm experimenting with Web Services and would like to know how to use a WSDL file that is hosted on another computer. In the C#.NET language In Visual Web Developer I have already...
2
by: GaryDean | last post by:
We were calling out to a web service just fine before we put our server behind a firewall. Now we can't call out. Port 80 is open in the firewall. What ports need to be open? -- Regards, Gary
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.