How to send an XML file to a Web Service (that records the XML file to HD)
I did this because I wanted to send an XML file to another computer,
whether it be next to the one I’m using or in another country.
You will need to adapt my example in order for it to work as you want
it. All I demonstrate here is that it is possible to send an XML file
to another computer using XML Web Services.
Let me know if it works for you.
The code assumes you can use Visual Studio.
Make the Web Service
1. Make a new project, choosing to make a Web Service.
2. In the code behind-page, place the code below.
3. Build the Web Service.
Code:
<WebMethod()>...
create valid xml to send to web service based on the schema provided by web service
Problem:
I have a web page which is being populated from a dataset containing multiple tables. I now need to call a web service and send the majority of this data to be incorporate into a mainframe system. I have been supplied with the schema that the web service will be using to validate the data. I am new to web services and I am not sure how to take my existing dataset and transform it into an xml document that matches the schema I was provided with.
There is a main schema with an element which is a custom complex type. This custom type consists of an element whi...
creating XML or XML Web Services?
Hi, I know XML is basically creating a file that allowed multiple applications to get data from the XML file ... and I am wondering .. why there is XML Web Services? What are the differences between these two? I am trying to create a Session that will keep update the value whenever it navigate to any page ... and get the Session value in multiple applications. In my guess, stores Session[] in XML file should work for what I am trying to do ... but what exactly is this XML Web Services? In what kind of situation we use XML or vice versa?
All developers, even novices and hobbyists, must be a...
XML vs XML Web Services
I'm getting up to speed with XML and have the following questions:
1) Knowing XML means knowing how to design and create XML Web Services?
2) I found the amount of details on XML/XML Web services overwhelming, harder to digest than HTML or a new language. What's the best approach to learn and use it?
Thanks.Please mark the post(s) that have helped you as "Answer"
1. No. They are different things
2. I'd start with a basic XML foundation (basic XML, XPath, and XSD), then review the basic WS things: soap, WSDL, and then from there on move to the WS-specs.Tomas Restrepo ...
XML Web service , Web form
hi i hope if u could help me in what i am making so i have a web form that does the collection of the information from the user when he hits the button this data must be sent to the xml web service but this service must deliver this data in xml then i read the information and insert it to the sql serevr Database could you help me becouse iam soo confused about where to start and what is the stuff to search in it iam new in the xml stuff help me pleaseeeeee“To be incredible you must produce great work”Visit My Bloghttp://www.dotnetjunkies.com/WebLog/hussein
My first question is why are yo...
how to create web service that create xml files availible for web application
Hi epxerts im new in web service. I have a web link which contains nothing when you visit that web link. But when you view the source it will show the xml source in it. I want to create that xml file through web service and make these xml files availible for my application. Best RegardsShaukat Waqar...
Web service in .NET from Java Web Service
Hi there,I'm pretty new to .net (although i have years of experience with the old vb 6, access 2k, as well as java)... and need some with perhaps either some syntax or something.Here is the wsdl.<wsdl:definitions targetNamespace="http://www.dynix.com/schema/book">−<wsdl:types>−<schema targetNamespace="GetBookInfoByISBN">−<complexType name="BookInfoType">−<sequence><element maxOccurs="1" minOccurs="0" name="Title" nillable="true" type="xsd:string"/><element maxOccurs=&quo...
How to call a .net web service from another .net web service?
Hi all,I have developed two asp .net web services using visual studio .net 2003.I wish to call one web service from another web service.I tried adding a web reference of the web service in another web service and was able to do so.but i m not able to access the web methods provided by the web servicecould you please suggest a way to go about itExpecting quick replyThanxCharmy
try to make sure that you reference it in the web reference and call it properly this is sample
[WebMethod()]
public double CalcDistance(int x1, int y1, int x2, int y2)
{
Calculator.Service1 calc = new...
xml stream from client to xml web service
I'm trying to send a serialized object based of an xsd to an xml web service by an xml stream.
I've serialized it into a MemoryStream and trying to sent it to the service that I've made.
The service should except this xml stream and create a serialized class of his own.
Giving the fact that I need to pass the Object as an xml stream, is it a good choisse to take a MemoryStream class for me?
Trying to pass the MemoryStream instance made at the client side I get a compilation error as the instance made at the client side is recognized as a System.Io.MemoryStream while the argum...
Xml file mapper using Web Service
Hi all, I am tasked with creating a web service that maps a number of files to a relational database. I have a good idea of how I might do this but need to make sure that a list of files get mapped to the database or else they are all rolled back. Here is the scenario of what should happen.
1. Call an initializing method with the list of files to process as a parameter
2. This method would return a unique identifier to the caller
3. Everytime the caller calls a mapping function also pass the identifier as a parameter
4. If a mapping function fails call a rollback function wit...
.NET web services Vs Java Web Services
Hello, does anyone know of a book or good source of information that compares .NET and Java Web Services? (I would like soemthing neutral if possible). I am thinking of approaching this subject for my dissertation? Many Thanks
Rob
Hi Rob,
Last year I had to give a powepoint presentation on Web Services. I noticed some good books at barnes and noble that discussed the subject. These books were specific to Java and discussed Web Services in a very clear fashion. They gave some elementary examples that were easy to understand.
I have not yet had the pleasure of creatin .NET Web Servi...
Passing an XML string as part of an XML Web Service
Hi there I am not too sure how to explain this but here goes..... I have a Web Service and I need to pass an XML page in the form of a string to a web service. My web service takes in 5 fields and one of those 5 fields is a string which is an xml page in the form of a string. I need to pass that string onto a COM object.Is it possible to pass XML in the form of a string to a web service or will that cause the web service to error?The web service is normally called from a PL/SQL stored procedure. If thats of any use.
Hi You can pass that XML string to the web method as a parameter.See...
XML Web Service as Admin of a Store Web site
I have created an XML Web Service (WebShopManager) with the IBS Store that will serve as an Admin program.
I download the Store data tables to a local client where I read, edit and then return data to the Store. The program can function as a logistic centre.
Does anyone have experience with this kind of solution? Can this work in reality when we have lots of data in the tables to download? What could be a problem?
I imagine this method much more flexible than the ordinary web based admin solutions.
Bo Wiklund...
Is web services a part of web Service?
I have a question: Is web services a part of web server?? And when the client calls web service, it means that client calls web server??
Or is it a different entity in itself which communicates separately both with client and server and acts as middleware application..
I am very confused..
Can someone explain me the architecture...???
Thanks..Dont forget to click "Mark as Answer" on the post that helped you.This credits the member,earns you a point & marks your thread as Resolved so that new users will know where to search for their queries.
When you build and dep...
Calling a Web Service from a Web Service
Hello,I was looking for some feedback on calling a web service from within a web service. I've heard that it's not good practice (or not possible). I have a scenario where I think it might make some sense.Within our infrastructure, we've created a web service that handles incoming updates on the statuses of all processes. This has proven to be a good thing since it allows applications to communicate across server to make status updates. It's also used by third party developers and applications to communicate with our infrastructure.Along these lines ... we are planning to create a new compon...