11.07.2015 Views

y - Net Developer

y - Net Developer

y - Net Developer

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 13 ■ IMPLEMENTING SOA INTEROPERABILITY 415ramrameshreddy.blog.comClick Next, and you will then be prompted to choose the input WSDL file. This will be thefile you created using the SvcUtil.exe utility. Then click Next again, and you will see the choicesfor code generation, as shown in Figure 13-4.Figure 13-4. Axis2 code generation optionsEnter the service name in the Service Name box shown in Figure 13-5. For this example,we’ll just generate the client-side proxy along with a test case class that will demonstrate thecalling paradigm provided by the Axis2 framework. We’ve just enabled synchronous callingand enabled the generation of a test case. The next page of the wizard asks for the outputdirectory. Although the Finish button is enabled, you must specify a directory, or the wizardwill complete without an error but won’t produce any results. We’ve included the generatedcode as part of the chapter sample code; it’s in the MtomTest\Java directory, and the WSDLused is in the MtomTest\Wsdl directory. Please note the WSDL2Java-generated class is calledFileServiceTest.Listing 13-12 shows the test case–generated code directly from the WSDL2Java wizard.ramrameshreddyramrameshreddy

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!