?
Solved

Help regarding Building a webservice

Posted on 2010-08-24
4
Medium Priority
?
488 Views
Last Modified: 2013-11-19
Hi experts,

I need some help in building a webservice where I can consume another webservice which is returning data in the form of xml. Here I am able to call the service but I got stuck up with loading the data in the required format. One is get the required format I should be able to return this data back to client.  It is something like Client is calling a service which inturn call other service to retrieve data and return to client.
Format is something similar to this.

<parent1>
<childone/>
..
<parent1/>
<parent2>
<childone/>
..
<parent2/>
..........
..
.
.
.
.
.
.

So any help regarding building this service will be greatly appriciated.

Thanks,
AG
0
Comment
Question by:Anil Golamari
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
Akin Delu earned 1000 total points
ID: 33512516
why do you really need a webservice that calls another webservice, why not call the webservice from the application itself.
0
 
LVL 18

Author Comment

by:Anil Golamari
ID: 33512600
First web service is a wrapper, So now I need to build a web service where I can call the data from that wrapper. So now I should be able to get the required information instead of all the data from the service upto client.
0
 
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 1000 total points
ID: 33526746
Consuming a web service from inside another web service is the same code as consuming from any other WCF client.
Check:
http://msdn.microsoft.com/en-us/library/bb332338.aspx
http://blogs.msdn.com/b/ericwhite/archive/2010/05/11/getting-started-building-a-wcf-web-service.aspx
http://www.xvpj.net/2008/03/08/wcf-step-by-step-tutorial/
http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication

Even though it is tempting to build a web method returning a XmlNode, your web service consumer has to do the hard work of parsing that information I will strongly suggest to use a serializable class, like ChildNode (implementation details is up to you) so your web method can return List<ChildNode>
0
 
LVL 18

Author Comment

by:Anil Golamari
ID: 33596908
None of the solution helped me. Anyhow thanks for your time to look into my issue.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question