Solved

Generate Java client code from SOAP web services

Posted on 2014-02-12
1
407 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
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Should localization be done inside spring controller 5 25
tomcat administrtor 12 47
maven module vs maven project 3 23
Desingning Refactoring existing code 2 24
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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 …

770 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