Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To finally make it work, I had to port gSOAP to use <code>stdapis</code> instead of <code>libc</code>. I removed one of the <code>&lt;netinet\tcp.h&gt;</code> lines and used <code>&lt;sys/select.h&gt;</code> instead.</p> <p>You can find the ported <code>stdsoap2.h</code> file at <a href="http://pastebin.com/xnrDbfFa" rel="nofollow noreferrer">http://pastebin.com/xnrDbfFa</a>.</p> <p>I also discovered that Symbian does not load STL by default, so all my methods that were returning <code>std::vector</code> and <code>std::string</code> are now not compiling.</p> <p>Instead of opting to the <code>-s</code> flag to disable STL usage, I added the Symbian STL port to the <code>INCLUDEPATH</code> in the <code>.pro</code> file like so</p> <pre><code>symbian { INCLUDEPATH += $$EPOCROOT\epoc32\include\stdapis\stlport INCLUDEPATH += $$EPOCROOT\epoc32\include\stdapis\stlport\stl } </code></pre> <p>And in the <code>soapStub.h</code> I had to include</p> <pre><code>#include &lt;vector&gt; #include &lt;string&gt; </code></pre> <p>Also you should modify your <code>typemap.dat</code> and add the following in order to be able to compile.</p> <pre><code># Symbian specific xsd__dateTime = | std::string xsd__long = | long xsd__unsignedLong = | unsigned long xsd__int = | int </code></pre> <p>Otherwise the compiler will complain about</p> <pre><code>'soap_outdateTime' was not declared in this scope 'soap_indateTime' was not declared in this scope </code></pre> <p>since under Symbian, gSOAP is built with the <code>WITH_LEAN</code> flag, hence some of the stuff are disabled (for example, no support for <code>time_t</code> serialization and no support for <code>LONG64</code>/<code>ULONG64</code> serialization) hence the required <code>typemap.dat</code> overrides above.</p> <p>Finally, for future reference, here are the command line arguments that I used to generate the files:</p> <pre><code>wsdl2h.exe -o service.h http://myservicelocation.com/DataDisplayingWCF.svc?wsdl </code></pre> <p>And then:</p> <pre><code>soapcpp2.exe -I "C:\gsoap-2.7\gsoap\custom;C:\gsoap-2.7\gsoap\import" "service.h" -ixw </code></pre> <p>You might also want to setup the namespaces in the <code>typemap.dat</code> and regenerate using <code>wsdl2h</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload