473,407 Members | 2,315 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,407 software developers and data experts.

Null Web Service Request/Response

Hi,

I've generated a client proxy and web service stub using WSDL.exe.

All appears ok. The client proxy .cs is in the client app running in VS2005
and the web service stub is running in another instance of VS2005. Both
projects build and when debugging, brealpoints are hit.

When the client app is using instantiated client proxy objects, the response
object sent to web service 'arrives' empty. When the request object is sent
back from web service, it is empty back in the client application.

I can run exactly the same code but now add a 'web reference' to the web
service on localhost and re-type the web service, request and response
objects accordingly and this sees the request and response objects correctly
marshalled/serialized between the client and server apps.

I am new to web services but my understadning was that the proxy allowed for
ease of development and deployment without having to add a 'web reference'
in my client project and simply setting the URL between environments is all
that is required.

1) How do I get the proxy objects to marshall correctly?
2) If I must have a 'Web Reference', how is this dynamic in code/config for
easy switch between dev/test/prod environments?
thanks,

Simon
Nov 7 '06 #1
1 4023
"Gramps" <si**********@NO.SPAMiprimus.com.auwrote in message
news:OK**************@TK2MSFTNGP03.phx.gbl...
Hi,

I've generated a client proxy and web service stub using WSDL.exe.

All appears ok. The client proxy .cs is in the client app running in
VS2005 and the web service stub is running in another instance of VS2005.
Both projects build and when debugging, brealpoints are hit.

When the client app is using instantiated client proxy objects, the
response object sent to web service 'arrives' empty. When the request
object is sent back from web service, it is empty back in the client
application.
You probably have a mismatch in the namespaces between the client and the
server.

Namespaces are critical in XML. The following two XML documents are totally
different:

<prefix:root xmlns:prefix="urn:one.namespace.com"/>

<prefix:root xmlns:prefix="urn:two.namespace.com"/>

If your server is expecting the second document and you send it the first,
it will receive null, since that's "how much" of the second document you
sent it!

John
Nov 7 '06 #2

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

Similar topics

4
by: kyl | last post by:
A Java Axis consumed by .Net C# client, it built and executed the WS method from the WSDL gotten from OK, the response object is NULL. Is there any more thing more should be done on Java server?
5
by: David Lozzi | last post by:
Howdy, I wrote a web service in .Net for my customer. My customer has another vendor who now has to consume it but they are not using Visual Studio. Most of their pages are jsp, and they said...
2
plumpnation
by: plumpnation | last post by:
I have now got this bulky piece of script working, it reads the form correctly, which sends the request to the web service using SOAP. It conforms to their DTD and the web service then responds and...
3
by: Jon L | last post by:
Hi, I'm hoping someone can help me with this problem. I'm not sure whether the problem lies with the software or with my understanding of the language. I'm using the Microsoft.XMLDOM object...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
1
by: CraigMuckleston | last post by:
I have built a windows service that should check whether a page can be returned from a site (from various servers). If not, it logs to the Application Error log. My trouble is this. It runs once, but...
2
by: crabsdf | last post by:
My project is a single method class which takes a xml object and, using Apache FOP, transforms it into a PDF which is returned as an output stream. Here is full code package...
3
by: supperham | last post by:
hi: can sone one tell me how to use fedex web service in php to calculate shipping fee? i already have fedex account and 4 keys used to test application Test...
0
by: Algobardo | last post by:
Good morning, this is the first time i write on this forum because i googled and i've seen related post with no solution. I will expose briefly the problem. I'm using c# 3.5 and i'm trying using...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.