12 years ago
Is My File Attachment Request looking correct in SOAP?
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:g........e" xmlns:xsd="http://io.java/xsd">
<soapenv:Header/>
<soapenv:Body>
<gkks:uploadFile>
<!--Optional:-->
<gkk:gFileObj>
<!--Optional:-->
<xsd:absolute>?</xsd:absolute>
<!--Optional:-->
<xsd:absoluteFile/>
<!--Optional:-->
<xsd:absolutePath>?</xsd:absolutePath>
<!--Optional:-->
<xsd:canonicalFile/>
<!--Optional:-->
<xsd:canonicalPath>?</xsd:canonicalPath>
<!--Optional:-->
<xsd:directory>?</xsd:directory>
<!--Optional:-->
<xsd:file>?</xsd:file>
<!--Optional:-->
<xsd:freeSpace>?</xsd:freeSpace>
<!--Optional:-->
<xsd:hidden>?</xsd:hidden>
<!--Optional:-->
<xsd:name>?</xsd:name>
<!--Optional:-->
<xsd:parent>?</xsd:parent>
<!--Optional:-->
<xsd:parentFile/>
<!--Optional:-->
<xsd:path>?</xsd:path>
<!--Optional:-->
<xsd:totalSpace>?</xsd:totalSpace>
<!--Optional:-->
<xsd:usableSpace>?</xsd:usableSpace>
</gkks:gFileObj>
</gkks:uploadFile>
</soapenv:Body>
</soapenv:Envelope>
I use free version and this service is to upload file as attachment in SOAP.
So, I am new to soap and is this looking correct..if correct, what to enter in those.
if not, where its going wrong and how to fix it.
I am using Apache Axis2 and the service method is this
public String uploadFile(File gFileObj) {
.....
return "Yea the method has been correctly";
}
NOTE: some names in the xml are changed!!
Thanks