LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-20-2007, 04:50 AM   #1
runnerpaul
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 63

Rep: Reputation: 15
Soap


Anybody know anything about SOAP? Is it an alternative to HTTP POST or would you use them together? Is SOAP secure or has it any inbuilt security features?
 
Old 07-20-2007, 05:17 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
soap is a convention to exchange data using xml normally over http. in relation to http posts, you would do an http post to pass a block of XML data, which forms a soap object to a server, so it's essentially 2 levels above an http post (that's not osi layers of course...)

Last edited by acid_kewpie; 07-20-2007 at 05:18 AM.
 
Old 07-20-2007, 05:41 AM   #3
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,287

Rep: Reputation: 173Reputation: 173
yes I know a bit.
it's an http POST basically,
looks a bit like this:
Code:
POST /webservice/cascade HTTP/1.1
Host: wls.primala.vipa.bt.com
Content-Type: text/xml; charset=utf-8
Content-Length: 223

<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
   <getUPIPrice>
          <UPI>UPI:207655:E:2</UPI>
   </getUPIPrice>
</soap:Body>
</soap:Envelope>
 
Old 07-20-2007, 06:07 AM   #4
runnerpaul
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 63

Original Poster
Rep: Reputation: 15
POST bit go into the xml file too or do you code it into your program? Know I sound a bit thick on it but its all new to me.
 
Old 07-20-2007, 06:11 AM   #5
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,287

Rep: Reputation: 173Reputation: 173
http://code.google.com/apis/soapsear...#searchrequest
look here google do some webservices for you.

I just create a header and envelope and use netcat to suirt it at google
I got example stuff at home which I can't use over the network here

the google envelope is below

I believe the url is
http://api.google.com/search/beta2
port 80



here's a google search envelope
Code:
<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
  <SOAP-ENV:Body>
    <ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch" 
         SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <key xsi:type="xsd:string">00000000000000000000000000000000</key>
      <q xsi:type="xsd:string">shrdlu winograd maclisp teletype</q>
      <start xsi:type="xsd:int">0</start>
      <maxResults xsi:type="xsd:int">10</maxResults>
      <filter xsi:type="xsd:boolean">true</filter>
      <restrict xsi:type="xsd:string"></restrict>
      <safeSearch xsi:type="xsd:boolean">false</safeSearch>
      <lr xsi:type="xsd:string"></lr>
      <ie xsi:type="xsd:string">latin1</ie>
      <oe xsi:type="xsd:string">latin1</oe>
    </ns1:doGoogleSearch>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
Old 07-20-2007, 06:11 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,386

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
post is part of the http protocol. to http soap is just it's payload, just a bunch of characters.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Soap version mismatch mhuman1 Linux - General 0 02-20-2007 12:44 PM
web services SOAP bigearsbilly Programming 9 12-11-2006 04:28 AM
@INC perl SOAP ::Lite Peter Shepard Red Hat 1 09-27-2005 04:14 PM
soap WSDL generator? Thinking Programming 0 09-21-2005 04:21 AM
C++ SOAP API for HP-Unix deiussum Programming 1 09-17-2004 08:56 AM


All times are GMT -5. The time now is 11:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration