Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Manipulating typemap.dat GSoap
QtWS25 Last Chance

Manipulating typemap.dat GSoap

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 4.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    danitiger33
    wrote on 2 May 2013, 09:50 last edited by
    #1

    i created a web service at my own computer (localhost)
    after that i following below tutorial for creating a client side application for using this web service

    http://qt-project.org/wiki/How_to_use_gSOAP_with_Qt_for_Web_Service_Client

    i've added :

    wsdl:types
    <s:schema elementFormDefault="qualified" targetNamespace="http://Mysite.ir/">
    <s:element name="HelloWorld">
    <s:complexType/>
    </s:element>
    <s:element name="HelloWorldResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="HelloWorldResult" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetContact">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="id" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="GetContactResponse">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="GetContactResult" type="s:string"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    </s:schema>
    </wsdl:types>

    to typemap.dat file

    and after that i addede the folliwing line:

    Namespace = "http://Mysite.ir/"

    to that file

    and then i used wsdl2h for creating header file:

    wsdl2h -s -t C:\Gsoap\gsoap-2.8\gsoap\WS -o contact.h http://localhost:11061/WebService.asmx?WSDL

    it created contact.h but when i run this command:

    soapcpp2 -I contact.h

    it show :

    ** The gSOAP code generator for C and C++, soapcpp2 release 2.8.14
    ** Copyright (C) 2000-2013, Robert van Engelen, Genivia Inc.
    ** All Rights Reserved. This product is provided "as is", without any warranty.

    ** The soapcpp2 tool is released under one of the following two licenses:
    ** GPL or the commercial license by Genivia Inc.

    and it doesnt do anything .

    whats my problem plz help.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 2 May 2013, 10:46 last edited by
      #2

      Hi and welcome to devnet,

      This question is not Qt related, you'd better ask on the gsoap mailing list to have help with that tool.

      A quick look at the man page of soapcpp2 reveals that you're telling it to use contact.h as an include path thus not giving it any input file so it will use stdin.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        danitiger33
        wrote on 2 May 2013, 12:41 last edited by
        #3

        Special Thanks for youre help
        that was my problem
        i Changed my command to
        soapcpp2 -I C:\Gsoap\gsoap-2.8\gsoap\import contact.h
        and everything works fine
        I wanted to create client side with Qt so I asked my question here to follow Qt requirements
        anyway thanks again

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 2 May 2013, 14:59 last edited by
          #4

          You're welcome

          Don't forget to update the thread's title to solved so other forum users may know that a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          1/4

          2 May 2013, 09:50

          • Login

          • Login or register to search.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved