Click here to Skip to main content
11,798,546 members (72,325 online)
Rate this: bad
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
Edited 10-Mar-13 21:54pm
aspnet_regiis -i at 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
0 CPallini 585
1 Maciej Los 395
2 OriginalGriff 348
3 Abhinav S 257
4 phil.o 254
0 OriginalGriff 2,150
1 Maciej Los 1,790
2 KrunalRohit 1,456
3 CPallini 1,415
4 Richard MacCutchan 1,016

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 11 Mar 2013
Copyright © CodeProject, 1999-2015
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