簡體   English   中英

Web 服務錯誤:

[英]Web Service Error:

我正在嘗試從 WebService 獲取一些值,但是從 PHP web 應用程序或 SoapUI 訪問時收到一些錯誤消息。

當我從 Visual Studio .NET 訪問服務時,我得到了正確的值,但我真的需要從 PHP 訪問它。

這是錯誤消息:

<faultstring xml:lang="pt-BR">The formatter threw an exception while trying to deserialize the message: Error in deserializing body of request message for operation 'ConsultaFretePedido'. End element 'xmlPedido' from namespace 'http://tempuri.org/' expected. Found element 'Pedido' from namespace ''. Line 6, position 51.</faultstring>

我想這是錯誤:

預期來自命名空間“http://tempuri.org/”的結束元素“xmlPedido”。 從命名空間“”中找到元素“Pedido”。 第 6 行,position 51。

這意味着,您以<xmlPedido> ,但以</Pedido> Pedido> 結尾

查看第 6 行 Web 服務正在回饋的 xml 代碼

我建議使用SOAPui來檢查 WebService。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM