51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 4637|回复: 10
打印 上一主题 下一主题

[求助] LR11录制SILVERLIGHT时,silverlight_soap_request回访报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-6-4 17:22:15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
录制的代码如下

silverlight_soap_request("StepName=InsertSolution",
                "URL=http://192.168.0.171/CiasPM/CiasPMWCF.svc",
                "SOAPEnvelope=<?xml version=\"1.0\" encoding=\"GBK\" standalone=\"no\"?"
                "><s:Envelope xmlns:a=\"http://www.w3.org/2005/08/addressing\" xmlns:s="
                "\"http://www.w3.org/2003/05/soap-envelope\"><s:Header><a:Action s"
                ":mustUnderstand=\"1\">http://tempuri.org/ICiasPMWCF/InsertSolution</a"
                ":Action><a:MessageID>urn:uuid:16d28d11-cb28-487b-b901-e2dedd1c5fbc</a"
                ":MessageID><a:ReplyTo><a:Address>http://www.w3.org/2005/08/addressing/"
                "anonymous</a:Address></a:ReplyTo><a:To s:mustUnderstand=\"1\">http://"
                "192.168.0.171/CiasPM/CiasPMWCF.svc</a:To></s:Header><s:Body>"
                "<InsertSolution xmlns=\"http://tempuri.org/\"><identity"
                ">6f6578650f4915ce7248454202de49673707c03b4611f66877cf07efcfe533cd3700c"
                "65a4a14e760604703e8425c504d10cf464d4f52450deb424f3b4a16f7605f4702e44e5"
                "626ce3e</identity><newSolution xmlns:i=\"http://www.w3.org/2001/"
                "XMLSchema-instance\" xmlns:b=\"http://schemas.microsoft.com/2003/10/"
                "Serialization/Arrays\"><b:KeyValueOfstringstring><b:Key"
                ">SolutionGroupID</b:Key><b:Value>95</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Name</b:Key>"
                "<b:Value>lixmtest</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>SolutionCode</b:Key><b:Value"
                ">2012-0001-FCT-TB-N</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>ProjectCode</b:Key><b:Value>lxmtest</b"
                ":Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">IsPMDutiy</b:Key><b:Value>True</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>Country</b:Key><b:Value>False</b:Value>"
                "</b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Level</b"
                ":Key><b:Value>1</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>Type</b:Key><b:Value>火电工程</b:Value>"
                "</b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Stage</b"
                ":Key><b:Value>投标阶段</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>Kind</b:Key><b:Value>工程总承包/"
                "工程项目管理</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>TaskType</b:Key><b:Value>投标报价估算</"
                "b:Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">Manager</b:Key><b:Value>朱明,唐志强,郑庆弟</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Designer</b"
                ":Key><b:Value>李耀能,陈华民</b:Value></b:KeyValueOfstringstring><b"
                ":KeyValueOfstringstring><b:Key>EntrustUnit</b:Key><b:Value"
                ">广东省电力设计研究院与广东火电工程总公司越南永兴电厂一期工程联合体项"
                "目部</b:Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b"
                ":Key>EntrustType</b:Key><b:Value>3</b:Value></b:KeyValueOfstringstring"
                "><b:KeyValueOfstringstring><b:Key>EntrustCode</b:Key><b:Value/></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">EntrustContent</b:Key><b:Value"
                ">1、投标报价(2009年12月24日~2010年2月18日);2、价格分析和调整报告("
                "2011年5月31日~2011年7月15日);3、二次报价()C</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Outcome</b"
                ":Key><b:Value>1、投标报价表;2、价格分析和调整报告;二次报价表</b"
                ":Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">SolutionScale</b:Key><b:Value>2×610MW</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Note</b:Key>"
                "<b:Value"
                ">越南永兴电厂位于平顺省最东侧,属于随风县管辖,南面临海,北面靠山,东"
                "面临近宁顺省,西面紧靠永好(Vinh "
                "Hao)镇。电厂距离平顺省府潘切市约90km,距离胡志明市约250km。\r\n    "
                "越南永兴电力中心最终建设规模为4440MW(2×610MW+2×610MW+2×1000MW)"
                ",分三期建设。永兴电厂一期工程建设规模为2×610MW,采用国产亚临界参数机"
                "组。本期工程范围为电厂围墙范围内(不含升压站、厂外供水、厂外供电内容)"
                "。\r\n    "
                "本项目在中越双方良好合作的基础上,中国南方电网有限责任公司和南方电网国"
                "际有限责任公司积极实施国家“走出去”战略,大力推动双方合作,促成了越南"
                "永兴电厂一期BOT项目,并作为优先发展项目列入越南国家电力规划。2006年11"
                "月在中越两国最高领导的见证下,越南工业部与中国南方电网有限责任公司签订"
                "了有关中国南方电网有限责任公司以BOT方式建设该项目的谅解备忘录,经营期"
                "为25年。</b:Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring"
                "><b:Key>Proprietor</b:Key><b:Value"
                ">南网国际、中电国际、越南煤碳公司三个投资方组成的BOT公司</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Contractor</b"
                ":Key><b:Value>广东省电力设计研究院、广东火电工程总公司组成的联合体</b"
                ":Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">MemberName</b:Key><b:Value>lixm;</b:Value></b:KeyValueOfstringstring>"
                "<b:KeyValueOfstringstring><b:Key>MemberFullName</b:Key><b:Value>李星明"
                ";</b:Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">IsDepartment</b:Key><b:Value>False</b:Value></b"
                ":KeyValueOfstringstring></newSolution><newMeasure xmlns:i=\"http://"
                "www.w3.org/2001/XMLSchema-instance\" xmlns:b=\"http://"
                "schemas.microsoft.com/2003/10/Serialization/Arrays\"><b"
                ":KeyValueOfstringstring><b:Key>ManagerUserName</b:Key><b:Value>lixm</b"
                ":Value></b:KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">ManagerFullName</b:Key><b:Value>李星明;</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">EditorUserName</b:Key><b:Value>lixm</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">EditorFullName</b:Key><b:Value>李星明;</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">DirectorUserName</b:Key><b:Value>lixm</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key"
                ">DirectorFullName</b:Key><b:Value>李星明;</b:Value></b"
                ":KeyValueOfstringstring><b:KeyValueOfstringstring><b:Key>Note</b:Key>"
                "<b:Value/></b:KeyValueOfstringstring></newMeasure><senderName>lixm</"
                "senderName><senderFullName>李星明</senderFullName><updateType>false</"
                "updateType></InsertSolution></s:Body></s:Envelope>",
                "Snapshot=t287.inf",
                "ResponseParam=response",
                "UserHandlerName=LrBinaryEncodingHandler",
                LAST);


