I just start to use Spring-WS client to send request with an attachment to a Web Service. According to the Web service functional spec I received from client, I need to call an operation uploadFile with the file itself as a SOAP attachment. However I am not able to find anything related to attachement in the WSDL file and JAXB generatd classes. As I presume the WSDL should have <mime:part><mime:content part="attach" type="application/pdf" /> </mime:part> declared for the uploadFileRequest. So I wonder if the WSDL I received is wrong.
As I am new to Spring-WS and SOAP attachement, and really not sure if Spring-WS has better way to deal with the attachment. Could someone please help?