473,776 Members | 1,572 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TESTING WEB SERVICE IN BROWSER

Hei,
I have a web service with web methods that take nullable DateTime parameters
(i.e., DateTime?)
When i open the service in IE7, I get the message that those methods cannot
be viewed ("not primitive types");
the other web methods can be invoked without problems.
Any suggestions on how I can change IE7 settings or something else?
Kind regards,
Tom Pederen
Oct 8 '08 #1
3 2408
"TompIfe" <tp******@commu nity.nospamwrot e in message
news:eT******** ******@TK2MSFTN GP05.phx.gbl...
Hei,
I have a web service with web methods that take nullable DateTime
parameters (i.e., DateTime?)
When i open the service in IE7, I get the message that those methods
cannot be viewed ("not primitive types");
the other web methods can be invoked without problems.
Any suggestions on how I can change IE7 settings or something else?
This has nothing to do with IE. The web page created from your service does
not know how to deal with anything other than primitive types.

You should create a client to test your service in any case. Such a
client-based test can be created in a unit test, using NUnit or the unit
test tool in Visual Studio Team System Developer Edition. That allows the
test to be run automatically, with a clear pass/fail report.

--
John Saunders | MVP - Connected System Developer

Oct 8 '08 #2
Hi Tom,

As for the WebService Test page issue, it is due to the type system
supported by the test page. Generally, for ASMX webservice, it will try to
generate a web page for user to test the webmethods. However, those page
use textbox to accept parameters, therefore, it will only be able to afford
simple types(such as the primitive types--- int, string, bool....). Those
complex type such as DateTime or custom class is not supported by this test
webservice page.

As John mentioned, if you want to fully test a webservice, you can simply
create a console application and "Add WebReference" agains the service to
test it. In addition, the advantage of testing via "generated proxy" (over
the web page test interface) is that webservice proxy is using SOAP
protocol to invoke the webservice while the test page use simply http get
verb which cannot fully covers all the characters of SOAP based XML
webservice.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

=============== =============== =============== =====
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "TompIfe" <tp******@commu nity.nospam>
Subject: TESTING WEB SERVICE IN BROWSER
Date: Wed, 8 Oct 2008 13:07:02 +0200
Hei,
I have a web service with web methods that take nullable DateTime
parameters
(i.e., DateTime?)
When i open the service in IE7, I get the message that those methods cannot
be viewed ("not primitive types");
the other web methods can be invoked without problems.
Any suggestions on how I can change IE7 settings or something else?
Kind regards,
Tom Pederen

Oct 9 '08 #3
Hi,
I have created a client that consumes the web service and it works fine.
I am not familiar with unit tests, but I will look into it.
Thank you for your assistance.
Tom Pedersen
"John Saunders" <no@dont.do.tha t.comwrote in message
news:eF******** *****@TK2MSFTNG P06.phx.gbl...
"TompIfe" <tp******@commu nity.nospamwrot e in message
news:eT******** ******@TK2MSFTN GP05.phx.gbl...
>Hei,
I have a web service with web methods that take nullable DateTime
parameters (i.e., DateTime?)
When i open the service in IE7, I get the message that those methods
cannot be viewed ("not primitive types");
the other web methods can be invoked without problems.
Any suggestions on how I can change IE7 settings or something else?

This has nothing to do with IE. The web page created from your service
does not know how to deal with anything other than primitive types.

You should create a client to test your service in any case. Such a
client-based test can be created in a unit test, using NUnit or the unit
test tool in Visual Studio Team System Developer Edition. That allows the
test to be run automatically, with a clear pass/fail report.

--
John Saunders | MVP - Connected System Developer

Oct 9 '08 #4

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

Similar topics

56
3341
by: Don G | last post by:
I currently have IE6 and Firefox installed on my machine, and I switch between the two when testing web sites I am working on. It is my understanding that IE5 is still pretty common. Is this correct? Should I be testing my web site with IE5 as well? If so, does anyone know where I might be able to download a copy? Is it possible to install IE5 on a machine with IE6? I know that there are many browsers out there, and that each has...
5
1588
by: John | last post by:
Hi I am trying to get web reference to my first (!) web service which is on a remote host. I am getting the following error; Server Error in '/' Application. Runtime Error Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application
2
1174
by: Stephen | last post by:
Hi, I have developed my application using VS.NET and used project properties to both IE and Netscape. I am testing my application on IE and Netscape. The pages appear perfect on IE but totally messed up on Netscape. can anyone please suggest me how to solve this problem? Thanks, Stephen
2
1903
by: NG | last post by:
Hi All This is a post further to my previous problem that I solved with the help of my friends at csharp group. I have a UI application that has a web-browser. When this application is run with the URL as one of the command parameters, this application accesses the web page in its web browser and parses the data of this web-site to get the specific information this app is interested in. This application works perfectly when run from a...
3
2444
by: Joe Van Dyk | last post by:
Say I've written a class that wraps around a particular (complex) communication service library. I want to unit test objects that use that communication service. Is the "best practice" to create a Communication_Service abstract base class that my Concrete_Communication_Service and my Mock_Communication_Service both inherit from? (and then use the mock service when unit testing)
0
875
by: John A Grandy | last post by:
For a web service whose base url returns a help page to the browser , is it possible in code to test connectivity to this web service just using the base url ?
1
3884
by: Tom Yee | last post by:
I would like to write a Windows Service that can communicate with any open browser windows that an interactive user may be running. The service itself does not need to have a UI. The company that I work for develops software that monitors Customer Service Representative (CSR) performance. When you call a help desk and hear "This call may be monitored for quality purposes", the software that does this monitoring very likely has been...
11
3659
by: Glenn | last post by:
Hi I've been experimenting with managing state using the Session object. I've created a simple WS with a couple of methods, one which sets a string value, another that retrieves it. Each method has the WebMethodAttribute.EnableSession set to true. When I run the test page the session is maintained. However, using a console application, in between setting the string value and attempting to
11
2378
by: VK | last post by:
In the continuation of the discussion at "Making Site Opaque -- This Strategy Feasible?" and my comment at http://groups.google.com/group/comp.lang.javascript/msg/b515a4408680e8e2 I have realized that despite suggestions to use DHTML-based modal dialogs are very common? there is not a single fully functional reliable copyright-free cross-browser alternative to say MsgBox (VBScript) or showModalDialog (IE). This way such suggestions up to...
0
9628
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9464
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10289
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8952
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6722
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5367
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4031
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3622
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2860
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.