Solved

Java Implement WSDL operation with input/output complex type parameter

Posted on 2009-03-29
2
706 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
by zero exception 10 69
Create animated movies for web page 18 119
php mysql check email already in database. (second check) 7 102
Unexpected End of File 11 54
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…
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 …
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.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

761 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