?
Solved

Java Implement WSDL operation with input/output complex type parameter

Posted on 2009-03-29
2
Medium Priority
?
709 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 750 total points
ID: 24016956
0
 
LVL 23

Assisted Solution

by:Siva Prasanna Kumar
Siva Prasanna Kumar earned 750 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses
Course of the Month7 days, 20 hours left to enroll

765 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