gSOAP 용 서비스를 정의하기 위해 .wsdl 파일을 만들고 있습니다. 서비스의 요청 하나, 나는 요청의 일부로 사용자 정의 형식을 사용하려면,하지만 바로 그것을 얻을 수 없으며, 문제가 무엇인지 모르는 :C++ gSOAP wsdl 유형
<definitions name="Uploader"
targetNamespace="http://192.168.2.113/uploader/uploader.wsdl"
xmlns:tns="http://192.168.2.113/uploader/uploader.wsdl"
[...]>
[...]
<types>
<schema targetNamespace="http://192.168.2.113/uploader/uploader.wsdl"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="FileInformation">
<complexType><all>
<element name="sFilename" type="string"/>
<element name="bDirectory" type="boolean"/>
</all></complexType>
</element>
[...]
<element name="UploadRequest">
<complexType><all>
<element name="fileInfo" type="tns:FileInformation"/>
</all></complexType>
</element>
[...]
</schema>
</types>
[...]
</definitions>
내가하려고하면 fileInfo
회원이 문자열로 정의됩니다 그것에서 wsdl2h -o Uploader.h http://192.168.2.113/uploader/uploader.wsdl
와 헤더 파일을 생성하고, 나는 다음과 같은 경고 얻을 : 나는 몇 WSDL 자신을 파일을 작성하려고했습니다
Warning: could not find element 'fileInfo' type '"http://192.168.2.113/uploader/uploader.wsdl":FileInformation' in schema http://192.168.2.113/uploader/uploader.wsdl
완벽하고 고맙습니다. 네, 정말로 생성 된 파일을 사용해야합니다. 나는 내가 처음으로 이런 일을하면 더 잘 SOAP을 이해할 것이라고 생각하고있다. – nijansen
당신은 환영합니다! 나는 당신 자신의 문제를 겪어 왔고 WSDL 파일을 작성하여 자기 자신이 정말로 복잡 할 수 있다고 믿는다. – Felipe