Pass objects from and to web services

G

Gang Sheng

Hi, I am trying to call a web service and get a value object and send the same object back to another web service. Although the two services share the same dll, they are different asmx files. This produced a problem for me since in VS.NET I have to assgin different c# namespaces to the two web services. And I can not cast between Services1.valueObject and Service2.valueObject in the client code

Any ideas
 
J

Jan Tielens

This can be done by splitting the WSDL into separate parts. There is an
article that describes how to do this:
http://tinyurl.com/24qdv
Splitting up WSDL: The Importance of targetNamespace
Scott Seely
Microsoft Corporation

August 20, 2002

Summary: Explores how to use Microsoft Visual Studio .NET to split up the
WSDL into component pieces based on the XML namespace. This allows for reuse
of the XML Schema definitions and WSDL elements. (13 printed pages)


--
Greetz

Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan


Gang Sheng said:
Hi, I am trying to call a web service and get a value object and send the
same object back to another web service. Although the two services share the
same dll, they are different asmx files. This produced a problem for me
since in VS.NET I have to assgin different c# namespaces to the two web
services. And I can not cast between Services1.valueObject and
Service2.valueObject in the client code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top