Qt World Summit: Register Today!

Manipulating typemap.dat GSoap

  • 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


    i've added :

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

    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.

  • Lifetime Qt Champion

    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.

  • 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

  • Lifetime Qt Champion

    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 :)

Log in to reply