File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes 500 Internal Server error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "500 Internal Server error" Watch "500 Internal Server error" New topic

500 Internal Server error

sachin yadav
Ranch Hand

Joined: Nov 24, 2005
Posts: 156
Hi All,

I am trying to code a client using SAAJ to hit a server endpoint to deliver s SOAP request message. My Code is as below:

I am getting fault response from server which is 500 - Internal Server Error. Unfortunately i don't have access to remote server so i can not look at the log files there.

using TCP mon i did get managed to retrieve SOAP request which is -

Problem i can see here is different content id value i think. I have even tried setting up costume value using attachment.setContentId("SOAP-ENV:Envelope"); but it doesn't seems to be working.

May be i am wrong, Can someone please tell me if this is the write way to create a SOAP XML request along with a binary/text attachment. If yes then what could be causing the problem here?
I agree. Here's the link:
subject: 500 Internal Server error
It's not a secret anymore!