01-23-2013 07:59 AM
hello, friends..
I am stuck at this functionality. I have to call ASP.NET web-service with some Input Parameter (also image), I searched lots but I cant found out any source code. Please give me some source code or link..
Thanks..
01-23-2013 08:59 AM
Is it a soap or a json webservice?
For a soap webservice i use QtSoap.
To add parameters i use code like that, in this example to add a parameter "Item" in a list of "Items".
You can find documentation and samples for QtSoap online.
QtSoapStruct* inputValues = new QtSoapStruct(QtSoapQName("Items"));
request.addMethodArgument(inputValues);
QtSoapStruct* item = new QtSoapStruct(QtSoapQName("Item"));
item->insert(new QtSoapSimpleType(QtSoapQName("Name"), "_OS"));
item->insert(new QtSoapSimpleType(QtSoapQName("Value"), "BB10"));
inputValues->insert(item);
01-24-2013 12:11 AM - edited 01-24-2013 12:14 AM
hiiiiiiii Coders,
I tried to implement Asp.net web services using QtSoapHttpTransport object but , i got error while calling Web-services like this
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Fault xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <Faultcode xsi:type="xsd:string" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">SOAP-ENV:VersionMismatch</Faultcode> <Faultstring xsi:type="x...
Please reply if any idea how to solve this error.
Thanks in Advance.
01-24-2013 03:16 AM
01-28-2013 04:16 AM
01-28-2013 04:36 AM
01-28-2013 04:38 AM
01-28-2013 04:49 AM