467,134 Members | 1,049 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,134 developers. It's quick & easy.

web service response is null

My C# Winform WebService client is attempting to access data from a Web
Service written in Java and running on an Oracle App Server 10.3. I have a
TCP/IP monitor running and have verified that there is a payload being
returned. However, my response object remains a null after the app
completes the web service call. Somehow the data which is being returned is
being filtered out.

I should note that the wsdl provided by the service passes WS-I and VS makes
no complaints when I add the Web Reference and when I run the application. I
have seen multiple postings regarding similar problems but most of them
appear to have no resolution. Is there any way I can determine why the
response is null?

Steve
Nov 23 '05 #1
  • viewed: 9162
Share:
4 Replies
When you see null results from a response that does have a valid body, that
typically means the XmlSerializer (which does deserialization at the client
side) does not expect or understand the elements it's getting. It will ignore
anything it doesn't know about and fill in nulls (or equivalent valuetypes)
for expected stuff it doesn't get.

So, this indicates a metadata problem. Did you check the wsdl ?

-- Henkk

"Steven.Dahlin" wrote:
My C# Winform WebService client is attempting to access data from a Web
Service written in Java and running on an Oracle App Server 10.3. I have a
TCP/IP monitor running and have verified that there is a payload being
returned. However, my response object remains a null after the app
completes the web service call. Somehow the data which is being returned is
being filtered out.

I should note that the wsdl provided by the service passes WS-I and VS makes
no complaints when I add the Web Reference and when I run the application. I
have seen multiple postings regarding similar problems but most of them
appear to have no resolution. Is there any way I can determine why the
response is null?

Steve

Nov 23 '05 #2
The wsdl is well-formed and it is valid. It also passes all the WS-I
validation tests. I am not sure at this time how to proceed.

Steve

"Henk de Koning" wrote:
When you see null results from a response that does have a valid body, that
typically means the XmlSerializer (which does deserialization at the client
side) does not expect or understand the elements it's getting. It will ignore
anything it doesn't know about and fill in nulls (or equivalent valuetypes)
for expected stuff it doesn't get.

So, this indicates a metadata problem. Did you check the wsdl ?

-- Henkk

"Steven.Dahlin" wrote:
My C# Winform WebService client is attempting to access data from a Web
Service written in Java and running on an Oracle App Server 10.3. I have a
TCP/IP monitor running and have verified that there is a payload being
returned. However, my response object remains a null after the app
completes the web service call. Somehow the data which is being returned is
being filtered out.

I should note that the wsdl provided by the service passes WS-I and VS makes
no complaints when I add the Web Reference and when I run the application. I
have seen multiple postings regarding similar problems but most of them
appear to have no resolution. Is there any way I can determine why the
response is null?

Steve

Nov 23 '05 #3
Hello Steven.Dahlin,
Make sur ethe message returned from the service conforms to the wsdl

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
The wsdl is well-formed and it is valid. It also passes all the WS-I
validation tests. I am not sure at this time how to proceed.

Steve

"Henk de Koning" wrote:
When you see null results from a response that does have a valid
body, that typically means the XmlSerializer (which does
deserialization at the client side) does not expect or understand the
elements it's getting. It will ignore anything it doesn't know about
and fill in nulls (or equivalent valuetypes) for expected stuff it
doesn't get.

So, this indicates a metadata problem. Did you check the wsdl ?

-- Henkk

"Steven.Dahlin" wrote:
My C# Winform WebService client is attempting to access data from a
Web Service written in Java and running on an Oracle App Server
10.3. I have a TCP/IP monitor running and have verified that there
is a payload being returned. However, my response object remains a
null after the app completes the web service call. Somehow the data
which is being returned is being filtered out.

I should note that the wsdl provided by the service passes WS-I and
VS makes no complaints when I add the Web Reference and when I run
the application. I have seen multiple postings regarding similar
problems but most of them appear to have no resolution. Is there
any way I can determine why the response is null?

Steve

Nov 23 '05 #4
Steven,

Can you try deploying your web service as Wrapped/Literal? I was having the
same problem and this fixed it. More information at the following URL. I
believe the WebSphere implementation is based on Axis as well.

http://marc.theaimsgroup.com/?l=axis...4879902571&w=2
Carson
"Steven.Dahlin" wrote:
The wsdl is well-formed and it is valid. It also passes all the WS-I
validation tests. I am not sure at this time how to proceed.

Steve

"Henk de Koning" wrote:
When you see null results from a response that does have a valid body, that
typically means the XmlSerializer (which does deserialization at the client
side) does not expect or understand the elements it's getting. It will ignore
anything it doesn't know about and fill in nulls (or equivalent valuetypes)
for expected stuff it doesn't get.

So, this indicates a metadata problem. Did you check the wsdl ?

-- Henkk

"Steven.Dahlin" wrote:
My C# Winform WebService client is attempting to access data from a Web
Service written in Java and running on an Oracle App Server 10.3. I have a
TCP/IP monitor running and have verified that there is a payload being
returned. However, my response object remains a null after the app
completes the web service call. Somehow the data which is being returned is
being filtered out.

I should note that the wsdl provided by the service passes WS-I and VS makes
no complaints when I add the Web Reference and when I run the application. I
have seen multiple postings regarding similar problems but most of them
appear to have no resolution. Is there any way I can determine why the
response is null?

Steve

Nov 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ankit Aneja | last post: by
dmjpro
3 posts views Thread by dmjpro | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.