求助关于Web Client Service!!!

cjwfly1988 2012-09-16 10:42:32
学校给了一个练习,可是这个习题实在搞不懂,希望有高手可以帮忙解决一下。给一个思路。

下面是习题的内容
Task:

This assignment contains a programming part and several reflective questions.

In the task you are required to make a simple secretary application which will communicate with web services using the WSDL/SOAP standards.

The WSDL files of the services are located at http://ub1.ad.jyu.fi/people?wsdl and http://ub1.ad.jyu.fi/courses?wsdl . You can open these addresses with your browser to take a look at them. Each WSDL file defines only one service. In a more realistic setting there would be multiple services per WSDL descriptor.

The first ‘people’ service defines a service from which you can search for people in the registry.

Currently the data in the database is as follows (exactly this data):
ID First name Surname Email

id1 John Doe jd@jd.com

id2 Peter Caine pc@pc.com

id3 Mary Smith ms@ms.com




The method in the ‘courses’ service defines a way of creating a new course in the system. It returns the ID of the created course.

Your task is to make a Java application which is able to communicate with both services.

For this application you do not have to make any GUI. Your application should work from the command line. You should thus use System.in for input.

First, you need to use the wsimport tools to create helper classes which will interact with the published web services. Create the helper classes in the package fi.it.jyu.ties532.week38.services (see -p option of wsimport)

Then you can write the application in the class fi.it.jyu.ties532.week38.Main, which needs to have a main method.

In the application menu there must be three options : “quit”, “search” and “create”.

“quit” quits the application

“search” asks for a search string, performs the search method on the people registry and prints the results. Then the application starts over asking the option from the user.

“create” asks all needed input parameters (course name, teacher id (which is assumed to be from the person search), number of credits and a short description). Then the course registration method on the courses web service is called and the application prints the returned course ID. Then the application starts over asking the option from the user.

请各位大侠帮忙。
...全文
51 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