?
Solved

Generate Java client code from SOAP web services

Posted on 2014-02-12
1
Medium Priority
?
432 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

Setting up LaraDock for Laravel

Learn how to set up LaraDock in a Laravel project - LaraDock gives us an easy way to run a Laravel application using Docker in a single command.

Question has a verified solution.

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

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

718 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