SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    New to web services - where to start?

    Hi all

    I need to create a website using web services that are supplied as part of a new application we have purchased.

    Where do I start? I have a page which lists all of the services available.

    I come from a php background.

    I want to have a play with it for now, just pulling some data out and displaying it.

    I'm looking for a good book or articles on working with provided web services.

    Any assistance greatly appreciated.

  2. #2
    SitePoint Guru
    Join Date
    Feb 2009
    Posts
    994
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Each webservice is a world. And as several methods for accessing and work with. If you can be more specific about what webservices do you plan to use, I believe some good advices will arrive.


    Márcio

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Marcio

    We are using a Borland Delphi system shich has a web services module written for it.

    There are numerous 'functions' (is this the right term?) which can be called.

    So far I have installed soapUI 3.5.1 and added WSDL which I found on the web services portal page.

    This revealed all of the available functions and I have tested some of them and got data back out (within saopUI).

    If I copy out the generated soap code and put it online and view it, it returns a 200 OK message (which I understand is the standard message). But in soapUI it returns data, where as online it only returns the 200 OK message.

    Where do I go form here if I want to generate pages of data, the same as soapUI returns?

    My other concern is security. As the list of available functions is published, surely anyone could scan these and do exactly what I'm doing and access our data?

    Is there a way to lock down access to this? I guess it would be dependent on the setup.

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Posts
    98
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Some more information if this will assist:

    Code XML:
    POST [url]http://ts.example.com:1024/soap/example[/url] HTTP/1.1
    Accept-Encoding: gzip,deflate
    Content-Type: text/xml;charset=UTF-8
    SOAPAction: "urn:example-example#GetCustomerList"
    User-Agent: Jakarta Commons-HttpClient/3.1
    Host: ts.example.com:1024
    Content-Length: 636
     
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:example-example">
       <soapenv:Header/>
       <soapenv:Body>
          <urn:GetCustomerList soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <AStartingWith xsi:type="xsd:string">a</AStartingWith>
             <ACount xsi:type="xsd:int">1</ACount>
             <AStartPos xsi:type="xsd:int">1</AStartPos>
             <AMoreToCome xsi:type="xsd:boolean">?</AMoreToCome>
          </urn:GetCustomerList>
       </soapenv:Body>
    </soapenv:Envelope>

    The url tags should not be there, cant see how to get rid with the editor on here.


Bookmarks

Posting Permissions

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