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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-20-2007, 04:50 AM
|
#1
|
|
Member
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 63
Rep:
|
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?
|
|
|
|
07-20-2007, 05:17 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
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.
|
|
|
|
07-20-2007, 05:41 AM
|
#3
|
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,211
Rep: 
|
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>
|
|
|
|
07-20-2007, 06:07 AM
|
#4
|
|
Member
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 63
Original Poster
Rep:
|
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.
|
|
|
|
07-20-2007, 06:11 AM
|
#5
|
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: FreeBSD, Debian, Mint, Puppy
Posts: 3,211
Rep: 
|
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>
|
|
|
|
07-20-2007, 06:11 AM
|
#6
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,711
|
post is part of the http protocol. to http soap is just it's payload, just a bunch of characters.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|