WCF客户端应用程序中的问题 [英] Problem in WCF Client application
本文介绍了WCF客户端应用程序中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有 Webservice托管在我想通过WCF调用的某些服务器上.
I have webservice hosted on some server which I wanted to call via WCF .
我已经参考了该服务.
现在,当我调用服务时,我得到了某种形式的格式不正确的异常.
Now When I am calling the service I am getting some sort of Not Well formed exception.
当我从xml间谍发送时,相同的调用得到了结果.
While same call when i sent from a xml spy i get the result.
我观察到的肥皂需求量有微小变化
What i observed there is minor change in the soap request
我的应用程序肥皂请求"看起来像
The My application Soap Request looks like
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://www.usps.com/postalone/services/Transportation/10/AllDeliveryApptCloseout</Action>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AllDeliveryApptCloseoutRequest_10 xmlns="http://www.usps.com/postalone/services/mailxml/Transportation">
<AuthenticationInfo xmlns="http://www.usps.com/postalone/services/UserAuthenticationSchema">
<UserId xmlns="">test</UserId>
<UserPassword xmlns="">test</UserPassword>
</AuthenticationInfo>
<AllDeliveryApptCloseoutRequest d5p1:SchedulerCRID="2222222" d5p1:SchedulerID="111111111111"
d5p1:CreatorSchedulerCorpID="111111111110"
d5p1:SchedulerCorpID="111111111110"
xmlns:d5p1="http://idealliance.org/Specs/mailxml10.0/mailxml_tm"
xmlns="http://idealliance.org/Specs/mailxml10.0/mailxml_tm">
<d5p1:SubmittingParty d6p1:MailerID6="123456" d6p1:CRID="2222222" d6p1:MaildatUserLicense="A123"
xmlns:d6p1="http://idealliance.org/Specs/mailxml10.0/mailxml_defs"></d5p1:SubmittingParty>
<d5p1:SubmittingSoftware d6p1:SoftwareName="ShipmentAssurety" d6p1:Vendor="Assurety Consulting Inc"
d6p1:Version="8.0" d6p1:ApprovalKey="1234"
xmlns:d6p1="http://idealliance.org/Specs/mailxml10.0/mailxml_defs"></d5p1:SubmittingSoftware>
</AllDeliveryApptCloseoutRequest>
</AllDeliveryApptCloseoutRequest_10>
</s:Body>
推荐答案
您的肥皂信封完全不同.
Your soap envelope are quite different.
请对该错误进行更好的描述,然后尝试使用WctTestClient看看它是否有效.
Please give a better description of the error and try using WctTestClient to see if it works.
祝一切顺利.
这篇关于WCF客户端应用程序中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文