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 © 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.
↧