http://localhost/bam/bammanagementservice/bammanagementservice.asmx/GetReferences?viewName=&referenceType=MsgBody...
Then I got the following error message,
Request format is unrecognized for URL unexpectedly ending in '/GetReferences'
This issue is because the web.config is not fully configured.
Fix:
In the web.config of the BamManagement web servcie, which is in C:\Program Files (x86)\Microsoft BizTalk Server 2010\BAMPortal\BAMManagementService
Add the following configuration,
<configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>
<system.web>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
</configuration>
Then it worked.