我被雇佣来重写一些用Java写成的.NET Web服务。据推测,响应需要包含相同的元素(它的确如此,我的新响应中我找回了正确的元素),但我的问题是关于标签。标签是否需要完全一样?这种网络服务将由第三方公司使用,所以现在很难测试,因为我们唯一的版本正在生产。这里有两种反应:SOAP响应比较/格式
原始响应:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Header/>
<env:Body>
<m:redCodeResponse xmlns:m="http://com/agentcorp/webservice/vax">
<m:RedCodeResult>
<java:AgencyID xmlns:java="java:com.agentcorp.ejb.webservices.vax">56693</java:AgencyID>
<java:AgentID xmlns:java="java:com.agentcorp.ejb.webservices.vax">757803</java:AgentID>
</m:RedCodeResult>
</m:redCodeResponse>
新的响应:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header />
<s:Body>
<redCodeResponse xmlns="http://com/agentcorp/webservice/vax">
<RedCodeResult xmlns:a="http://schemas.datacontract.org/2004/07/MyFirstWCFService" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:AgencyID>56693</a:AgencyID>
<a:AgentID>757803</a:AgentID>
</RedCodeResult>
</redCodeResponse>
我想请第三方公司 –
是的,我知道这是一个善意的提醒,但是,因为我只是重写其他语言的代码,一切都应该是一样的,没有什么新的。另外接触该公司,并正从他们的回应将采取律较长,并希望避免直到从哪里代码/响应得到前缀结束 –