Results 1 to 4 of 4

Thread: Xml Vs Soap?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    4

    Xml Vs Soap?

    I need to send data from on machine to another, they are not Web servers

    My team lead suggest to sent the data in SOAP format, I was wondering what is the advantage to send data in SOAP format when it's not Web (or web services)? Should I just sent it in normal XML file (without SOAP format, like envelope tag).


    Any suggestion is welcome.

    Thank you,

    Mike

  2. #2
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: Xml Vs Soap?

    I don't know what the state of SOAP is with .NET Web services et al, but you could certainly use native XML to send information.

    XML is, after all, only a file, and you can send files across thread,process,machines, and network boundaries.

    If it's simply copying data from one machines to another I'd look into FTP. If you are trying to replicate some form of COM communication then;

    (1) I would use COM
    (2) If it's not a web server you'll need to create your own TCP Send/Receive software
    (3) use SOAP

    If you had a webserver you'd be able to create ASP pages that could accept a stream of bytes (your XML) and process them accordingly. But as you said, it isn't.
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Xml Vs Soap?

    From what I remember (which may or may not be quite right) SOAP can be transactionaly based, while flat XML isn't. SOAP has stricter standards as far as formatting goes, so you can be guaranteed that the data is in the right format when you get it. Just because something isn't avail to the internet, doesn't mean it isn't (or can't be) a web service. It's the method of access. It's still possible to access it via HTTP internaly over an intranet. It depends on how you plan to send & recieve requests to the object.


    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Re: Xml Vs Soap?

    Quote Originally Posted by techgnome
    From what I remember (which may or may not be quite right) SOAP can be transactionaly based, while flat XML isn't. SOAP has stricter standards as far as formatting goes, so you can be guaranteed that the data is in the right format when you get it. Just because something isn't avail to the internet, doesn't mean it isn't (or can't be) a web service. It's the method of access. It's still possible to access it via HTTP internaly over an intranet. It depends on how you plan to send & recieve requests to the object.


    Tg
    Yes, I agree.

    You can promote stricter standards with XML by using schemas which should validate the XML for you.

    As for transactions, it is a pain in the @rse to perform strict two-phase commit yourself, so if this is a priority, then look to SOAP.

    You can, of course, implement transactions in a distributed manner using COM+
    "As far as the laws of mathematics refer to reality, they are not certain; and as far as they are certain, they do not refer to reality." - Albert Einstein

    It's turtles! And it's all the way down

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width