<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>石无言 &#187; web services</title>
	<atom:link href="http://www.hugstone.com/index.php/archives/tag/web-services/feed" rel="self" type="application/rss+xml" />
	<link>http://www.hugstone.com</link>
	<description>三生石前问一声，人间哪里修正果！</description>
	<lastBuildDate>Wed, 28 Jul 2010 02:11:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>IIS 部署WebService时 问题记录</title>
		<link>http://www.hugstone.com/index.php/archives/407</link>
		<comments>http://www.hugstone.com/index.php/archives/407#comments</comments>
		<pubDate>Wed, 16 Dec 2009 02:56:55 +0000</pubDate>
		<dc:creator>stone</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.hugstone.com/?p=407</guid>
		<description><![CDATA[<strong>无法识别的属性"type" </strong>
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
配置错误
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特[......]<p class='read-more'><a href='http://www.hugstone.com/index.php/archives/407'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong><span style="color: #ff0000;">无法识别的属性"type" </span></strong></p>
<p>“/”应用程序中的服务器错误。<br />
--------------------------------------------------------------------------------</p>
<p>配置错误<br />
说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。</p>
<p>分析器错误信息: 无法识别的属性“type”。</p>
<p>源错误:<br />
行 10： &lt;configuration&gt;<br />
行 11：  &lt;configSections&gt;<br />
行 12：   &lt;sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;<br />
行 13：    &lt;sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"&gt;<br />
行 14：     &lt;section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/&gt;<br />
 </p>
<p>源文件: E:\TIANJIAN Project\MobileWebService\MobileWebSrv\web.config    行: 12<br />
--------------------------------------------------------------------------------<br />
版本信息: Microsoft .NET Framework 版本:1.1.4322.2443; ASP.NET 版本:1.1.4322.2407<br />
<strong>解决方法:</strong> 将部署的该站点属性的ASP.NET选项卡中的ASP.NET版本改为2.X以上的版本.</p>
<p> </p>
<p><strong><span style="color: #ff0000;">无法找到该页</span></strong></p>
<p><strong>解决方法: </strong>将IIS的 "WEB服务扩展" 的相关服务进行启用.</p>
<p> </p>
<p><strong><span style="color: #ff0000;">当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。<br />
</span></strong></p>
<p>“/Websrv”应用程序中的服务器错误。<br />
--------------------------------------------------------------------------------</p>
<p>当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。<br />
说明: 执行当前 Web 请求期间，出现未处理的异常。请检查堆栈跟踪信息，以了解有关该错误以及代码中导致错误的出处的详细信息。</p>
<p>异常详细信息: System.Web.HttpException: 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。</p>
<p>源错误:<br />
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 </p>
<p>堆栈跟踪:<br />
[HttpException (0x80004005): 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。]<br />
   System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +748<br />
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +223</p>
<p>[HttpException (0x80004005): 当前标识(NT AUTHORITY\NETWORK SERVICE)没有对“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files”的写访问权限。]<br />
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +940<br />
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +70<br />
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +275<br />
--------------------------------------------------------------------------------<br />
版本信息: Microsoft .NET Framework 版本:2.0.50727.1433; ASP.NET 版本:2.0.50727.1433</p>
<p><strong>解决方法:</strong></p>
<p>"开始-&gt;运行"中执行 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i -enable</p>
<p>Microsoft Windows [版本 5.2.3790]<br />
(C) 版权所有 1985-2003 Microsoft Corp.</p>
<p>C:\Documents and Settings\Administrator&gt;C:\WINDOWS\Microsoft.NET\Framework\v2.0.<br />
50727\aspnet_regiis -i -enable<br />
开始安装 ASP.NET (2.0.50727)。<br />
...............................<br />
ASP.NET (2.0.50727)安装完毕。</p>
<p>C:\Documents and Settings\Administrator&gt;</p>
<p><strong>*.  关于ASP.NET IIS 注册工具 (Aspnet_regiis.exe)</strong></p>
<p>在一台计算机上并行执行多个 .NET Framework 版本时，映射到 ASP.NET 应用程序的 ASP.NET ISAPI 版本决定了该应用程序所使用的公共语言运行库 (CLR) 版本。使用 ASP.NET IIS 注册工具 (Aspnet_regiis.exe)，管理员或安装程序可以方便地更新 ASP.NET 应用程序的脚本映射，使其指向与该工具关联的 ASP.NET ISAPI 版本。该工具还可以用于显示所有已安装的 ASP.NET 版本的状态，注册与该工具耦合的 ASP.NET 版本，创建客户端脚本目录，以及执行其他配置操作。<br />
<a href="http://msdn.microsoft.com/zh-cn/library/k6h9cz8h(VS.80).aspx" target="blank">http://msdn.microsoft.com/zh-cn/library/k6h9cz8h(VS.80).aspx</a></p>
<p>(这次安装的系统,由于是先安装的.net 框架,最后才装的IIS,因此IIS没有对该框架进行访问的限制; 在执行完该命令后,查看v2.0.50727\Temporary ASP.NET Files目录的安全权限中多了ASP.NET、IIS_WPG、Local_Service、Network_Service这几个用户及组)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hugstone.com/index.php/archives/407/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[LR] 无线**系统的WS模块测试过程记录</title>
		<link>http://www.hugstone.com/index.php/archives/306</link>
		<comments>http://www.hugstone.com/index.php/archives/306#comments</comments>
		<pubDate>Mon, 01 Jun 2009 07:50:45 +0000</pubDate>
		<dc:creator>stone</dc:creator>
				<category><![CDATA[Note]]></category>
		<category><![CDATA[LR]]></category>
		<category><![CDATA[web services]]></category>

		<guid isPermaLink="false">http://www.hugstone.com/?p=306</guid>
		<description><![CDATA[无线**系统的WS模块测试过程记录
测试环境:
WIN2003 + WINXP  + ASP.net(asmx/*.cs) + IIS + Oracle10G
IBM 3400 (Xeon E5420 2.50G 四核 ,8G RAM / Server,WIN2003) +  Lenovo R61 [......]<p class='read-more'><a href='http://www.hugstone.com/index.php/archives/306'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p>无线**系统的WS模块测试过程记录</p>
<p>测试环境:<br />
WIN2003 + WINXP  + ASP.net(asmx/*.cs) + IIS + Oracle10G<br />
IBM 3400 (Xeon E5420 2.50G 四核 ,8G RAM / Server,WIN2003) +  Lenovo R61 (Core 2.1G , 2G RAM /Client,WIN2003) + Lenovo R61(Core 2.2G,3G RAM /Client,WINXP)</p>
<p>WS测试：<br />
1.Import WSDL: 搭建好测试环境后，在LR的manage services中以URL方式导入WSDL文件，导入成功后，会在界面最下方提示"The WSDL file associated with this service passed validation with on errors."<br />
2.Add Service Call:  Click Add Service Call 按钮，在弹出的窗口中选择WEB 服务以及要对该服务进行的操作(web method)，可以在这里对输入输出参数进行设置，也可以在添加完成后对输入输出进行参数化。<br />
3.Replay: Click RUN.<br />
4.Create Scenario.</p>
<p>问题记录：<br />
Q1:<br />
Action.c(4): Error: C interpreter run time error: Action.c (4):  Error -- memory violation : Exception ACCESS_VIOLATION received.<br />
A:该问题有不同的解决方法：<br />
  （一）、查看参数设置是否正确，传入参数不匹配，或非空的参数为空，都会造成该问题。<br />
  （二）、run time settings->Miscellaneous中将thread（线程）换成process（进程）。</p>
<p>Q2:R612003机器上录制脚本没问题，同样的录制方法在R61XP机器上录制，脚本死活通不过，报以下错误：<br />
错误一：<br />
Microsoft Visual C++ Runtime Library<br />
Runtime Error!<br />
Program:<br />
This application has request the Runtime to terminate it in an unusual way.<br />
Please contact the application's support team for more information.</p>
<p>错误二：<br />
mmdrv.exe遇到问题需要关闭。我们对此引起的不便表示抱歉。<br />
如果你正处在进程当中，信息可能丢失。</p>
<p>A：对比脚本的WSDL，发现XP当前的用户为中文名，于是换一英文用户登陆，再录制WS脚本，回放通过，该脚本在2003中回放也顺利通过。在录制的过程中最好使用administrator帐户录制。</p>
<p>Q3: 一台机器上录制的脚本，回放通过，在另一台机器上回放通不过。<br />
A：由于录制时使用localhost录制，虽然另一台机器上也有相同的环境，回放是通不过的，所以要想共享脚本，最好使用将localhost换成IP。应该是录制时脚本中会加入唯一识别的标识。</p>
<p>PS:<br />
关于录制协议的选择，WS可以采有Web services 协议进行录制，也可以采用WEB(http/html)方式录制(不需添加WS CALL)，只要有类似如aps.net中的.asmx文件提供对WS的支持，并且能通过WEB方式访问得到，业务能成功就是正确的协议。<br />
附代码：<br />
//WEB协议<br />
Action()<br />
{</p>
<p>	web_url("localhost:801",<br />
		"URL=http://localhost:801/",<br />
		"Resource=0",<br />
		"RecContentType=text/html",<br />
		"Referer=",<br />
		"Snapshot=t1.inf",<br />
		"Mode=HTTP",<br />
		LAST);</p>
<p>	lr_think_time(14);</p>
<p>	web_url("DataWebSrv.asmx",<br />
		"URL=http://localhost:801/DataWebSrv.asmx",<br />
		"Resource=0",<br />
		"RecContentType=text/html",<br />
		"Referer=http://localhost:801/",<br />
		"Snapshot=t2.inf",<br />
		"Mode=HTTP",<br />
		LAST);</p>
<p>	web_url("GetPdaDbTableList",<br />
		"URL=http://localhost:801/DataWebSrv.asmx?op=GetPdaDbTableList",<br />
		"Resource=0",<br />
		"RecContentType=text/html",<br />
		"Referer=http://localhost:801/DataWebSrv.asmx",<br />
		"Snapshot=t3.inf",<br />
		"Mode=HTTP",<br />
		LAST);</p>
<p>	lr_think_time(5);</p>
<p>	web_submit_data("GetPdaDbTableList_2",<br />
		"Action=http://localhost:801/DataWebSrv.asmx/GetPdaDbTableList",<br />
		"Method=POST",<br />
		"RecContentType=text/xml",<br />
		"Referer=http://localhost:801/DataWebSrv.asmx?op=GetPdaDbTableList",<br />
		"Snapshot=t4.inf",<br />
		"Mode=HTTP",<br />
		ITEMDATA,<br />
		"Name=dtLastUpdate", "Value=2008.09.05", ENDITEM,<br />
		LAST);</p>
<p>	return 0;<br />
}</p>
<p>//WS协议<br />
Action()<br />
{</p>
<p>	web_service_call( "StepName=GetPdaDbTableList_101",<br />
		"SOAPMethod=DataWebSrv.DataWebSrvSoap.GetPdaDbTableList",<br />
		"ResponseParam=response",<br />
		"Service=DataWebSrv",<br />
		"Snapshot=t1243912498.inf",<br />
		BEGIN_ARGUMENTS,<br />
		"dtLastUpdate=2008.09.05",<br />
		END_ARGUMENTS,<br />
		BEGIN_RESULT,<br />
		END_RESULT,<br />
		LAST);</p>
<p>	lr_think_time(3);</p>
<p>	return 0;<br />
}</p>
<p>感谢ZEE老师和坛里的OK兄,在这个过程中给了我很多的帮助和意见。。。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hugstone.com/index.php/archives/306/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
