同样,让我们首先直接跳到完整的客户代码。
客户代码可能存在于其他地方,或者可能由其他数据推导而来。
The customer code may exist elsewhere or be derivable from other data.
在客户代码中,这些都可以在不使用可变状态的情况下就能做到。
And this all can be done with no mutable state in the client code.
所有这些都可以在客户端代码中没有可变状态的情况下完成。
This all can be done with no mutable state in the client code.
您将在下一节中找到客户端代码。
此后,即可将精力集中在客户端代码。
专注现场客户和代码,而不是其他设计技巧。
Focus on an on-site customer and code, rather than other design artifacts.
客户端代码将该消息传递给包装器函数。
The client code hands this message up to the wrapper function.
使用清单2中的代码替换生成的客户机代码并保存文件。
Replace the generated client code with the code in Listing 2 and save the file.
客户端代码对基本例处理不一致。
The base cases are then handled inconsistently by client code.
用于客户端代码开发的ide。
这种情况中,假设同步服务调用的客户端代码如下:this。
In this, if the client code for a synchronous service invocation is like this.
客户端代码与以下内容类似。
在客户端代码中,您现在需要获得该客户端代理的实例。
In your client code, you now need to obtain an instance of the client proxy.
在某个意义上,由于只侧重于客户端代码,本例省略了安全性。
In one sense, by focusing only on client-side code, this example has cheated.
通过声明为静态,为客户机代码节省了创建对象的工作量。
By declaring it static, you save client code the overhead of creating an object.
清单4是针对客户机代码的第一个步骤。
此解决方案提供了源代码,客户可以自行维护此自定义代码。
This solution comes with the source code, and you maintain the custom code yourself.
不管哪种方法,实际上您必须在您的客户端代码中激活安全性处理。
Either way, you must actually activate the security handling in your client code.
基本的JSSE服务器和客户机代码就只有这些。
清单2展示了用于本样例应用程序的客户机代码。
Listing 2 shows the client code used for this purpose in the sample application.
清单7是实现此目的的示例客户机代码。
该客户机的代码可以在下载文件中找到。
客户端代码调用数据逻辑方法可以捕获用户定义的异常。
Client code calling the data logic method can catch the user-defined exception.
这种支持包括生成WSDL和样本客户端代码来调用服务。
This support includes generation of the WSDL and sample client code for invoking the service.
可以从编写这个例子的客户端代码开始。
清单6展示了完整的测试客户机代码。
清单2展示了完整的测试客户机代码。
客户机代理代码的使用非常简单。
甚至客户机代码也是一样的。
应用推荐