Announcement

Collapse
No announcement yet.

Home brewed tcp server supporting soap?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Home brewed tcp server supporting soap?

    I would like to create a webservice, the client will call a PB tcp server.
    Is there an easy approach similar to the client call libraries?
    hellobasic

  • #2
    How about SQLitening which does this and gives you SQL?
    Source is included. http://www.planetsquires.com/sqlite_client_server.htm
    Last edited by Mike Doty; 12 Aug 2009, 12:33 PM. Reason: Added URL
    How long is an idea? Write it down.

    Comment


    • #3
      I need to pass any kind of data, alternatives like sending (encoded) text i have already done those things.
      Just looking for a 'soap-server'
      hellobasic

      Comment


      • #4
        Code:
         Generated by: PowerBASIC COM Browser v.2.00.0070
        ' Date & Time : 8/13/2009 at 10:44 AM
        ' ------------------------------------------------
        ' Library Name: MSSOAPLib
        ' Library File: C:\Program Files\Common Files\MSSoap\Binaries\mssoap1.dll
        ' Description : Microsoft Soap Type Library
        ' GUID : {C65657D9-5C4B-421E-8DA6-AD4D590FE854}
        ' LCID : 0
        ' Version : 1.0
        ???
        Michael Mattias
        Tal Systems Inc. (retired)
        Racine WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          ???
          hellobasic

          Comment


          • #6
            These might help:
            http://www.aspfree.com/c/a/VB.NET/Ca...6-with-SOAP-30
            http://www.powerbasic.com/support/pb...ad.php?t=23525
            http://interpressfact.net/webservices/getjoke.asmx?WSDL
            How long is an idea? Write it down.

            Comment


            • #7
              What does the topic-title say?
              hellobasic

              Comment


              • #8
                Simply put, a soap server is an http server that accepts a post but the post data is in the form of xml

                <?xml version="1.0"?>
                <soap:Envelope
                xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
                soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
                ...
                Message information goes here
                ...
                </soap:Envelope>

                any one of the TCP IP Server programs will work with port 80. If you need 443 (I assume you do) you can use Scott Turchins solution's SSL example or you can figure out how to apply OpenSSL

                so the question is..
                do you need help with the client?
                help with the server?
                help with WebService calling the server?
                Sr. Software Development Engineer and Sr. Information Security Analyst,
                CEH, Digital Forensic Examiner

                Comment


                • #9
                  I was looking for an easy and similar support as found with the client side (as mistakenly shown above)

                  But.. i don't think there isn't such a simple thing.
                  It may not even be that hard to capture the xml into an xml document and parse it myself.
                  I have done that for the client side.
                  More work but saves me the issue of installing things.

                  Unless someone has a bright and simple idea?
                  It's all not that important though, if i don't like the requirements i'll go for plain xml anyway.

                  In the past i returned data as plain text but this was not an extendable format.
                  It required version tracking, soap may be a better choice.

                  The clientside can use the soap library or xmlhttp and so on, that's cool enough.

                  If i prepare the results properly i could even use wsdl for the client code

                  (Just some links to show the xml, pretty easy)
                  http://www.hellobasic.com/webservice...op=GetDateTime

                  http://www.hellobasic.com/webservices/test1.asmx
                  Last edited by Edwin Knoppert; 13 Aug 2009, 04:47 PM.
                  hellobasic

                  Comment


                  • #10
                    I was looking for an easy .....
                    ...
                    But.. i don't think there isn't such a simple thing.
                    You think right.

                    There is no elevator to success; you must climb the stairs.

                    MCM
                    Michael Mattias
                    Tal Systems Inc. (retired)
                    Racine WI USA
                    [email protected]
                    http://www.talsystems.com

                    Comment


                    • #11
                      I was reading in the book, "Wicked Cool Php" by William Steinmetz with Brian Ward, on page 149 thru 151 that SOAP may not be the way to really go. Quoting:
                      The bottom line is that if you plan to run a number of web services queries based on WSDL(Web Services Description Language) at once, you either need a lot of hardware or some way to bypass most of this process by contructing SOAP queries by hand.
                      He mentions many things, but one thing he mentions is that Google discontinued SOAP support for it web search service, and that even though SOAP is really not common as one might think, it is hanging on. He mentioned about encountering services based on Microsoft.NET.

                      He mentioned a REST web service, where it appears you send the server a POST or GET and receive a XML formated return.

                      This would seem more logical to me, where if one wanted to setup a server, a ready made efficient web server might be much quicker, easier, faster to build, more standardized, easier learning curve and flexible with cross platform along with future upgrades to hardware and operating systems then creating your own SOAP server.

                      I hope i did not miss the boat on what was being said above, but after reading what the author had said, which i am sure i have not conveyed it all, it makes sense to me to go the REST web server way, even though i have not studied it much at all.

                      I will leave it up to you to google the REST web server way of doing things.
                      p purvis

                      Comment


                      • #12
                        Thanks.

                        As i interpret your post is seems an ordinary post or get request but xml is returned.
                        That would only save the client's part imo but not the webserver's part.
                        To return xml with 'objects' it's obvious to use something like soap.

                        But there are many ways of course.
                        hellobasic

                        Comment

                        Working...
                        X