473,385 Members | 1,372 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.

Service method param omitted incorrectly when null (sometimes!)

I have a strange problem with the class generated by Add Web Reference
(VB 2005) for an Axis web service. There is one function, getUser(),
that has a nillable positiveInteger user_id parameter. When Nothing is
passed for this parameter, it is omitted rather than being sent with a
true nil attribute. The really odd thing is that the problem appears to
be related to the presence of two other methods that also have a
user_id parameter.

I have found three ways to work around the problem:

1. Remove the generated code for the two other methods.
2. Change the name of the user_id parameter for getUser() in the
generated code.
3. Use wsdl.exe to generate the proxy class instead.

Doing any of these things causes a null value to correctly generate the
element with a nil attribute.

Is there a known bug that would cause this behavior? Thanks for any
leads on this.

Mark

Jul 5 '06 #1
0 714

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

Similar topics

1
by: SQLReporter | last post by:
Hi, I am trying to access a webservice method from a vbscript. I have a .cs file generated for my webservice. I am not sure how to proceed from this point onwards.... I have tried generating .dll...
2
by: raymond | last post by:
Hi, Is it possible to create a proxy client class or a web service method by VS.NET without using wsdl? My stupid client is using a xml schema (.xsd) to describe all their web service methods...
3
by: Paul Michaud | last post by:
Consider the following: Class A { .... } Class B:A { ....
0
by: dpp | last post by:
Hi I am calling a method of a .NET component from both win forms and web service applications. Strangly, it is working fine from win forms application, but when i call the same method (same...
2
by: SM | last post by:
Hi, I have a web service method developed in .Net 1.1 where both http get and post protocols are enabled. the problem is that , when i access my web method from ie window like...
4
by: Abhi | last post by:
Hi All, I have a web service method which works fine when called from my local machine i.e. from localhost but when I publish the web services to a remote machine it throws an invalid cast soap...
0
by: Matteo | last post by:
Hi everybody, can anyone tell me how to pass an XMLNode to a web service method? While using structs as response of the web service all works fine, but there's a certain difficulty with XML...
1
by: vaskarbasak | last post by:
Hi All, 1.Why do we override the doGet and/or doPost methods instead of the service method? 2. We shouldn't synchronize the service method. but what will happen if we do so, except from the...
3
by: =?Utf-8?B?YW5kcmV3?= | last post by:
I have a web application demo page and a web service. On my machine everything works great. In our test environment the web service is working fine... when I point the demo page on my machine...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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.