Solved

Generate Java client code from SOAP web services

Posted on 2014-02-12
1
415 Views
Last Modified: 2016-02-26
I am trying to generate Java client code using a WSDL link (SOAP Web Services). I have tried with wsimport supplied with JAVA pacakge and jaxws tools supplied with WebSphere Community Edition (WAS CE) server.  I am frequently getting below error and not able to succeed in generating client code.


A class/interface with the same name "com.citi.ArrayOfSUPPORTGROUP" is a
lready in use. Use a class customization to resolve this conflict.
  line 74 of file:/C:/HELIOS_3.7/WorkSpace4/soap/ApertureServiceserviceagent.wsd
l

(Relevant to above error) another "ArrayOfSupportgroup" is generated fro
m here.
  line 129 of file:/C:/HELIOS_3.7/WorkSpace4/soap/ApertureServiceserviceagent.ws
dl

This error is caused because on Windows you cannot have both "ArrayOfSup
portgroup.java" and "ArrayOfSUPPORTGROUP.java" in the same directory.


From the WSDL, I can see that, multiple XSD are loading. Looks like the class/interface ArrayOfSupportgroup is declared in more than one XSD.

When I tried to genereate through WSDL2Java (axis2), only partial code getting generate.

Can someone please help me to generate the client code from these kind of WSDL
0
Comment
Question by:Gangadhara Melukote
[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
1 Comment
 

Accepted Solution

by:
Gangadhara Melukote earned 0 total points
ID: 39891926
Found solution for myself by chaning the target namespace of each type.
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

632 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