A work, I have just been assigned to consume a web service using C# 2010. The web service is suppose to give me a list of customer ids. I need to obtain the list of customer ids by working with an .xsd file. (By look at the documentation for the xsd file, it looks like xml to me.) In addition from this web service, I obtain suppose to obtain files that I can download that are in word, pds, and tiff formats.
By the way, I know that I can connect to the web service since I have a command script, that can connect to ther web service. (The command script was written by the company that wrote the web service.)
Due to the requirements listed above, I am wondering if you can tell me the following:
1. How to connect a C# console, desktop, and/or web app to the web service?
2. How can I obtain the xsd file from the web service and transverse the xsd file to obtain the data I am looking for?
3. How can I download the word document, pdf, and/or tiff file from the web service?
Loading
Sie StePosted Aug 21, 2012, 11:47 PM
1 When I call the web service and ask for a document, the web service places the document in a directory path that I specify in an app.config file for the console application I just started to write. I always receive the file in a PDF format and not in a word document format. Thus if I want to convert the PDF file to a word document, I probably need to do the conversation after I rewceive the file, correct? If I am wrong, how would I accomplish this goal?
2. when I call the web service and from a command dos prompt, I have been directing the output to a text file for now. However the output I receive is the command I wrote plus the xsd file response. I know that I will need obtain the response in another way besides redirecting the output to a text file. Thus can you tell me how I can save the xsd file format reponse? In addition, can you tell me how I can determine how to parse the xsd results so I can obtain the data I am looking for?