Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9321045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:46:39+00:00 2026-06-19T03:46:39+00:00

I have written a java service class and create a web service based on

  • 0

I have written a java service class and create a web service based on that class (using eclipse Juno and Apache as the web server). The return type of my service method is ProductInfoOutput and which internally consists of ProductInfo and ResponseStatus. But when i see in the WSDL file i find two objects based on ResponseStatus. I don’t know why. Maybe at the time of development i did that but now ProductInfoOutput has only one instance of ResponseStatus. Can you please suggest how can i remove this extra object from WSDL. Below is the portion from WSDL.

<complexType name="ProductInfoOutput">
<sequence>
 <element name="productInfo" nillable="true" type="tns1:ProductInfo"/>
 <element name="responseStatus" nillable="true" type="tns1:ResponseStatus"/>
 <element name="response" nillable="true" type="tns1:ResponseStatus"/>
</sequence>
</complexType>

Service class:

ProductInfoOutput productInfoOutput;
DatabaseQueries query;

public ProductInfoOutput getProductInfo(String barcode) {
    productInfoOutput=new ProductInfoOutput();
    query=new DatabaseQueries();
    productInfoOutput=query.retrieveSingleProductByBarcode(barcode);
    return productInfoOutput;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:46:40+00:00Added an answer on June 19, 2026 at 3:46 am

    After two days of wastage i found the root cause of the problem. There is one server-config.wsdd file in the project which is automatically created when you first time create the web service and is not updated even if you update your business class. I removed manually the service from wsdd and recreated the web service from business class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a simple WSDL web service with Java in Eclipse. Here is
I have written REST web service in netbean IDE using jersey framework and java.
I have written a small sample web service, using Apache CXF (CXFServlet) and Spring
I am using JBoss server 5.0.1 and have written a web service client using
I have a server written in Java that runs as a Windows service (thanks
I have written a Java service to run on a server. I used JMX
Background: I have written a java swing based client server application. The server is
I have written a web service that seems to be running fine - I
I am using sql server 2008 which is communicating to java web service which
I have a Web Service written in Java. I want to send some strings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.