Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
services
t3o sites
extensions.typo3.org
extensions.typo3.org
Commits
882e6302
Commit
882e6302
authored
Jul 19, 2017
by
Thomas Löffler
Browse files
Merge branch 'fixes-service-location-for-ter' into 'develop'
Fix soap service See merge request
!112
parents
103554ba
832357b2
Pipeline
#1710
passed with stages
in 3 minutes and 51 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/ter/pi1/class.tx_ter_pi1.php
View file @
882e6302
...
...
@@ -45,11 +45,11 @@ require_once(ExtensionManagementUtility::extPath('ter') . 'class.tx_ter_api.php'
*/
class
tx_ter_pi1
extends
AbstractPlugin
{
public
$
cObj
;
// Standard cObj (parent)
public
$
extensionsPID
;
// Start page for extension records
public
$repositoryDir
;
// Absolute path to extension repository directory
public
$conf
;
// The FE Plugin's TS configuration
public
$cObj
;
// Standard cObj (parent)
public
$
extensionsPID
;
// Start page for extension records
public
$
wsdlNamespace
;
// Namespace
public
$repositoryDir
;
// Absolute path to extension repository directory
public
$conf
;
// The FE Plugin's TS configuration
function
main
(
$content
,
$conf
)
{
...
...
@@ -59,6 +59,7 @@ class tx_ter_pi1 extends AbstractPlugin
$this
->
conf
=
$conf
;
$this
->
extensionsPID
=
$conf
[
'pid'
];
$this
->
wsdlNamespace
=
$conf
[
'wsdlNamespace'
];
$staticConfArr
=
unserialize
(
$GLOBALS
[
'TYPO3_CONF_VARS'
][
'EXT'
][
'extConf'
][
'ter'
]);
if
(
is_array
(
$staticConfArr
))
{
$this
->
repositoryDir
=
$staticConfArr
[
'repositoryDir'
];
...
...
@@ -68,9 +69,9 @@ class tx_ter_pi1 extends AbstractPlugin
}
try
{
$server
=
new
SoapServer
(
null
,
[
'
uri
'
=>
'http://typo3.org/soap/tx_ter'
,
"exceptions"
=>
true
]);
$server
->
setClass
(
'
tx_ter_api
'
,
$this
);
$server
->
handle
(
$GLOBALS
[
'HTTP_RAW_POST_DATA'
]
);
$server
=
new
SoapServer
(
null
,
[
"
uri
"
=>
$this
->
wsdlNamespace
,
"trace"
=>
true
,
"exceptions"
=>
true
]);
$server
->
setClass
(
\
tx_ter_api
::
class
,
$this
);
$server
->
handle
(
file_get_contents
(
"php://input"
)
);
}
catch
(
tx_ter_exception
$e
)
{
/**
* @author Christian Zenker <christian.zenker@599media.de>
...
...
@@ -123,5 +124,3 @@ class tx_ter_pi1 extends AbstractPlugin
return
''
;
}
}
?>
html/typo3conf/ext/ter/resources/static/constants.txt
View file @
882e6302
...
...
@@ -3,4 +3,5 @@ plugin.tx_ter_pi1 {
reviewersFrontendUsergroupUid =
adminFrontendUsergroupUid = 2
mirrorsFrontendUsergroupUid =
wsdlNamespace =
}
html/typo3conf/ext/ter/resources/static/setup.txt
View file @
882e6302
plugin.tx_ter_pi1 {
pid = {plugin.tx_ter_pi1.pid}
reviewersFrontendUsergroupUid = {plugin.tx_ter_pi1.reviewersFrontendUsergroupUid}
adminFrontendUsergroupUid = {plugin.tx_ter_pi1.adminFrontendUsergroupUid}
mirrorsFrontendUsergroupUid = {plugin.tx_ter_pi1.mirrorsFrontendUsergroupUid}
pid = {$plugin.tx_ter_pi1.pid}
reviewersFrontendUsergroupUid = {$plugin.tx_ter_pi1.reviewersFrontendUsergroupUid}
adminFrontendUsergroupUid = {$plugin.tx_ter_pi1.adminFrontendUsergroupUid}
mirrorsFrontendUsergroupUid = {$plugin.tx_ter_pi1.mirrorsFrontendUsergroupUid}
wsdlNamespace = {$plugin.tx_ter_pi1.wsdlNamespace}
}
html/typo3conf/ext/ter/tx_ter_wsdl.php
View file @
882e6302
...
...
@@ -35,7 +35,7 @@ define('PATH_tslib', PATH_typo3 . 'sysext/cms/tslib/');
define
(
'PATH_typo3conf'
,
PATH_site
.
'typo3conf/'
);
define
(
'TYPO3_mainDir'
,
'typo3/'
);
$serviceLocation
=
$_SERVER
[
'HTTP_HOST'
]
.
'index.php?id=ter'
;
$serviceLocation
=
'https://'
.
$_SERVER
[
'HTTP_HOST'
]
.
'
/
index.php?id=ter'
;
$wsdlFileName
=
'tx_ter.wsdl'
;
if
(
getenv
(
'TYPO3_CONTEXT'
)
===
'Production/Stage'
)
{
...
...
html/typo3conf/ext/ter_layout/Configuration/TypoScript/Default/constants.txt
View file @
882e6302
...
...
@@ -12,3 +12,9 @@ styles.content.loginform.pid = 8
# Page ID for the soap service
plugin.tx_ter_pi1.pid = 14
# wsdl Namespace for the soap server
plugin.tx_ter_pi1.wsdlNamespace = https://extensions.typo3.org/wsdl/tx_ter/
[applicationContext = Production/Stage]
plugin.tx_ter_pi1.wsdlNamespace = https://extensions-stage.typo3.org/wsdl/tx_ter/
[global]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment