Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 779431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T19:55:37+00:00 2026-05-14T19:55:37+00:00

I have a custom class declared as follows (in vb.net) <Serializable()> Public Class NumInfo

  • 0

I have a custom class declared as follows (in vb.net)

<Serializable()>
Public Class NumInfo 
    Public n As String     
    Public f As Integer     
    Public fc As char()     
    Public t As Integer     
    Public tc As char()     
    Private validFlag As Boolean = True    

    Public Sub New()    
    End Sub 
    'I also have public properties(read/write) for all the public variables

End Class

In my service.asmx codebehind class I have a webmethod as follows:

  Public Function ConvertTo(ByVal info As NumInfo) As String        
      Return mbc(info)<br>'mbc is another function defined in my service.asmx "service" class
  End Function

The problem is that when I start debugging it to test it, the page that I get does not contain any fields where I could input the values for the public fields of numInfo. How do I initialise the class? There is no “Invoke” button either. All I see are soap details as below:

ConvertTo
Test
The test form is only
available for methods with primitive
types as parameters.
SOAP 1.1
The
following is a sample SOAP 1.1 request
and response. The
placeholders
shown need to be replaced with actual
values.
POST /Converter/BC.asmx

HTTP/1.1
Host:
localhost
Content-Type: text/xml;
charset=utf-8

Content-Length:
length
SOAPAction:
“http://Services/ConvertTo“

<?xml
version=”1.0″
encoding=”utf-8″?>
<soap:Envelope
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;

xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221;

xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”&gt;
<soap:Body>
<ConvertTo xmlns=”http://Services/”&gt;
<info>
<n>string</n>
<f>int&lt/f>
<fc>
<char>char</char>
<char>char>/char>
</fc>
..etc..

What am I doing wrong? For the record I tried replacing char() with string to see if it was the array causing problems but that didn’t help either. I’m fairly new to web services. I tried replacing the custom object parameter with a primitive parameter just to check how things worked and it rendered a page with an input field and invoke button. I just can’t seem to get it working with custom object. Help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T19:55:38+00:00Added an answer on May 14, 2026 at 7:55 pm

    as the message says “The test form is only available for methods with primitive types as parameters.” meaning string, bool, int etc.

    I find it is simple enough to set up a test page where I can define my object and pass it to the web method for debugging purposes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string variable that represents the name of a custom class. Example:
I have a custom class loader so that a desktop application can dynamically start
I have a custom class that implements that IComparable. This class is stored in
I have a custom class that implements ICollection , and this class is readonly,
I have a custom class Contact . I am trying to bind a List<Contact>
Say you have a custom class call it Foo. When you then have an
I currently have a custom session handler class which simply builds on php's session
I have a std::multimap where key is a custom class. Something like this: Class
I have a custom attribute which can be assigned to a class, [FooAttribute] .
I have this question: Does implementing a custom MembershipProvider class needs you to implement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.