2012-01-03 61 views

回答

1

你可以嘗試這樣的事情:

def httpBuilder = new HTTPBuilder("http://webite.url") 

httpBuilder.request(Method.POST, URLENC){req-> 
    headers.accept = "application/xml" 
    body = [ YOUR URL ENCODED POST] 

    response.success = {resp,xml-> 
     //read xml response. 
    } 
} 
+0

TXS ..它確實是這麼簡單..! – Marco 2012-01-19 10:06:16