gsoap

Relocation R_X86_64_PC32 against undefined symbol can not be used when making a shared object; recompile with -fPIC

那年仲夏 提交于 2019-12-13 03:19:15
问题 I recently upgraded gSOAP from 2.8.7 to 2.8.76. I had to make a few minor code adjustments for the upgrade, but after the upgrade the code won't link on the computer it would before. I'm trying to use gSOAP to create a shared library on a computer which uses g++ 4.9.2. I've condensed the code down to create a test case that simplifies things a bit to try to identify where the failure is occurring. gSOAP generates some ebaySoapLib* files when I run: /usr/local/bin/soapcpp2 -z1 -C -w -x -n

Dynamic arrays in gSOAP the C++ way, using STL vector instead of __ptr/__size?

£可爱£侵袭症+ 提交于 2019-12-12 15:07:27
问题 I am developing a web service using gSOAP 2.8.8. I would like to send an unbounded sequence of a custom data type. I can implement this by following section 11.11 of gSOAP's User Guide like so: class ns__InnerType { std::string someStr; int someInt; }; class VectorOfInnerTypes { ns__InnerType* __ptr; int __size; }; void ns__myMethod(VectorOfInnerTypes in, ns__EmptyResponse out); This works well. However, since my program is in C++, I would like to take advantage of STL vectors. From

How can I access Amazon AWS S3 using GSOAP for C and C++?

醉酒当歌 提交于 2019-12-12 08:25:00
问题 I have searched everywhere for this and I could not find a single decent code. How can I access Amazon AWS S3 service using GSOAP? 回答1: The code below is from the OP. Originally, the post contained both the question and the answer and I am turning it into a Q&A format. The signature has to be of the format base64encode((HMAC-SHA1(ActionName+"AmazonS3"+XMLTimestamp))) The HMAC, SHA1and B64 utils are available in openssl. The format for SOAP requests is given by the wsdl. The REST interface is

C++ class declaration and include issues in gsoap project

心不动则不痛 提交于 2019-12-12 05:52:10
问题 I compile a file in a gsoap project with the following command. Almost all files in my project are generated by the gsoap tools and i am new to C++ so i cant tell very much about it. All in all i need to understand if my project could compile at all. Do i need other flags? gcc -c -I/usr/include/gsoap soapAuftraegeImportSoap11BindingProxy.cpp the current error is: soapAuftraegeImportSoap11BindingProxy.cpp:10: error: 'AuftraegeImportSoap11BindingProxy' has not been declared this line 10 is:

ONVIF video stream on camera side (not client side)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:47:50
问题 I am trying to write an ONVIF video stream at the camera side on Linux Fedora (not the client side). I already installed the WSDL2H and ran: wsdl2h -c o onvif.h http://www.onvif.org/onvif/ver10/device/wsdl This command built the onvif.h I wrote a UDP, HTTP, TCP server on my Linux. In my UDP server program I catch the Hello message from the ONVIF Device Test Tool. How should I proceed from this stage/point? I would like to know how to write the "answer" function in C? 回答1: At first you need

Use private key with Windows certficate store in gSoap

十年热恋 提交于 2019-12-11 18:31:10
问题 I'm writing a gSoap client with OpenSSL that uses Windows certificates. I have a PEM certificate and a PEM private key. When I combine them into a single file and give it to gSoap it works fine: soap_ssl_client_context( &soap, SOAP_SSL_DEFAULT, "certkey.pem", /* required only when client must authenticate to server */ NULL, /* password to read the key file (not used with GNUTLS) */ NULL, /* cacert file to store trusted certificates */ NULL, /* capath to directory with trusted certificates */

gSoap Exchange Web Services Connection

时间秒杀一切 提交于 2019-12-11 08:37:42
问题 I'm trying to write an application that would work with the EWS proxy classes. To generate proxy classes I used gsoap (compiled OpenSSL). I have implemented a library that works with EWS, but. Net. The problem is this: I have no idea how to implement a connection to the server. Doing the following: ExchangeServiceBindingProxy *proxy = new ExchangeServiceBindingProxy("https://192.168.0.49/EWS/exchange.asmx"); soap *pSoap = proxy->soap; pSoap->userid = "user1"; pSoap->passwd = "password1";

Calling a Web Service from MySQL?

◇◆丶佛笑我妖孽 提交于 2019-12-11 08:11:34
问题 I'd like to call web service from a MySQL trigger every time a record is inserted. At the moment I'm testing UDF and gSOAP. I've done a small test and it seems to work, but I was wondering if there wasn't a simpler way to do this. 来源: https://stackoverflow.com/questions/9842568/calling-a-web-service-from-mysql

Android : HTTPCLIENT POST - Not able to send data to server

被刻印的时光 ゝ 提交于 2019-12-11 04:48:24
问题 Hello I am trying to send data to server using httpclient. Here is my code public class MainActivity extends Activity implements OnClickListener { private String TAG; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button press = (Button) findViewById(R.id.button1); press.setOnClickListener(this); } @Override public void onClick(View v) { switch (v.getId()) { case R

Undefined references when compiling gSOAP client

╄→尐↘猪︶ㄣ 提交于 2019-12-11 03:24:25
问题 I'm trying to create a client for a web service in C. I was generated C files with the wsdl2h and soapcpp2. In netbeans I'm added the generated files and the gSOAP include dir to the project's include directories. my main file looks like this: #include <stdio.h> #include <stdlib.h> #include <soapH.h> #include <webserviceSoap12.nsmap> int main(int argc, char** argv) { struct soap *soap1 = soap_new(); struct _ns1__getAllCustomer *quote; struct _ns1__getAllCustomerResponse *quote2; if (soap_call