473,385 Members | 1,427 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,385 software developers and data experts.

Testing an XML web service

Hello. I'm new to web services. I'm trying to test my web service. It both accepts and returns an XML attribute type, and I'm looking for the best way to test it by giving it data, and viewing the results.

I did the introductory 'Hello World' web service and it was easy to test because it simply returns test. But I'm returning an OBJECT and I'm clueless. Please enlighten me!

Here's the WebMethod:

<WebMethod()> _
Public Overridable Function EmployeeValidation(<System.Xml.Serialization.XmlEl ementAttribute("EmployeeValidation-Request", [Namespace]:="CATSIVRSchema.xsd")> ByVal employeeValidationRequest As EmployeeValidationREQ) As <System.Xml.Serialization.XmlElementAttribute("Emp loyeeValidation-Response", [Namespace]:="CATSIVRSchema.xsd")> EmployeeValidationRESP Implements ICATSIVRServicePort.EmployeeValidation

End Function

Here's the EmployeeValidation-Request entries from the XSD:

</xs:element>
<xs:element name="EmployeeValidation-Request" type="EmployeeValidation-REQ">
<!-- element that instantiates the request for EmployeeValidation -->
</xs:element>

<xs:complexType name="EmployeeValidation-REQ">
<!-- Complex Type that contains request information for EmployeeValidation -->
<xs:sequence>
<xs:element name="EmployeeValidation-DataIn" type="EmployeeValidation-DataIn" />
</xs:sequence>
</xs:complexType>

<xs:complexType name="EmployeeValidation-DataIn">
<!-- Complex Type that contains all information required for executing the CATS IMS Call EmployeeValidation -->
<xs:sequence>
<xs:element name="EmployeeValidation-TransactionCode" type="TransactionCode" />
<xs:element name="EmployeeValidation-AirlineCode" type="AirlineCode" />
<xs:element name="EmployeeValidation-EmployeeNumber" type="EmployeeNumber" />
<xs:element name="EmployeeValidation-PinNumber" type="PinNumber" />
<xs:element name="EmployeeValidation-ErrorCode" type="ErrorCode" />
<xs:element name="EmployeeValidation-UnixTimeStamp" type="UnixTimeStamp" />
</xs:sequence>
</xs:complexType>

ANY help would be appreciated, no matter how trivial!!
Jan 24 '07 #1
0 941

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: John Olbert | last post by:
We have a large application (the Exe is about 10 mb Released) built as a C++ unmanaged Solution under Vs2003. This App is targeted for Win2000. The latest Service Pack for Windows 2000 has...
2
by: Popoxinhxan | last post by:
Could anyone give me a guide or example of how to test the web service Here is my web service but i don't know how to write the test for it public class Service{ private string m_ERR_NO_LISTING=...
4
by: Vlad | last post by:
I am implementing class that uses Web service written by another and it is not implemented yet. How can I test my class using NUnit framework without make changes in future when web service will be...
3
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...
4
by: Daniel.Benedek | last post by:
Hey there, I have a number of web services that interact with each other ( send requests to each other etc ). I would like to test the interaction between them ? Does anyone have any ideas as to...
24
by: David | last post by:
Hi list. What strategies do you use to ensure correctness of new code? Specifically, if you've just written 100 new lines of Python code, then: 1) How do you test the new code? 2) How do...
4
by: David | last post by:
Hi list. Do test-driven development or behaviour-driven development advocate how to do higher-level testing than unit testing? types of testing: unit integration system
0
by: Rod | last post by:
This is my first WCF service and it is running on my development machine (XP Pro SP2) under IIS, I am using wsHttpBinding. (I will eventually put it onto a Windows 2003 Server running under IIS on...
3
by: David Moss | last post by:
Hopefully a service like this already exists and I just haven't found it yet. If not it could be an idea for some kind soul(s) to pick up and run with ;-) As someone who writes and releases...
3
by: TompIfe | last post by:
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.