无论我如何修改都还是报错,求大神帮助
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-6-4 18:09:40 | 只看该作者
回复 2# xzf2001


  其他有中文的没有错,我明天改成有错误继续执行试下
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2012-6-4 18:16:05 | 只看该作者
报啥错误。
检查下是否需要关联
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2012-6-5 12:30:00 | 只看该作者
回复 4# thirfing

报这个错
Action.c(450): Error: Binary XML Encoding Handler: unable to encode XML envelope
Action.c(450): Error: The function "HandleRequest" in the user handler library "LrBinaryEncodingHandler" failed.
Action.c(450): Error: Failed to process the request.
Action.c(450): Error: SOAP request "InsertSolution" execution failed
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2012-6-5 17:41:22 | 只看该作者
回复 5# shanxiying


    认真找下关联
回复 支持 反对

使用道具 举报

该用户从未签到

6#
 楼主| 发表于 2012-6-6 01:17:03 | 只看该作者
回复 7# thirfing


  我个人判断是因为  "UserHandlerName=LrBinaryEncodingHandler", 参数出现了问题,因为报错的错误都指向这个,这个错误是SILVERLIGHT + LR11里经常出现,一些提交表单的操作似乎都失败了
回复 支持 反对

使用道具 举报

该用户从未签到

7#
 楼主| 发表于 2012-6-6 09:27:25 | 只看该作者
回复 6# xzf2001

跟";"没有关系,我把里面全部的;都去掉了
回复 支持 反对

使用道具 举报

该用户从未签到

8#
 楼主| 发表于 2012-6-6 12:01:39 | 只看该作者
问题可以很明确的定位在  "UserHandlerName=LrBinaryEncodingHandler", 这句话中,  这个参数究竟可以输多少?????我要一个个试下,我如果不输入报400错误,气死我了
回复 支持 反对

使用道具 举报

该用户从未签到

9#
 楼主| 发表于 2012-6-6 18:07:59 | 只看该作者
回复 7# thirfing


   
问题可以很明确的定位在  "UserHandlerName=LrBinaryEncodingHandler", 这句话中,  这个参数究竟可以输多少?????我要一个个试下,我如果不输入报400错误,气死我了
我这里用的是silverlight4.0,据说出LR11的时候只有SILVERLIGHT3.0,所以产生了一些不兼容的问题,不知道有高手能够通过配置来解决这个通信的问题吗?
回复 支持 反对

使用道具 举报

该用户从未签到

10#
发表于 2012-6-8 13:03:41 | 只看该作者
插件解决!
回复 支持 反对

使用道具 举报

该用户从未签到

11#
 楼主| 发表于 2012-6-11 09:11:12 | 只看该作者
回复 12# 上海丶Lost


    大神用什么插件?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-23 15:28 , Processed in 0.133566 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表