Interrogando un Web Service (WSDL) con PHP ho come risposta degli header e poi un file XML.
Stampando a video ho una cosa del genere
codice:
HTTP/1.1 401 Unauthorized Content-Type: text/html; 
charset=us-ascii Server: Microsoft-HTTPAPI/2.0 WWW-Authenticate: NTLM 
Date: Wed, 1 May 2010 11:31:57 GMT Content-Length: 341  HTTP/1.1 100 Continue  

HTTP/1.1 200 OK Content-Type: text/xml; 
charset=utf-8 Server: Microsoft-IIS/7.0 X-Powered-By: ASP.NET Date: Wed, 1 May 2010 11:31:57 GMT Content-Length: 1298
  
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
...
Se io volessi salvare su un file solo la parte XML?