Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2006

Tip: Looking for answers? Try searching our database.

Web services not sending fields in Soap Envelop

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tshad - 30 Mar 2006 02:58 GMT
We have a web service that is not sending a field in the Soap Envelope.

For example, when we add a web reference, we get something like:

***************************************************
public class EmployeeTaxServiceService :
System.Web.Services.Protocols.SoapHttpClientProtocol {
public EmployeeTaxServiceService() {
this.Url = "http://10.0.0.25:8080/data_connect/services/EmployeeTaxService";

}
[System.Web.Services.Protocols.SoapRpcMethodAttribute("",
RequestNamespace="http://webservice.fm.com",
ResponseNamespace="http://10.0.0.25:8080/data_connect/services/EmployeeTaxService")]

[return:
System.Xml.Serialization.SoapElementAttribute("readEmployeeTaxReturn")]
public EmployeeTaxDataBean readEmployeeTax(string in0, string in1, string
in2, string in3, string in4, string in5) {
object[] results = this.Invoke("readEmployeeTax", new object[] {
in0,
in1,
in2,
in3,
in4,
in5});
return ((EmployeeTaxDataBean)(results[0]));
}
*****************************************************

This particular Webservice will not send "in1".  If I look at the soap
packet being sent, I see <in0>something</in0><in2>something</in2>.

How can that happen?????

What would cause Microsoft to send a different number of variables than is
in the Proxy file?

It's not like I forgot to add a field (I would get a compile error).  But
even if I didn't, the xml tag would still be there.

Thanks,

Tom
tshad - 31 Mar 2006 17:22 GMT
I figured out what was happening.

Apparently, MS does check to see whether the value is valid - it just
doesn't tell you about it.  It just doesn't create the field and sends the
soap envelope.

When I was in the debugger, I noticed the value I was putting in (in1 - from
below), it was null.  The soap type was string.  So MS just moves everything
up (in0,in2,in3 etc in the case below).

When I set the in1 value to "", it worked fine.

Tom
> We have a web service that is not sending a field in the Soap Envelope.
>
[quoted text clipped - 41 lines]
>
> Tom

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.