Solved

Generate Java client code from SOAP web services

Posted on 2014-02-12
1
405 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
Comment Utility
Found solution for myself by chaning the target namespace of each type.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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.
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now