New updates about this issue:
Tried the example from Walkthrough: Exchanging documents by using the HTTP adapter [AX 2012] link: msdn.microsoft.com/.../hh496418.aspx.
Surprise, the example in VS2010 gives same error:
The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework 3.0 SDK documentation and inspect the server trace logs.
Google time!!
Finally, in the subfolder of the web service of AIF, I set <serviceDebug includeExceptionDetailInFaults="True" /> in web.config file.
Try again the web service from VS2010. Now the message changed to (from VS2010 and SoapUI):
Error message: Call to SSPI failed; see inner exception
A bit more of googling...
And I fall in Troubleshoot services and AIF [AX 2012] link: technet.microsoft.com/.../aa548693.aspx
"Error message: Call to SSPI failed; see inner exception
You can encounter this error message when you call a Microsoft Dynamics AX web service if Internet Information Services (IIS) is installed on a separate computer from the Application Object Server (AOS). In this case, if you view the inner exception, the message contains, "Target Principal Name is incorrect." You can also encounter this issue when the AOS account is a user account on the domain.
To resolve this issue, use the Active Directory Domain Services management tool named Setspn.exe. Use the following command-line syntax:
setspn -U -A host/Name_of_AOS Domain_name\AOS_service_user_name
For more information about the Setspn tool, see Setspn Overview on the TechNet website."
Yes, this Ax2012 environment is distributed between 4 servers: SQL server, TS+VS+AxClient, AOS, and web (EP, Web Services, Help server, and so on). All servers are W2K8 R2 64 bits.
So, use the setspn as mentioned, and VS2010 example WORKS!!
But now, when trying to use this same (or similar) Ax2012 web service from SoapUI, IIS returns this error (translated as well as possible for me):
HTTP/1.1 500 Internal Server Error
Content-Length: 4041
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/7.5
Persistent-Auth: true
X-Powered-By: ASP.NET
Date: Thu, 03 May 2012 20:41:56 GMT
This channel can no longer be used to send messages as the output session was auto-closed due to a server-initiated shutdown. Either disable auto-close by setting the DispatchRuntime.AutomaticInputSessionShutdown to false, or consider modifying the shutdown protocol with the remote server.
Any suggestion to continue with this?