官术网_书友最值得收藏!

Time for action – modifying WSDL

WSDL specifies the web service interface, which is used to invoke the BPEL process. When creating the BPEL process, the corresponding WSDL has been generated in the WSDLs folder of the project tree. It is named BookstoreABPEL.wsdl.

By default, WSDL contains a single operation named process. We will modify the default WSDL and rename the operation name from process to getBookData. This name denotes the purposed of the operation more precisely. We will also modify WSDL to include the XSD elements, which we created in the previous section.

To achieve this, let's perform the following steps:

  1. Double-click on the BookstoreABPEL.wsdl file in the WSDLs folder and switch to the source view.
  2. In the <portType> section, rename the operation name from process to getBookData:
  3. In the <message> section, change the element names of both messages to BookData and BookDataResponse respectively. This way, we will reference the changes that we made in the XSD:
  4. Finally, change the name of the included schema file from BookstoreABPEL.xsd to BookstoreBPEL.xsd, as shown in the following screenshot:

What just happened?

We looked at WSDL for the BPEL process and modified the operation name. Instead of using the default process name, we renamed it to getBookData. We also modified WSDL to reflect the XSD elements that we defined. Finally, we modified the XSD filename, which we renamed previously.

This way we have become familiar with WSDL, which is generated for each BPEL process. We are now ready to implement the BPEL process.

主站蜘蛛池模板: 礼泉县| 富顺县| 苏尼特右旗| 屯留县| 吉林省| 琼中| 沈丘县| 曲麻莱县| 子长县| 沂南县| 云林县| 东至县| 沾益县| 荥阳市| 思茅市| 陕西省| 来宾市| 阿坝县| 大姚县| 奉新县| 育儿| 涟源市| 富顺县| 汉阴县| 芜湖市| 三河市| 黄骅市| 广元市| 普陀区| 咸阳市| 兴化市| 博乐市| 日照市| 灵寿县| 富宁县| 马边| 林甸县| 涟源市| 板桥市| 乐陵市| 南溪县|