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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T23:49:41+00:00 2026-06-02T23:49:41+00:00

I recently asked a question about building a SOAP message using the java provided

  • 0

I recently asked a question about building a SOAP message using the java provided soap library Changing default soap URI, so that question may end up bleeding into this one a bit depending on what the answer to the last one may be (and in fact, the answer to this question may mean that I don’t have to worry about my other question)

I’ve connected to the device I am communicating with via the java socket library and passed messages back and forth, however today I decided that with all that is available to me from java in the way of SOAP stuff, why not just use its provided SOAP library?

Well, it’s a headache now, but I’m sure it will be beneficial once it is up and running. Either way, when I previously communicated with the device, I simply opened the socket at IP address xxx.xxx.xxx.xxx on port 80, but when I use the SOAPConnection.call method I get the following error:

Apr 23, 2012 3:47:06 PM com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection post
SEVERE: SAAJ0008: Bad Response; null
com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
    at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.call(Unknown Source)
    at DeviceCommunicator.openConnection(DeviceCommunicator.java:184)
    at ClientRunner.main(ClientRunner.java:29)
Caused by: com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: Bad response: (-1null
    at com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnection.post(Unknown Source)
    ... 3 more

Here is the call, if that helps:

SOAPConnection sc = SOAPConnectionFactory.newInstance().createConnection();
        SOAPMessage response = sc.call(sm, "http://xxx.xxx.xxx.xxx");

Where the xxx.xxx.xxx.xxx is obviously the IP address of the device (and I’ve tried calls to the SOAPConnection.call method where the second argument was http://xxx.xxx.xxx.xxx:80 without success as well).

After some perusing of stackoverflow and general google searches, I’ve yet to find someone that has had a problem switching from socket communication to soap.

EDIT:

Unfortunately, I haven’t solved the problem, however I did find using Wireshark that the message is being sent correctly and so is the response. I’m pretty perplexed as to why the response would see “null” – any takers?

Thanks in advance,

-M

  • 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-02T23:49:42+00:00Added an answer on June 2, 2026 at 11:49 pm
    SAAJ0008: Bad Response; null
    

    This error message states that the server responded with an error message (e.g. HTTP 4XX or 5XX). null in this case refers to the java class not being able to translate the error code to an associated message. E.g. the status codes 400, 501 and 543 would yield the following error messages:

    SAAJ0008: Bad Response; Bad Request
    SAAJ0008: Bad Response; Not Implemented
    SAAJ0008: Bad Response; null
    

    Most likely your server is rather picky with how the request is formatted, and the specific request you sent could not be handled properly. I would suggest that you try to verify the difference between the request sent using the java socket library and SOAPConnection to see if there is a difference.

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

Sidebar

Related Questions

I recently asked a question about controlling the volume of a Java audio clip
I recently asked a question about using the Page.User or HttpContext.Current.User in the View.
I recently asked a question about using Fluent NHibernate with .NET 4 - I
I recently asked a question about functional programming, and received (good!) answers that prompted
I was recently asked a question, apparently in an Interview, about extending the java.lang.RuntimeException.
I recently asked a question about IIf vs. If and found out that there
I recently asked a question about tracing Linq-to-Entities I think that one of the
I recently asked a question about using XSL/t for creating a site layout and
I recently asked a question about the same function, that solved my probelem and
I recently asked a question about formatting JavaScript code in Vim. And I've also

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.