KDSoap
KDSoap copied to clipboard
WSDL HTTP binding
Hello:
We are testing KDSoap for a development project and it's fine but we need to work with WSDL HTTP binding (http://www.w3.org/TR/wsdl#_http)
do your KDSoap work with this?.
if we process an wsdl file like the one below we don't get nothing.
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="MyMessage">
<wsdl:part name="partA" type="xsd:string"/>
<wsdl:part name="partB" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="MyPortType">
<wsdl:operation name="MyOperation">
<wsdl:input message="MyMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MyBinding" type="MyPortType">
<http:binding verb="POST"/>
<wsdl:operation name="MyOperation">
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyService">
<wsdl:port name="Port1" binding="MyBinding">
<http:address location="http://localhost/MyService/MyPort"/>
</wsdl:port>
</wsdl:service>
</definitions>
./kdwsdl2cpp -o generated/example.h example.wsdl
// This file is generated by KDAB's kdwsdl2cpp from example.wsdl.
// All changes you do to this file will be lost.
/*
You may use and relicense this generated file without restriction.
*/
#ifndef EXAMPLE_H
#define EXAMPLE_H
#endif
Thanks
Hello, Sorry for the long delay in my reply.
The first error with this WSDL is "port type not found", easy to fix with a targetNamespace and a prefix for the port type, but indeed the real issue is that http:binding is not implemented in KDSoap currently (see . It's opensource, feel free to provide a patch :-)
Alternatively I can look into an estimate, if you're looking for subcontracting this development.
Meanwhile I'll at least make kdwsdl2cpp issue a warning about this not being implemented, it will be clearer.
Hello:
Thank you very much for the reply. I will think about your proposals
Regards
JCP
On 6 May 2015 at 13:04, David Faure [email protected] wrote:
Hello, Sorry for the long delay in my reply.
The first error with this WSDL is "port type not found", easy to fix with a targetNamespace and a prefix for the port type, but indeed the real issue is that http:binding is not implemented in KDSoap currently (see . It's opensource, feel free to provide a patch :-)
Alternatively I can look into an estimate, if you're looking for subcontracting this development.
Meanwhile I'll at least make kdwsdl2cpp issue a warning about this not being implemented, it will be clearer.
— Reply to this email directly or view it on GitHub https://github.com/KDAB/KDSoap/issues/49#issuecomment-99419049.