473,322 Members | 1,421 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,322 software developers and data experts.

Web services not sending fields in Soap Envelop

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.SoapHttpClientProtoc ol {
public EmployeeTaxServiceService() {
this.Url = "http://10.0.0.25:8080/data_connect/services/EmployeeTaxService";

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

[return:
System.Xml.Serialization.SoapElementAttribute("rea dEmployeeTaxReturn")]
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
Mar 30 '06 #1
1 1744
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
"tshad" <ts**********@ftsolutions.com> wrote in message
news:OF**************@tk2msftngp13.phx.gbl...
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.SoapHttpClientProtoc ol {
public EmployeeTaxServiceService() {
this.Url =
"http://10.0.0.25:8080/data_connect/services/EmployeeTaxService";

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

[return:
System.Xml.Serialization.SoapElementAttribute("rea dEmployeeTaxReturn")]
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

Mar 31 '06 #2

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

Similar topics

4
by: jm | last post by:
I understand how an XML formatted SOAP message is used to request items from a web service and how the XML formatted SOAP response is used. I am still missing the big picture, however. When is...
0
by: chr | last post by:
Hi, I'm trying to integrate a webservice into a c#-program, creating proxy classes from a wsdl-file with wsdl.exe. All works fine, except if containers are returned. Although I can see in the...
1
by: Champika Nirosh | last post by:
Hi all, I am just comparing webservice performance.. What really have in SOAP envelop?? Is it taking lots of space.. get me some data regarding this soap envelop
9
by: Phil B | last post by:
I am having a problem with a datetime from a web services provider The provider is sending the following SOAP response <?xml version="1.0" encoding="utf-8"?> <soap:Envelope...
4
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
I have seen many articles describing why versioning web services are important. I have a scenario that I would like to propose to seek a solution. I have a publicly consumable web service. Two...
2
by: Sinex | last post by:
Hi, I need to develop a simulator for my webservice. This simulator will be used by the clients development team. Client has given me a wsdl file. My simulator has to be a web service itself....
0
by: neerajdeswal | last post by:
Testing Soap envelop (as Text File) in RPC Method Hi, I have created a web service based on a interface contract given by client. Now client wants to test it based on a given...
0
by: lallous | last post by:
Hello, I am new to webservice internals and I used the web service wizard to generate the webservice class and appropriate objects. After issueing a request, I noticed that the SOAP message...
1
by: karthikpallavi | last post by:
Hi Everyone, I am battling an issue and I figured one of you guys on this forum may be able to help. I have a developed an application in java to access Microsoft Dynamics 10.0 through Web...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.