How to call a soap webservice through PLSQL - web-services
Here is my webservice link
http://83.143.26.34/MMWebService/MMWebSrv.asmx?WSDL
I want to call SendTextMessage method through PLSQL. Can Any one help me out?
Here is the plsql code I have used. I am getting timed out exception. But it was fine through SOAP-UI.
declare
l_request soap_api.t_request;
l_response soap_api.t_response;
l_return VARCHAR2(32767);
l_url VARCHAR2(32767);
l_namespace VARCHAR2(32767);
l_method VARCHAR2(32767);
l_soap_action VARCHAR2(32767);
l_result_name VARCHAR2(32767);
BEGIN
l_url := 'http://83.143.26.34:4000/MMWebService/MMWebSrv.asmx';
l_namespace := 'xmlns:ser="urn:MMWebSrvService"';
l_method := 'SendTextMessage';
l_soap_action := l_url || '/' || l_method;
l_result_name := 'return';
l_request := soap_api.new_request(p_method => l_method,
p_namespace => l_namespace);
soap_api.add_parameter(p_request => l_request,
p_name => 'strUsername',
p_type => 'xsd:string',
p_value => 'BIHL');
soap_api.add_parameter(p_request => l_request,
p_name => 'strPassword',
p_type => 'xsd:string',
p_value => 'monday#123');
soap_api.add_parameter(p_request => l_request,
p_name => 'strFrom',
p_type => 'xsd:string',
p_value => 'UserFrom');
soap_api.add_parameter(p_request => l_request,
p_name => 'strTo',
p_type => 'xsd:string',
p_value => '74747574');
soap_api.add_parameter(p_request => l_request,
p_name => 'strMessage',
p_type => 'xsd:string',
p_value => 'UserMsg');
soap_api.add_parameter(p_request => l_request,
p_name => 'strSubject',
p_type => 'xsd:string',
p_value => 'UserSub');
soap_api.add_parameter(p_request => l_request,
p_name => 'strService',
p_type => 'xsd:string',
p_value => 'UserSrv');
soap_api.add_parameter(p_request => l_request,
p_name => 'nOptions',
p_type => 'xsd:int',
p_value => 10);
soap_api.add_parameter(p_request => l_request,
p_name => 'strTimeToSend',
p_type => 'xsd:string',
p_value => sysdate);
soap_api.add_parameter(p_request => l_request,
p_name => 'strReference',
p_type => 'xsd:string',
p_value => 'UserRef');
soap_api.add_parameter(p_request => l_request,
p_name => 'strBillText',
p_type => 'xsd:string',
p_value => 'UserTxt');
soap_api.add_parameter(p_request => l_request,
p_name => 'strSessionID',
p_type => 'xsd:string',
p_value => 'UserSID');
l_response := soap_api.invoke(p_request => l_request,
p_url => l_url,
p_action => l_soap_action);
l_return := soap_api.get_return_value(p_response => l_response,
p_name => l_result_name,
p_namespace => NULL);
EXCEPTION
WHEN OTHERS THEN
pkg_pub_scd_ci.p_log_error('webservice to send a message' || ' -- ' ||
sqlerrm ||
dbms_utility.format_error_backtrace);
end;
Related
SimpleSAMLphp missing some configuration. What is missing?
I am trying to use SimpleSAMLphp in AWS ubuntu instance but for some reason I can make it run correctly. I am using AWS-LoadBalancer for https, I do not know if it affect the configuration. config.php $config = array( 'baseurlpath' => 'simplesaml/', 'certdir' => 'cert/', 'loggingdir' => 'log/', 'datadir' => 'data/', 'tempdir' => '/tmp/simplesaml', 'technicalcontact_name' => 'David Pacheco', 'technicalcontact_email' => 'dpacheco#lumstons.com', 'timezone' => 'America/Mexico_City', 'secretsalt' => '6ogT+0kPWJAO6FbKThWcI1spujbVVdmFEsPVRiPKEWw=', 'auth.adminpassword' => 'david', 'admin.protectindexpage' => false, 'admin.protectmetadata' => false, 'admin.checkforupdates' => true, 'trusted.url.domains' => array(), 'trusted.url.regex' => false, 'enable.http_post' => false, 'debug' => array( 'saml' => false, 'backtraces' => true, 'validatexml' => false, ), 'showerrors' => true, 'errorreporting' => true, 'logging.level' => SimpleSAML\Logger::NOTICE, 'logging.handler' => 'syslog', 'logging.facility' => defined('LOG_LOCAL5') ? constant('LOG_LOCAL5') : LOG_USER, 'logging.processname' => 'simplesamlphp', 'logging.logfile' => 'simplesamlphp.log', 'statistics.out' => array( ), 'proxy' => null, 'database.dsn' => 'mysql:host=localhost;dbname=saml', 'database.username' => 'simplesamlphp', 'database.password' => 'secret', 'database.options' => array(), 'database.prefix' => '', 'database.persistent' => false, 'database.slaves' => array( ), 'enable.saml20-idp' => false, 'enable.shib13-idp' => false, 'enable.adfs-idp' => false, 'enable.wsfed-sp' => false, 'enable.authmemcookie' => false, 'default-wsfed-idp' => 'urn:federation:pingfederate:localhost', 'shib13.signresponse' => true, 'session.duration' => 8 * (60 * 60), 'session.datastore.timeout' => (4 * 60 * 60), 'session.state.timeout' => (60 * 60), 'session.cookie.name' => 'SimpleSAMLSessionID', 'session.cookie.lifetime' => 0, 'session.cookie.path' => '/', 'session.cookie.domain' => null, 'session.cookie.secure' => false, 'session.phpsession.cookiename' => 'SimpleSAML', 'session.phpsession.savepath' => null, 'session.phpsession.httponly' => true, 'session.authtoken.cookiename' => 'SimpleSAMLAuthToken', 'session.rememberme.enable' => false, 'session.rememberme.checked' => false, 'session.rememberme.lifetime' => (14 * 86400), 'memcache_store.servers' => array( array( array('hostname' => 'localhost'), ), ), 'memcache_store.prefix' => '', 'memcache_store.expires' => 36 * (60 * 60), 'language' => array( 'priorities' => array( 'no' => array('nb', 'nn', 'en', 'se'), 'nb' => array('no', 'nn', 'en', 'se'), 'nn' => array('no', 'nb', 'en', 'se'), 'se' => array('nb', 'no', 'nn', 'en'), ), ), 'language.available' => array( 'en', 'no', 'nn', 'se', 'da', 'de', 'sv', 'fi', 'es', 'ca', 'fr', 'it', 'nl', 'lb', 'cs', 'sl', 'lt', 'hr', 'hu', 'pl', 'pt', 'pt-br', 'tr', 'ja', 'zh', 'zh-tw', 'ru', 'et', 'he', 'id', 'sr', 'lv', 'ro', 'eu', 'el', 'af' ), 'language.rtl' => array('ar', 'dv', 'fa', 'ur', 'he'), 'language.default' => 'en', 'language.parameter.name' => 'language', 'language.parameter.setcookie' => true, 'language.cookie.name' => 'language', 'language.cookie.domain' => null, 'language.cookie.path' => '/', 'language.cookie.secure' => false, 'language.cookie.httponly' => false, 'language.cookie.lifetime' => (60 * 60 * 24 * 900), 'language.i18n.backend' => 'SimpleSAMLphp', 'attributes.extradictionary' => null, 'theme.use' => 'default', 'template.auto_reload' => false, 'production' => true, 'idpdisco.enableremember' => true, 'idpdisco.rememberchecked' => true, 'idpdisco.validate' => true, 'idpdisco.extDiscoveryStorage' => null, 'idpdisco.layout' => 'dropdown', 'authproc.idp' => array( 30 => 'core:LanguageAdaptor', 45 => array( 'class' => 'core:StatisticsWithAttribute', 'attributename' => 'realm', 'type' => 'saml20-idp-SSO', ), 50 => 'core:AttributeLimit', 99 => 'core:LanguageAdaptor', ), 'authproc.sp' => array( 90 => 'core:LanguageAdaptor', ), 'metadata.sources' => array( array('type' => 'flatfile'), ), 'metadata.sign.enable' => false, 'metadata.sign.privatekey' => null, 'metadata.sign.privatekey_pass' => null, 'metadata.sign.certificate' => null, 'metadata.sign.algorithm' => null, 'store.type' => 'phpsession', 'store.sql.dsn' => 'sqlite:/path/to/sqlitedatabase.sq3', 'store.sql.username' => null, 'store.sql.password' => null, 'store.sql.prefix' => 'SimpleSAMLphp', 'store.redis.host' => 'localhost', 'store.redis.port' => 6379, 'store.redis.prefix' => 'SimpleSAMLphp', ); Apache 2 site config: <VirtualHost *:80> ServerName saml.veptec.mx DocumentRoot /var/www/html Alias /simplesaml /var/simplesamlphp/www <Directory /var/simplesamlphp/www> Require all granted </Directory> </VirtualHost> The https://saml.dominian.com/simplesaml is redirected to https://saml.dominian.com/simplesaml/module.php/core/frontpage_welcome.php but that file return HTTP ERROR 500, I try to track down the error and I fond out that is problem with the config file. Any ideas?
I found the answer, the location it was not initializing. It was a bug. In the ./lib/SimpleSAML/Locale/Localization.php file I only call this method: $this->setupTranslator(); in the end of the constructor and it works correctly.
opencart href link depend on category_id
Am new in Opencart I need an If then statement that will load a different .tpl paged depend on category_id. I tried but showing error like Parse error: syntax error, unexpected 'if' (T_IF), expecting ')' in D:\xampp\htdocs\ramesh\lmw\catalog\controller\product\sub_category.php on line 28 This is my code sub_category.php foreach ($category_info as $result) { $data['categories'][] = array( 'name' => $result['name'], 'parent_id' => $result['parent_id'], 'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')), 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..', #'href' => $this->url->link('product/filter', '&category_id=' . $result['category_id']) #'href' => $this->url->link('product/sub_category') if($result['category_id'] == 24) { 'href' => $this->url->link('product/transmission', 'sub_category_id='.$result['parent_id'].'&category_id=' . $result['category_id']) } else { 'href' => $this->url->link('product/filter', 'sub_category_id='.$result['parent_id'].'&category_id=' . $result['category_id']) } ); }
Try this, foreach ($category_info as $result) { $data['categories'][] = array( 'name' => $result['name'], 'parent_id' => $result['parent_id'], 'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')), 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..', #'href' => $this->url->link('product/filter', '&category_id=' . $result['category_id']) #'href' => $this->url->link('product/sub_category') if($result['category_id'] == 24) { 'href' => $this->url->link('product/transmission', 'sub_category_id='.$result['parent_id'].'&category_id=' . $result['category_id']) } else { 'href' => $this->url->link('product/filter', 'sub_category_id='.$result['parent_id'].'&category_id=' . $result['category_id']) }; ); } Looks like you missed a ";" after the if statement. Also you should comment out using /* not "#"
foreach ($category_info as $result) { if($result['category_id']==24) { $link1 = $this->url->link('product/transmission', 'sub_category_id='.$result['parent_id'].'&category_id=' . $result['category_id']); } else { $link1 = $this->url->link($_SERVER["REQUEST_URI"]); } $data['categories'][] = array( 'name' => $result['name'], 'parent_id' => $result['parent_id'], 'thumb' => $this->model_tool_image->resize($result['image'], $this->config->get('config_image_category_width'), $this->config->get('config_image_category_height')), 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..', /*'href' => $this->url->link('product/filter', '&category_id=' . $result['category_id']) 'href' => $this->url->link('product/sub_category') 'href' => $this->url->link('product/transmission', 'sub_category_id='.$result['parent_id'].'&category_id=' . $result['category_id'])*/ 'href' => $link1 );
OMNET++ 5.0 and Qt
I am writing a simple Qt5 application inside OMNET++ environment. I linked the program with Qt5Widgets, Qt5Gui, Qt5Core and pthread. The code is compiled and built successfully but I can not run it using opp_run. I am creating a shared library libVENTOS.so from my project and ldd output shows that all shared libraries are available on my machine. So I guess opp_run can not load some of the Qt5 libraries. How can I solve this problem ? $ ldd ./libVENTOS.so linux-vdso.so.1 => (0x00007ffc968ad000) libboost_system.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0 (0x00007f2580f48000) libboost_filesystem.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_filesystem.so.1.54.0 (0x00007f2580d32000) libboost_serialization.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_serialization.so.1.54.0 (0x00007f2580ac7000) libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f2580889000) libusb-1.0.so.0 => /usr/local/lib/libusb-1.0.so.0 (0x00007f2580671000) libbluetooth.so.3 => /usr/lib/x86_64-linux-gnu/libbluetooth.so.3 (0x00007f258044f000) libsnmp++.so.33 => /usr/local/lib/libsnmp++.so.33 (0x00007f25801e1000) libcurl-gnutls.so.4 => /usr/lib/x86_64-linux-gnu/libcurl-gnutls.so.4 (0x00007f257ff7f000) libshark_debug.so.0 => /usr/local/lib/libshark_debug.so.0 (0x00007f257f42e000) liblapack_atlas.so.3 => /usr/lib/liblapack_atlas.so.3 (0x00007f257f1d4000) libssh.so.4 => /usr/lib/x86_64-linux-gnu/libssh.so.4 (0x00007f257ef8e000) libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f257e765000) libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f257e118000) libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007f257da72000) liboppenvird.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppenvird.so (0x00007f257d6e6000) liboppsimd.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppsimd.so (0x00007f257d0d5000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f257ced1000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f257cbcd000) libosg.so.99 => /usr/lib/libosg.so.99 (0x00007f257c6fd000) libosgGA.so.99 => /usr/lib/libosgGA.so.99 (0x00007f257c483000) libosgViewer.so.99 => /usr/lib/libosgViewer.so.99 (0x00007f257c1b1000) libosgQt.so.99 => /usr/lib/libosgQt.so.99 (0x00007f257bf91000) libOpenThreads.so.14 => /usr/lib/libOpenThreads.so.14 (0x00007f257bd89000) libosgEarth.so.2 => /usr/lib/libosgEarth.so.2 (0x00007f257b956000) libosgEarthUtil.so.2 => /usr/lib/libosgEarthUtil.so.2 (0x00007f257b53d000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f257b237000) libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f257b028000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f257ae12000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f257abf4000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f257a82f000) libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f257a61e000) libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (0x00007f257a242000) libidn.so.11 => /usr/lib/x86_64-linux-gnu/libidn.so.11 (0x00007f257a00f000) librtmp.so.0 => /usr/lib/x86_64-linux-gnu/librtmp.so.0 (0x00007f2579df5000) libgcrypt.so.11 => /lib/x86_64-linux-gnu/libgcrypt.so.11 (0x00007f2579b75000) libgnutls.so.26 => /usr/lib/x86_64-linux-gnu/libgnutls.so.26 (0x00007f25798b7000) libgssapi_krb5.so.2 => /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f2579670000) liblber-2.4.so.2 => /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 (0x00007f2579461000) libldap_r-2.4.so.2 => /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 (0x00007f2579210000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f2578ff7000) liblapack.so.3 => /usr/lib/liblapack.so.3 (0x00007f257885b000) libcblas.so.3 => /usr/lib/libcblas.so.3 (0x00007f257863a000) libf77blas.so.3 => /usr/lib/libf77blas.so.3 (0x00007f257841a000) libatlas.so.3 => /usr/lib/libatlas.so.3 (0x00007f2577e87000) libgfortran.so.3 => /usr/lib/x86_64-linux-gnu/libgfortran.so.3 (0x00007f2577b6d000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2577965000) /lib64/ld-linux-x86-64.so.2 (0x00007f2581df3000) libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f2577714000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f257740c000) libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f25770d7000) libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f2576eb1000) libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f2576c5c000) libGL.so.1 => /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1 (0x00007f25769f6000) libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f25765ef000) libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f2576276000) liboppnedxmld.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppnedxmld.so (0x00007f2575f12000) liboppcommond.so => /home/mani/Desktop/omnetpp-5.0/lib/liboppcommond.so (0x00007f2575c7e000) libmpi_cxx.so.1 => /usr/lib/libmpi_cxx.so.1 (0x00007f2575a64000) libmpi.so.1 => /usr/lib/libmpi.so.1 (0x00007f25756e3000) libosgDB.so.99 => /usr/lib/libosgDB.so.99 (0x00007f25753e6000) libosgUtil.so.99 => /usr/lib/libosgUtil.so.99 (0x00007f2575023000) libosgText.so.99 => /usr/lib/libosgText.so.99 (0x00007f2574dca000) libQtCore.so.4 => /usr/lib/x86_64-linux-gnu/libQtCore.so.4 (0x00007f25748e5000) libQtGui.so.4 => /usr/lib/x86_64-linux-gnu/libQtGui.so.4 (0x00007f2573c32000) libQtOpenGL.so.4 => /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4 (0x00007f2573934000) libosgTerrain.so.99 => /usr/lib/libosgTerrain.so.99 (0x00007f25736fc000) libosgShadow.so.99 => /usr/lib/libosgShadow.so.99 (0x00007f2573466000) libgdal.so.1 => /usr/lib/libgdal.so.1 (0x00007f257270f000) libosgManipulator.so.99 => /usr/lib/libosgManipulator.so.99 (0x00007f25724c9000) libosgEarthFeatures.so.2 => /usr/lib/libosgEarthFeatures.so.2 (0x00007f2572212000) libosgEarthSymbology.so.2 => /usr/lib/libosgEarthSymbology.so.2 (0x00007f2571f5f000) libosgEarthAnnotation.so.2 => /usr/lib/libosgEarthAnnotation.so.2 (0x00007f2571cc6000) libosgSim.so.99 => /usr/lib/libosgSim.so.99 (0x00007f2571a31000) libcgmanager.so.0 => /lib/x86_64-linux-gnu/libcgmanager.so.0 (0x00007f2571816000) libnih.so.1 => /lib/x86_64-linux-gnu/libnih.so.1 (0x00007f25715fe000) libnih-dbus.so.1 => /lib/x86_64-linux-gnu/libnih-dbus.so.1 (0x00007f25713f4000) libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f25711af000) libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f2570faa000) libtasn1.so.6 => /usr/lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f2570d96000) libp11-kit.so.0 => /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f2570b54000) libkrb5.so.3 => /usr/lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f2570889000) libk5crypto.so.3 => /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f257065a000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f2570456000) libkrb5support.so.0 => /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f257024b000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f2570030000) libsasl2.so.2 => /usr/lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f256fe15000) libgssapi.so.3 => /usr/lib/x86_64-linux-gnu/libgssapi.so.3 (0x00007f256fbd7000) libblas.so.3 => /usr/lib/libblas.so.3 (0x00007f256f60b000) libquadmath.so.0 => /usr/lib/x86_64-linux-gnu/libquadmath.so.0 (0x00007f256f3cf000) libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f256f1c7000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f256ef89000) libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f256ed6a000) libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f256eac7000) libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f256e8a1000) libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007f256e67a000) libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f256e468000) libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007f256e265000) libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f256e05f000) libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007f256de5d000) libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007f256dc46000) libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007f256da41000) libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007f256d83e000) libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007f256d63b000) libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007f256d435000) libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007f256d233000) libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f256d02d000) libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f256ce20000) libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f256b5b3000) libxml2.so.2 => /usr/lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f256b24c000) libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f256b049000) libhwloc.so.5 => /usr/lib/x86_64-linux-gnu/libhwloc.so.5 (0x00007f256ae09000) libltdl.so.7 => /usr/lib/x86_64-linux-gnu/libltdl.so.7 (0x00007f256abff000) libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f256a9c3000) libaudio.so.2 => /usr/lib/x86_64-linux-gnu/libaudio.so.2 (0x00007f256a7ab000) libSM.so.6 => /usr/lib/x86_64-linux-gnu/libSM.so.6 (0x00007f256a5a3000) libICE.so.6 => /usr/lib/x86_64-linux-gnu/libICE.so.6 (0x00007f256a387000) libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f256a177000) libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f2569f6d000) libarmadillo.so.4 => /usr/lib/libarmadillo.so.4 (0x00007f2569d66000) libproj.so.0 => /usr/lib/libproj.so.0 (0x00007f2569b14000) libpoppler.so.44 => /usr/lib/x86_64-linux-gnu/libpoppler.so.44 (0x00007f25696b8000) libfreexl.so.1 => /usr/lib/x86_64-linux-gnu/libfreexl.so.1 (0x00007f25694ae000) libgeos_c.so.1 => /usr/lib/libgeos_c.so.1 (0x00007f256928a000) libwebp.so.5 => /usr/lib/x86_64-linux-gnu/libwebp.so.5 (0x00007f2569032000) libepsilon.so.1 => /usr/lib/x86_64-linux-gnu/libepsilon.so.1 (0x00007f2568e1a000) libodbc.so.1 => /usr/lib/x86_64-linux-gnu/libodbc.so.1 (0x00007f2568bb3000) libodbcinst.so.1 => /usr/lib/x86_64-linux-gnu/libodbcinst.so.1 (0x00007f25689a1000) libkmldom.so.0 => /usr/lib/x86_64-linux-gnu/libkmldom.so.0 (0x00007f25686f8000) libkmlbase.so.0 => /usr/lib/x86_64-linux-gnu/libkmlbase.so.0 (0x00007f25684e2000) libkmlengine.so.0 => /usr/lib/x86_64-linux-gnu/libkmlengine.so.0 (0x00007f25682ae000) libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f2568084000) libxerces-c-3.1.so => /usr/lib/x86_64-linux-gnu/libxerces-c-3.1.so (0x00007f2567afc000) libjasper.so.1 => /usr/lib/x86_64-linux-gnu/libjasper.so.1 (0x00007f25678a5000) libnetcdf.so.7 => /usr/lib/libnetcdf.so.7 (0x00007f2567568000) libhdf5.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5.so.7 (0x00007f25670cc000) libmfhdfalt.so.0 => /usr/lib/libmfhdfalt.so.0 (0x00007f2566e9b000) libdfalt.so.0 => /usr/lib/libdfalt.so.0 (0x00007f2566bb5000) libogdi.so.3.2 => /usr/lib/libogdi.so.3.2 (0x00007f2566994000) libgif.so.4 => /usr/lib/x86_64-linux-gnu/libgif.so.4 (0x00007f256678b000) libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f2566536000) libpq.so.5 => /usr/lib/libpq.so.5 (0x00007f2566307000) liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f25660e5000) libdapclient.so.3 => /usr/lib/x86_64-linux-gnu/libdapclient.so.3 (0x00007f2565eae000) libdap.so.11 => /usr/lib/x86_64-linux-gnu/libdap.so.11 (0x00007f2565bc8000) libspatialite.so.5 => /usr/lib/x86_64-linux-gnu/libspatialite.so.5 (0x00007f25655cc000) libmysqlclient.so.18 => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18 (0x00007f2565094000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f2564e90000) libheimntlm.so.0 => /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 (0x00007f2564c87000) libkrb5.so.26 => /usr/lib/x86_64-linux-gnu/libkrb5.so.26 (0x00007f25649ff000) libasn1.so.8 => /usr/lib/x86_64-linux-gnu/libasn1.so.8 (0x00007f256475e000) libhcrypto.so.4 => /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 (0x00007f256452b000) libroken.so.18 => /usr/lib/x86_64-linux-gnu/libroken.so.18 (0x00007f2564316000) libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f2564112000) libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f2563f0c000) libnuma.so.1 => /usr/lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f2563d01000) libXt.so.6 => /usr/lib/x86_64-linux-gnu/libXt.so.6 (0x00007f2563a9b000) libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f2563896000) libarpack.so.2 => /usr/lib/libarpack.so.2 (0x00007f2563648000) liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f25633f3000) libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f2563181000) libgeos-3.4.2.so => /usr/lib/libgeos-3.4.2.so (0x00007f2562dfd000) liburiparser.so.1 => /usr/lib/liburiparser.so.1 (0x00007f2562be3000) libminizip.so.0 => /usr/lib/x86_64-linux-gnu/libminizip.so.0 (0x00007f25629db000) libhdf5_hl.so.7 => /usr/lib/x86_64-linux-gnu/libhdf5_hl.so.7 (0x00007f25627ab000) libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0 (0x00007f256254c000) libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007f2562293000) libwind.so.0 => /usr/lib/x86_64-linux-gnu/libwind.so.0 (0x00007f256206a000) libheimbase.so.1 => /usr/lib/x86_64-linux-gnu/libheimbase.so.1 (0x00007f2561e5c000) libhx509.so.5 => /usr/lib/x86_64-linux-gnu/libhx509.so.5 (0x00007f2561c13000) libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f25619da000) libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f25617cc000) Update: Reverting back my code to use Qt4 solved the problem and I can run my application flawlessly. So I guess the error was due to mixing Qt4 and Qt5 libraries. Omnet++ is using Qt4 and my C++ code is using Qt5. Is there any way to use Qt5 library in OMNET 5?
Go to the directory where your omnetpp.ini is located and type: opp_run -l ../src/VENTOS where ../src/ is relative path to the directory which contains libVENTOS.so.
How to resize Root Disk with runInstance in PHP
$cmd = 'runInstances'; $result = $client->$cmd(array( 'ImageId' => selectAMI($_POST['dc'], $_POST['os']), 'MinCount' => 1, 'MaxCount' => 1, 'InstanceType' => $_POST['itype'], 'KeyName' => $_POST['key'], 'SecurityGroups' => array($securityGroupName), 'BlockDeviceMappings' => array( 'DeviceName' => '/dev/sda1', array( 'Ebs' => array( 'SnapshotId' => 'snap-2337bd2a', 'VolumeSize' => $disksize, 'DeleteOnTermination' => true, 'VolumeType' => 'gp2', 'Encrypted' => false ) ) ) )); What is wrong with this, it does not work and I get no error?
Your BlockDeviceMappings part is not structured correctly. You have DeviceName outside the second array structure, where it should be inside. Try this: $cmd = 'runInstances'; $result = $client->$cmd(array( 'ImageId' => selectAMI($_POST['dc'], $_POST['os']), 'MinCount' => 1, 'MaxCount' => 1, 'InstanceType' => $_POST['itype'], 'KeyName' => $_POST['key'], 'SecurityGroups' => array($securityGroupName), 'BlockDeviceMappings' => array( array( 'DeviceName' => '/dev/sda1', 'Ebs' => array( 'SnapshotId' => 'snap-2337bd2a', 'VolumeSize' => $disksize, 'DeleteOnTermination' => true, 'VolumeType' => 'gp2', 'Encrypted' => false ) ) ) ));
Unit Testing OAuth Login with Cake 2.3
I need some advice on how to set up a unit test in Cake 2.3 that tests OAuth login. I'm using the thomseddon/cakephp-oauth-server plugin. Note: I've reviewed examples such as CakePHP 2.3 - Unit testing User Login, but I'm still confused about how exactly to approach an OAuth test using the plugin. Any help appreciated. The following is what I currently have in my unit test. Not very much of a test, yet. /** * testOAuthLogin method * Tests that OAuth login works * #return void */ public function testOAuthLogin(){ $data = array( 'response_type' => 'code', 'client_id' => getenv('THREE_SCALE_APP_ID'), 'User' => array( 'username' => TEST_USERNAME, 'passwd' => TEST_PASSWORD ) ); $result = $this->testAction('/oauth/login', array( 'data' => $data, 'method' => 'post' )); debug($result); } This returns: {"error":"invalid_client","error_description":"No client id supplied"}
I was able to figure this out. I just needed to setup up proper fixtures for User and AccessToken. And then I had to ensure that these were imported in the controller that I was testing in via $fixtures. Example of my AccessTokenFixture: <?php App::uses('OAuthComponent', 'OAuth.Controller/Component'); /** * AccessTokenFixture * */ class AccessTokenFixture extends CakeTestFixture { /** * Fields * * #var array */ public $fields = array( 'oauth_token' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 40, 'key' => 'primary', 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'client_id' => array('type' => 'string', 'null' => false, 'default' => null, 'length' => 36, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'user_id' => array('type' => 'integer', 'null' => false, 'default' => null), 'expires' => array('type' => 'integer', 'null' => false, 'default' => null), 'scope' => array('type' => 'string', 'null' => true, 'default' => null, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'), 'indexes' => array( 'PRIMARY' => array('column' => 'oauth_token', 'unique' => 1) ), 'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'MyISAM') ); /** * init method * #return void */ public function init() { $this->records = array( array( 'oauth_token' => OAuthComponent::hash('SAMPLE_ACCESS_TOKEN'), 'client_id' => 'YOUR_CLIENT_ID', 'user_id' => 1, 'expires' => 1367263611232323, 'scope' => '' ), array( 'oauth_token' => OAuthComponent::hash('SAMPLE_ACCESS_TOKEN'), 'client_id' => 'YOUR_CLIENT_ID', 'user_id' => 2, 'expires' => 13672640632323323, 'scope' => '' ) ); parent::init(); } }