Click here to Skip to main content
13,139,254 members (50,959 online)
Rate this:
Please Sign up or sign in to vote.
Hi All.
I got a problem here. How to invoke a webservice with complex or non-primitive parameters in ASP.NET/VB.Net.
I have created a webservice but I can't seem to invoke the methods simply bcoz the codes are complex or are of non-primitive parameters. The following message appears:

The test form is only available for methods with primitive types as parameters.

How do I go about it?
Many thanks.

This is the complex code.

<WebMethod()> _
        Public Function WatchListWS(ByVal strName As String) As WatchListIntResp
        Dim watchStatus As String = ""
        Dim resp As New WatchListIntResp
        Dim objWatchList As Object = Server.CreateObject("VREMIT.Enterprise.ComWatchList")
            watchStatus = objWatchList.mtdMatchExact(strName, g_global_region_code)
            If watchStatus <> "" Then
                resp.watchlistIntCode = "3"
                resp.watchlistIntMsg = "Hit International"
                'strResult = "3 | Hit International "
                'strResult = " 0 | Not Watched "
                resp.watchlistIntCode = "0"
                resp.watchlistIntMsg = "Not Watched"
            End If
            Return resp
        Catch ex As Exception
            Return Nothing
        End Try
    End Function
Posted 10-Mar-13 3:50am
Updated 10-Mar-13 21:54pm
aspnet_regiis -i 10-Mar-13 12:55pm
Show us the code...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

If you want to test your web service then grab SOAPUI. A very good tool, though written in Java and hence will require JDK on your machine.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100