0
我試圖從一個WCF客戶端WCF的WebHttpBinding後到apache服務
我已經設置了客戶這樣與Apache服務進行通信:
<client>
<endpoint name="ApacheService"
address="SomeUrl"
behaviorConfiguration="ApacheBehavior"
binding="webHttpBinding"
contract="ISomeContrect" />
</client>
<behaviors>
<endpointBehaviors>
<behavior name="ApacheBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
和我的合同看起來像
[OperationContract]
[WebInvoke(Method = WebRequestMethods.Http.Post,
RequestFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "?user={username}&action=someaction")]
void dosomeaction(string username, List<SomeJSONSerializableObject> data);
不知道在接收端使用了什麼框架,但用戶和操作變量是作爲get變量呈現的,並且根本沒有看到json有效載荷。
debug started
post:
Array
(
)
get:
Array
(
[user] => someusername
[action] => someaction
)
json:
我做了一些本地測試與WCF服務,它工作正常。
任何想法可能是錯誤的?