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 7559107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:33:05+00:00 2026-05-30T12:33:05+00:00

Wrote a ‘webservice’ with Netbeans wizard, runs on glassfish. I added a reference using

  • 0

Wrote a ‘webservice’ with Netbeans wizard, runs on glassfish. I added a reference using the wsdl to my .NET client, VB if it makes any difference.

I clearly have no idea what is going on, as I am encountering some brick walls.

The issue is a SoapHeaderException.

System.Web.Services.Protocols.SoapHeaderException: com/mysql/jdbc/Connection
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(
         SoapClientMessage message, WebResponse response, Stream responseStream, 
         Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(
         String methodName,  Object[] parameters)
at WSClient.WSClient.localhost.DatabaseGateService.createCustomerTable(String xml)
          in C:\Project\WSClient\Web References\localhost\Reference.vb:line 40
at WSClient.USAHWSClientConsumer.TestCustomer() in
          C:\Project\WSClient\Client\WSConsumer.vb:line 22

The web service itself is simple:

@WebService()
public class DatabaseGate {
    private MySQLManagerImp manager;

    public DatabaseGate(){
        manager = new MySQLManagerImp();
    }

    @WebMethod(operationName = "createCustomerTable")
    public void createCustomerTable(@WebParam(name = "xml") String xml) {
        manager.createCustomersTable(xml);
    }
}

It takes an xml string, as I did not want to pass in an abomination of arguments.

I attempt to consume the service by simply instantiating the web reference:

Dim ws As localhost.DatabaseWS = New localhost.DatabaseWS
// Create the xml string
Dim qbCustomerQueryRS As String = qbQuery.GetCustomerQueryXML()
Dim processedCustomerXML As String = 
    customerResponseParser.GetAllCustomerDatabaseFriendlyXML(qbCustomerQueryRS)

ws.createCustomerTable(processedCustomerXML)

I’ve tried writing the string in a soap envelope, but still receive the same message. So passing a string is kaputt, as it should be; why would the WS know to parse a string, and simply instantiating and calling the method from the object as if it were local isn’t working the way I think it does.

What is happening?

  • 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-05-30T12:33:06+00:00Added an answer on May 30, 2026 at 12:33 pm

    Sounds like the WSDL references com/mysql/jdbc/Connection, which is not a class known on the .NET side. If you have control over the Web Service, add annotations to avoid serialization of external class references (like com/mysql/jdbc/Connection). If you don’t, simply download the WSDL to a text file, edit it manually to remove such classes/attributes, and re-create the reference pointing to the edited file. You can change the endpoints in Web.config later.

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

Sidebar

Related Questions

I wrote a windows service using VB that read some legacy data from Visual
I wrote a simple tool to generate a DBUnit XML dataset using queries that
I wrote an application that currently runs against a local instance of MySql. I
I wrote code in C# for ASP.Net website , but when i select one
I wrote a VB.NET Windows Service, which works fine. I have only one issue
I wrote a VB.NET windows service and I'd like to know if there is
I wrote a game in c++ using SDL. The game currently updates a highscore
I wrote a simple program in assembly and I tried to run it using
I wrote a auto UI test project (using Coded UI framework) and deployed it
I wrote a small app to send an email using Action_Send. When I start

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.