10 Eylül 2009 Perşembe

read/write file with web service

after a totally sleepless night, this morning i was googling to find a binding for java.io.File in web services with an unclear mind and very upset since i was not even close to my intention :((

you know, type of the file parameter in the following service becomes string in the client side..

@WebMethod(operationName = "retrieveFile")
public void retrieveFile(@WebParam(name = "file")
File file) {

the wsdl

<xs:complexType name="retrieveFile"
<xs:element name="file" type="xs:string" minOccurs="0"/>

so, what to do ?
lucily, a friend in the team has searched for it before and came back with a solution:


it is checked, guaranteed to work..

Hiç yorum yok:

Yorum Gönder