Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7692509
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:52:08+00:00 2026-05-31T20:52:08+00:00

I am trying to load some XML data into C++ code (classes) using gsoap.

  • 0

I am trying to load some XML data into C++ code (classes) using gsoap. In the examples they have in the documentation they talk about loading web services documents to C++ headers (wsdl2h); but there were no explicit examples using XML files directly. Anyways, I installed gsoap (using pre-compiled binaries) and tried as a first step, doing:

wsld2h -o <myexample_cpp.h> <myexample.xml>

and I got:

../../bin/linux386/wsdl2h: ../../bin/linux386/wsdl2h: cannot execute binary file

As a last note, I am testing this in Cygwin (using the linux binary), but I doubt that might contribute to any error. Also I wanted to know if the XML file has to have the “xml” extension in order for it to work? Appreciate if anyone with some ideas can share their experiences.

Edit:
Actually this could be due to running the linux pre-compiled binary on cygwin. Anyway I tried this from the Windows command line instead and I got what appears to be a legitimate error:

  <path/to>\tests\gsoap>..\..\bin\win32\wsdl2h.exe -o myexample_soap_cpp.h myexample.xml

  **  The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.5
  **  Copyright (C) 2000-2011 Robert van Engelen, Genivia Inc.
  **  All Rights Reserved. This product is provided "as is", without any warranty.
  **  The wsdl2h tool is released under one of the following two licenses:
  **  GPL or the commercial license by Genivia Inc. Use option -l for details.

  Saving myexample_soap_cpp.h

  Cannot open file 'typemap.dat'
  Problem reading type map file 'typemap.dat'.
  Using internal type definitions for C++ instead.


  Reading file 'myexample.xml'...

  An error occurred while parsing WSDL or XSD from 'myexample.xml'
  Error 3 fault: SOAP-ENV:Client [no subcode]
  "Validation constraint violation: tag name or namespace mismatch in element 'ns4:xmlDocument'"
  Detail: [no detail]
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <ns4:xmlDocument xmlns="http://purl.org/dc/terms/" xmlns:ns2="http://www.w3.org/1999/xlink"  xmlns:ns3="http://www.opengis.net/gml/3.2" xmlns:ns4="h
  /www.isotc211.org/2005/gmd" xmlns:ns7="http://www.<my_website>" version="1.1.0.0(XML)">
<title>myexample</title>
<creator>l0352955</creator>
<publisher>blah</publisher>
<created xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="W3CDTF">2011-07-25T10:43:26.622+02:00</created>
<format>XML/HDF</format>
<ns4:areaOfInterest ns3:id="AreaOfInterest">
    <ns3:description>Some description</ns3:description>
    <ns3:boundedBy>
        <ns3:Envelope>
            <ns3:lowerCorner>427875.13794 6736113.80757</ns3:lowerCorner>
            <ns3:upperCorner>436165.54057 6747905.74672</ns3:upperCorner>
        </ns3:Envelope>
    </ns3:boundedBy>
    <ns4:outline>
        <ns3:SomeShape ns3:id="ShapeOfInterest">
            <ns3:exterior>
                <ns3:Linear>
                    <ns3:pos>431960.26388 6736113.80757</ns3:pos>
                    <ns3:pos>436165.54057 6737898.90462</ns3:pos>
                    <ns3:pos>431960.26388
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T20:52:09+00:00Added an answer on May 31, 2026 at 8:52 pm

    Actually, I resolved this. The problem was the usage. I need to be issuing the wsdl2h executable with the XSD schemas as argument, not the XML files. That fixes all the errors (I tested this only on Windows 64 bit Vista). Thanks.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to load data from XML string into a structure of some
I'm trying to call a function after I load some XML into Actionscript, and
I am trying to get some XML data with LINQ, but running into a
I'm trying to fill some data from an xml feed we made into my
I'm trying to load some stuff using AJAX when a user clicks a link,
I am trying to load some info from the database asynchronously. I have a
I'm trying to load some images using Bitmap.getBitmapResource() , but it takes about 2
In the code below I'm trying to load some images and put them in
I am trying to use load() to place some html into a div on
I am trying to load some data (which may be up to a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.