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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-20-2007, 05:50 AM
|
#1
|
Member
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 67
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, 06:17 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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 06:18 AM.
|
|
|
07-20-2007, 06:41 AM
|
#3
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
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, 07:07 AM
|
#4
|
Member
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 67
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, 07:11 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
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, 07:11 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
post is part of the http protocol. to http soap is just it's payload, just a bunch of characters.
|
|
|
All times are GMT -5. The time now is 07:48 PM.
|
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
|
|