Solved

Generate Java client code from SOAP web services

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

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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.

763 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