vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBulletin SOAP API (https://vborg.vbsupport.ru/showthread.php?t=100559)

leonsio 11-29-2005 12:00 PM

how to secure a connection between server and client

1. you can use htaccess authentification ( will be suported later )
2. you can user allow/deny by htaccess

example of .htaccess from my server ( folder /soap/ )

Code:

order deny,allow
deny from all
allow from 127.0.0.1
allow from 213.202.245.241

now anyone can access to a soap server who is not in the IP list

later i will try to put it on soap server himself

ImportPassion 11-29-2005 12:42 PM

I can't find the extension for RHEL3. http://rpm.pbone.net/index.php3?stat...soap&srodzaj=3

do they make one for RHEL?

D

leonsio 11-29-2005 12:56 PM

okay little howto:

if you cannot find a extension for you destibution
but you have php5 installed !!!

download rpm for any linux-destibution ( example like suse )

mkdir /tmp/php-soap
cd /tmp/php-soap
wget ftp.suse.com/pub/suse/i386/9.3/suse/i586/php5-soap-5.0.3-14.i586.rpm

after it you must unpack/extrackt the rpm file:

rpm2cpio php5-soap-5.0.3-14.i586.rpm | cpio -imdv

after it you have folders like "usr" and "etc" in your temp folder
in etc folder should be a ini file to load a soap extension
if not, you can create one and move it to your php5 "conf.d" folder or add this code to your php.ini
Code:

extension=soap ( or soap.so if your extension has .so name ;) )

[soap]
; Enables or disables WSDL caching feature.
soap.wsdl_cache_enabled=1
; Sets the directory name where SOAP extension will put cache files.
soap.wsdl_cache_dir="/tmp"
; (time to live) Sets the number of second while cached file will be used
; instead of original one.
soap.wsdl_cache_ttl=86400

in folder "usr"(lib/php5)? should be a "soap" or "soap.so" extension
move the file to your php5 extension folder

restart apache and have fun with soap :D

leonsio 11-29-2005 01:07 PM

Quote:

Originally Posted by 7thgenCivic.Com
I can't find the extension for RHEL3. http://rpm.pbone.net/index.php3?stat...soap&srodzaj=3

do they make one for RHEL?

D

for RHEL you should better take Centos RPMs ;)

http://rpm.pbone.net/index.php3?stat...soap&srodzaj=3

pelican 11-29-2005 02:43 PM

seems like a nice hack but it is too technical. if there are some sample code for possible implementation it will be better.

leonsio 11-29-2005 03:00 PM

Quote:

Originally Posted by pelican
seems like a nice hack but it is too technical. if there are some sample code for possible implementation it will be better.



download a package and look at the examples folder

okay modify a server to create own functions is not so easy, that is true

but connects to a server to get some informations is realy easy

only with 2 lines you can make a login of a user, or get last X threads from a forum

1.line (connect)

$connect= new SoapClient(SERVERURL);

2.line ( get data )

$threads=$connect->getLastThreads(X);

done, you have now an array "threads" which have all needed informations to display last X threads

i dont think that this solution is too technical ;)

gnrmarcel 11-29-2005 09:05 PM

i got 2 errors:

testurl: http://www.meinedomain.de/joomla/for...sion/login.php

> Parse error: parse error, unexpected '{' in /var/www/virtual/meinedomain.de/htdocs/joomla/forum/soap/examples/session/login.php on line 6

testurl: http://www.meinedomain.de/joomla/for...mples/test.php
> Parse error: parse error, unexpected '{' in /var/www/virtual/meinedomain.de/htdocs/joomla/forum/soap/examples/test.php on line 9

what does it mean?

leonsio 11-30-2005 05:45 AM

Quote:

Originally Posted by gnrmarcel
i got 2 errors:

testurl: http://www.meinedomain.de/joomla/for...sion/login.php

> Parse error: parse error, unexpected '{' in /var/www/virtual/meinedomain.de/htdocs/joomla/forum/soap/examples/session/login.php on line 6

testurl: http://www.meinedomain.de/joomla/for...mples/test.php
> Parse error: parse error, unexpected '{' in /var/www/virtual/meinedomain.de/htdocs/joomla/forum/soap/examples/test.php on line 9

what does it mean?



you must have php5 installed, because php4 dont know try..catch construct ( and dont have soap extension )

thepipper 11-30-2005 08:33 AM

This is what I definitely need for joomla and vbulletin. But I am confused, where in the server.php file do I change the url, username, password, and access key??? Please explain in detail, your instructions are very vague. Thanks. :)

leonsio 11-30-2005 09:18 AM

look at the examples

access key is a litte hack to make communication beween server and client a little bit secure
you can setup it in vbulletin admincp

the URL is the absolute URL to your soap server www.mydomain.com/forum/soap/server.php

username/password are username and password from the user of your forum


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01224 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete