Solved

Java Implement WSDL operation with input/output complex type parameter

Posted on 2009-03-29
2
708 Views
Last Modified: 2013-11-19
Hi all, I have this WSDL:

<s:complexType name="Employee">
   <s:sequence>
      <s:element minOccurs="1" maxOccurs="1" name="fname" type="s:string" />
      <s:element minOccurs="1" maxOccurs="1" name="lname" type="s:string" />
      <s:element minOccurs="1" maxOccurs="1" name="active" type="s:boolean" />
      <s:element minOccurs="1" maxOccurs="1" name="age" type="s:int" />
      <s:element minOccurs="1" maxOccurs="1" name="hiredate" type="s:dateTime" />
      <s:element minOccurs="1" maxOccurs="1" name="number" type="s:double" />
   </s:sequence>
</s:complexType>


<s:complexType name="ResultEmployee">
   <s:sequence>
      <s:element minOccurs="1" maxOccurs="1" name="fEmplyeeId" type="s:boolean" />
      <s:element minOccurs="1" maxOccurs="1" name="lCount" type="s:int" />
   </s:sequence>
</s:complexType>


The Employee data type definition includes six elements, the data type of each element, and the name of each element.

Another excerpt from the WSDL file shows a message definition using the Employee data type. This message defines an input parameter, as the following code shows:

<message name="updateEmployeeInfoSoapIn">
   <part name="thestruct" type="s0:Employee" />
</message>

<message name="updateEmployeeInfoSoapOut">
   <part name="thestruct" type="s0:ResultEmployee" />
</message>

A third excerpt from the WSDL file shows the definition of an operation, named updateEmployeeInfo, possibly one that updates the employee database with the employee information. This operation takes as input a parameter of type Employee, as the following code shows:

<operation name="updateEmployeeInfo">
   <input message="s0:updateEmployeeInfoSoapIn" />
   <output message="s0:updateEmployeeInfoSoapOut" />
</operation>

How Can I implement the "updateEmployeeInfo" operation with Java?
Thanks!!!
0
Comment
Question by:jorgeani
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
yogeshpmangrulkar earned 250 total points
ID: 24016956
0
 
LVL 23

Assisted Solution

by:Siva Prasanna Kumar
Siva Prasanna Kumar earned 250 total points
ID: 24037403
use WSDL2Java plugin provided by axis, axis2 or Eclipse it self for creating Java objects from WSDL, you will get all the in/out messages as Classes of thier own (POJO/Beans)
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question