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 servicehttp://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.
-
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 -
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 :)