587 questions
-1
votes
1
answer
51
views
gSoap API soap->fpost is truncating value of bearer token [closed]
I am using gSoap to interact with Exchange Online using EWS APIs. Lately I have seen that gSoap request soap->fpost is truncating value of bearer token and that is resulting in access denied error. ...
0
votes
0
answers
35
views
Soap Input validation failure to be reported to host application
xsd contents is as below
<xsd:element name="Tag" minOccurs="1" maxOccurs="1">
<xsd:simpleType>
<xsd:restriction base=&...
1
vote
0
answers
104
views
DPWS WS-Discovery: ProbeMatch Received in Wireshark but Device Not Showing in File Explorer Network
I am working with WS-Discovery and DPWS (Devices Profile for Web Services) using gsoap library. My goal is to make my device appear in the Network section of Windows File Explorer using WS-Discovery ...
0
votes
1
answer
54
views
Using gSoap to fetch a file from an Interplay Web Services instance
I plan to use gSoap in my project to fetch a file (located at an endpoint + URI) from an Interplay Web Services instance. Is there a best practice to go about this? I notice there are several plugins ...
-1
votes
1
answer
145
views
problem to generate child elements of SOAP-ENV:Header in the gsoap
I want to create something like this:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" ...
0
votes
0
answers
67
views
How to make Gsoap XML parsing read correct elements from response messages and ignore wrong/corrupted ones?
According to onvif documentaion
https://www.onvif.org/ver10/schema/onvif.xsd
ImagingSettings20 type has a tt:FocusConfiguration20 element
<xs:complexType name="ImagingSettings20">
...
3
votes
0
answers
159
views
How to make Idiomatic calls to C code generator, within `build.zig`
I am feeling my way through a project that combines gSOAP with Zig: starting with 100% C then replacing it piece by piece with Zig.
Central to the project is using the gSOAP WSDL to C code generator. ...
-1
votes
1
answer
105
views
Standalone webserver to serve HTTP GET requests
I'm developing a webserver(FCGI) based on using gsoap v2.8.
This webserver shall respond to the incoming HTTP GET requests but it's not working.
I got to know that gsoap provides HTTP callbacks to ...
1
vote
1
answer
559
views
I can't generate stdsoap2.c (.h) file with soapcpp2 release 2.8.117
I am following tutorials on gSOAP website to build a gSOAP-based web service. Specifically, I follow an example for building this service using calc.c from the auto-generated calc.h. I have run the ...
0
votes
0
answers
91
views
How to handle large payload xml attacks when using gsoap library for parsing xml request in C?
I recently came across a scenario where during the parsing of a xml attribute, it's getting stuck during the parsing since the input is very large.
The input is intentionally made large, so need to ...
0
votes
1
answer
353
views
ONVIF: How to implement filter in EventBindingService::CreatePullPointSubscription
We're using gSoap 2.8.106 (since that's what Yocto Kirkstone provides). We've taken https://github.com/KoynovStas/onvif_srvd as a base and started implementing ONVIF S and T Profile. T Profile ...
0
votes
0
answers
92
views
How to generate headers with sources for gSoap? (WS-Security)
I'm trying to add support for WS-Security so that basic authorization is possible in the server request header.
I checked this doc https://www.genivia.com/doc/wsse/html/wsse.html
The problem I ...
0
votes
1
answer
90
views
When i am trying to migrate my code from 32 to 64 bit , Gsoap gives me warnings related to -Wsign-conversion, how to resolve this warnings?
Gsoap gives me warnings related to -Wsign-conversion, since gsoap source files are auto generated i am unable to resolve these warnings. Can someone please me with this. Thanks in advance.
64bit ...
1
vote
0
answers
222
views
WS-Discovery Proxy (Ubuntu, gSOAP, C++)
WS-Discovery Proxy
I've been trying to get an older example of a WS-Discovery Proxy implemented in C++ to run. It can be found here https://github.com/mpromonet/ws-discovery
I know it's a shot in the ...
0
votes
1
answer
269
views
How can I get gSOAP to log into syslog?
I'm using gSOAP on embedded Linux. I'm using Yocto so I added:
TARGET_CPPFLAGS += "-DDEBUG"
to the gsoap .bb recipe and that enabled logging. But what I get is three log files:
\RECV.log ...
0
votes
1
answer
436
views
GSOAP: undefined reference to e.g. soap_send___wsdd__Hello
I'm writing an application that is both onvif client and server.
I've followed the documentation at https://www.genivia.com/doc/wsdd/html/wsdd_0.html and I'm using gsoap 2.8.124 (from ubuntu).
In the ...
1
vote
0
answers
89
views
Can't use anyAttribute using gSOAP generated c++ code
I have an XSD schema file using anyAttributes for allowing custom extensions for different users. Unfortunately, I am getting problems with the C++ code generated by gSOAP. It works fine for ...
1
vote
0
answers
79
views
soap_in() missing compilation error for gSOAP
I'm working on a existing C++ project which uses gSOAP. I have switched from std::string to custom one and trying to force gSOAP to use it instead.
I have defined following file for soapcpp2:
//env.h
...
0
votes
1
answer
685
views
Businness Central 401 unauthorized access
I need access to web services provided by an installation of Business Central on Premise.
BC is installed on a windows server 2022 without domain (no active directory present).
Attempts to log in via ...
0
votes
1
answer
226
views
gSoap how can I read a set of data from web services using credentials
I'm new to gSoap and need to create a web service client that receives a response containing several records in C.
Through wsdl2h and soapcpp2 I generated the various intermediate files, below ...
0
votes
0
answers
164
views
How to use rapidonvif library in VS Code?
How do I use rapidonvif library in VS Code and write simple ONVIF tasks like camera discovery and video streaming in C++?
I didn't find any tutorial.
1
vote
0
answers
134
views
How do I tell gsoap to not serialize NULL elements?
The class I'm using for my SOAP requests has a ton of optional elements, and they're getting serialized as
<REQUEST>
<REQUIRED_1>some value</REQUIRED_1>
<OPTIONAL_1 xsd:nil=&...
0
votes
1
answer
252
views
How can I compile gSoap wsdl2h.exe using MinGW with ssl support
I am working in windows XP 32 bit (I realize that it is old, but for the project to be carried out I have no alternative) and I'm using gsoap_2.8.123.
The MinGW gcc version is gcc.exe (MinGW.org GCC-6....
0
votes
0
answers
249
views
gSoap MinGW compilation error _set_errno was not declared in this scope
I am trying to compile gsoap_2.8.123 version in windows xp 32 bit (I realize that it is old, but for the project to be carried out I have no alternative)
I use MinGW (installed in C:\MinGW)as a ...
0
votes
0
answers
563
views
SSL_ERROR_SYSCALL when using gsoap with openssl 1.1
I am using gsoap (stdsoap2.cpp) for my application to connect to a server. We are using openssl-1.1, so with a minor change in stdsoap2.cpp (replacing M_ASN1_STRING_data with ASN1_STRING_get0_data), ...
0
votes
0
answers
214
views
gSoap namespaces from multiple wsdls are all present in request envelope
There are N wsdl schemes:
a.wsdl
b.wsdl
...
n.wsdl
Request (which definition is in a.wsdl) which I sent looks like:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:...
0
votes
1
answer
149
views
gsoap - Avoid escaping < and > to < and >
I am using gsoap to access a web service. I generate the code with wsdl2h and soapcpp2 in the following way:
wsdl2h -o BILBO.h http://www.bilbao.eus/WebServicesBilbao/services/ws_bilbaoSOAP?wsdl
...
0
votes
1
answer
458
views
onvif gsoap event related
We are currently developing the onvif protocol using gsoap 2.8.80. I can't find an answer in the event part, so I'm asking this question. If you click the event in Onvif Device Manager and check the ...
0
votes
1
answer
107
views
soap struct context is not being set in interface file implementation
Upgrading gsoap 2.8.17 to 2.8.108. soapcpp2 generates the interface header file(soap.h) and corresponding implementations (soapC.cpp). This has some functions to instantiate soap objects having naming ...
-1
votes
1
answer
911
views
How can a Qt ONVIF application be created? [closed]
I want to create an application to control camera parameters (users/ptz/get video). The camera is using the ONVIF protocol.
I am using Qt framework 5.13.
I found gsoap tool and .wsdl files from onfiv....
0
votes
1
answer
230
views
How to handle gzip-compressed responses with the gsoap logging plugin; alternately, how to turn off compression completely
UPDATE
I have resolved the issue, at least to my satisfaction. I was using a window size of -15 in inflateInit2, based on other examples I had seen, but this was obviously not correct. Based on a ...
0
votes
0
answers
105
views
Unable to Encrypt the xml soap message using gsoap-2.8.116
One of my project has the need to encrypt the soap message using X509 certificate and send the encrypted message to the server. Below code was working fine in the older version of gsoap but when I ...
1
vote
0
answers
124
views
gsoap: Specify schema type for optional element xsd:anyType
I am trying to login to a webservice using the following code:
_ns1__Login log;
log.soap = proxy.soap;
log.systemname = &loginData.systemName[0];
log.username = &loginData.username[0];
log....
3
votes
0
answers
63
views
Link errors using Qt custom types instead of STL types in gsoap binding
I'm developing a Qt C++ program which must send data to a web-service.
I have used gsoap (v2.8.111) to generate the data binding source code this way:
wsdl2h -v -c++ -t ./typemap.dat -o binding/...
0
votes
0
answers
186
views
gSOAP: wsdl2h option -L changes to much
I am using wsdl2h on two different systems, CentOS 8 and RHEL7. On the latter, only an older version is available which does not support argument "-L". This should not be problem because ...
0
votes
1
answer
224
views
gsoap adding "custom/chrono_time_point.h" "WARNING": missing ';' or invalid type specified
after uncommenting in typemap.dat the following line:
xsd__dateTime = #import "custom/chrono_time_point.h" | xsd__dateTime
I run wsdl2h and everything is fine..
but later in soapcpp2 I'm ...
0
votes
1
answer
355
views
Problem with global namespace on g++ 4.8.5 (maybe incomplete C++11 support)
I have prepared a project on an up-to-date computer using -std=c++11. Now, I have to compile it on g++ 4.8.5 (Red Hat 4.8.5-39). To my surprise, support for C++11 standard on this system seems to be ...
1
vote
0
answers
141
views
Soap POST Request Gives Error for a Specific User, How to Resolve it?
In windows 10 OS, We have a SOAP client using gsoap library and this client sends SOAP POST requests to a server on the local network.
While working as the administrator, soap requests are succesfull. ...
0
votes
1
answer
2k
views
how to implement onvif CreatePullPointSubscription operation by gsoap
Referring to onvif core specification: If the subscription is accepted, the response contains a WS-EndpointReference to the
instantiated pull point. This WS-Endpoint provides a PullMessages operation, ...
0
votes
0
answers
60
views
Segmentation Fault at access to IIS webservice using Gsoap
I have this python code to access webservice.
import urllib.request
import ssl
import suds.transport.http
import os.path
from os import path
from suds.client import Client
import json
import time
...
1
vote
1
answer
553
views
How to bypass SSL certificate in Gsoap for C++
I have this error for webservice accessment with Gsoap.
We are doing test so no SSL certificate check is required.
But my client side, how can I bypass SSL check?
i'm using C++.
My error is
SOAP 1.2 ...
0
votes
1
answer
2k
views
SOAP 1.2 fault SOAP-ENV:Sender[no subcode]
Accessing IIS webservice using Gsoap.
I have similar error as in this link shows that the error was solved compiling with -lssl.
I did the same thing in build as
g++ -o client client.cpp stdsoap2.cpp ...
0
votes
0
answers
149
views
Webservice interface using GSOAP
I am trying to get response from webservice using Gsoap.
SoapProxy.h has a class
class SOAP_CMAC DataManagementSoapProxy : public soap {
public:
/// Endpoint URL of service '...
0
votes
2
answers
326
views
Passing unicode string using gsoap
I am sending an response with string response
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"...
0
votes
0
answers
149
views
gSOAP multithreaded server crashes when trying to deallocate memory
I have created a standalone multithreaded webservice using gSOAP framework but this code has memory leak and when i try to deallocte that memory it crashes after sometime.
Below is the detailed steps ...
0
votes
1
answer
237
views
gSoap unfriedly error during creation of .h from .wsdl
I am trying to produce .h file from .wsdl using gsoap:
wsdl2h.exe -v -s -c++11 -o a.h a.wsdl
With a.wsdl it is working like a charm, but with b.wsdl I am getting the unfriendly error:
SOAP 1.1 fault ...
0
votes
0
answers
70
views
Can I set global defaults of QoS 2 and ToS 16 to apply, e.g., to gSOAP service?
The source code for soapcpp2.cpp contains a number of calls to setsockopt(), but none for IP_TOS or SO_PRIORITY. If possibly, I would like to be able to have these default to 16 and 2, respectively, ...
1
vote
1
answer
144
views
Get callback before executing server operation in gSoap server
Is there a way to get a callback from the gSoap framework before a server operation is executed? I can read in the documentation that there is a callback (fserveloop) that is called immediately after ...
1
vote
1
answer
3k
views
SOAP 1.2 fault: SOAP-ENV:Receiver [no subcode]
We have a web service written in java (using Axis 1.4).
We access this in c++ code using gSOAP (2.8.101).
We are using OpenSSL (1.1.1e).
On RHEL 8 we are seeing the SOAP 1.2 fault. The error is as ...
0
votes
0
answers
61
views
Straightforward memory management in gSOAP clients and servers (especially servers)
I'll admit that I sometimes skim through previous questions and think I'm encountering a lot of off-context fluff, so I'll try to make this concise.
If a server uses soap_new_T(soap) to allocate (...