如下所示的代码,从CICS服务器检索了一个名称,然后将它输出到控制台(标准输出)。
Our code, shown below, retrieved a name from the CICS server and output it to the console (standard out).
创建的模型可以被分析,并作为代码生成(如下所示)的基础被使用。
The created models can be analyzed and used as a basis for code generation (see below).
首先让我们看看由如下代码片断中的文件组件所提供的服务端点。
Let's first look at the service endpoint which is provided by the File component in the following code snippet.
如下的代码显示了获得图书价格所需的对象和方法。
The code below illustrates the objects and methods necessary to get back a book's price.
然后将会使用批文件来运行构建工具,如下面的代码清单11所示。
The batch file used to run the build utility then looks like Listing 11, below.
要改变表格颜色,在我们刚编辑过的代码下面几行的如下注释。
To do this, look for the following comment in the code a few lines below where you've been editing.
要使用软件生成的IRQ,需要对代码进行如下修改。
The following code changes are necessary to use software-generated irqs.
请注意,我们在代码中使用了如下XDIME元素。
Note that we've used the following XDIME elements in the code.
以上代码产生如下标记。
以如下代码代替Source标签中的内容,然后保存文件。
Replace its content in the Source TAB with the code shown in the following listing, then save the file.
与booksearch类中的公共方法类似,这些方法的代码如下。
As for the public methods in our BookSearch class, the code for these methods is as follows.
在最简单的SQL中,完成这个步骤的代码如下。
In the simplest possible SQL, this is accomplished as follows.
要创建数据库行,需创建对应类的实例,代码如下。
To create a database row, you create an instance of the corresponding class with the code.
清单12中代码的效果如下。
下面的这段代码是在PHPv5中运行的,但最好使用提供的接口系统,如下所示。
This code works in PHP V5, but it's better to use the interface system provided, as shown below.
用于在数据库中查询与某个特定用户相关联的文件的PHP代码如下所示。
The PHP code to query the database for the files associated with a particular user is shown below.
问题在于访问数据库以找到一个给定作者的所有书籍的代码中,如下所示。
The problem is in the code that accesses the database to find all the books for a given author, as shown below.
如下面的代码所示,发现所有的异常并正确的处理他们仍是明智之举。
It is still advisable that you catch all exceptions and handle them appropriately, as shown in the following code.
如下代码通过CSS和 HTC文件将突出显示行为添加到一个文本字段。
The following listings add a highlighting behavior to a text field through CSS and an HTC file.
编写如下面清单4所示的RC代码。
代码复查结束以后,发现的所有问题将在代码复查视图中列出来,如下图1所示。
Once the code review has completed, any issues identified will be listed in the Code Review view, as shown in Figure 1 following.
剩下的代码就相当基础,如果没有结果,就设置状态代码为0,否则,设置为1,输出最初的xml,每个消息的xml以及最终的xml.就是这些了,代码如下
The rest of the code is elementary. If no results are returned, set the status code to 0; otherwise, set it to 1. Output the initial XML, the XML for each message, and the final XML.
检查WSDL文件,确保地址与服务器匹配,如下面的代码片段所示。
Examine the WSDL file to ensure the address matches your server as shown in the code snippet below.
编写这种递归函数需要执行的步骤如下所示,清单3给出了这个函数的源代码。
The steps required to write such a recursive function are listed below, and Listing 3 presents the source code of the function itself.
只有HTTPPOST受到表单的支持,如下面(清单9)所示的JSP代码片段。
Only HTTP POST is supported from a form, as shown in the JSP snippet below (Listing 9).
三种括号在语义上等价,如下面的代码段所示。
All three kind of parentheses are semantically equivalent and are shown in the snippet below.
为便于阅读,如下代码片段在格式上作了调整,实际的代码不包括'\'字符。
The snippet below has been formatted for readability with a line break, but the actual source does not include the '\' character.
收到响应后,可以从XML文档提取会话ID,如下面的代码段所示
Once a response has been received the session ID can be extracted from the XML document as shown in the code snippet below.
使用示例代码,按如下方法测试引用附件。
Using the sample code, test your referenced attachments as follows.
使用示例代码,按如下方法测试引用附件。
Using the sample code, test your referenced attachments as follows.
应用推荐