1. I think that you are sending a post request to get the happyaxis.jsp and axis is just obliging you with happy axis. Try deploying a web service and then send the SOAP request as a POST to the correct uri for that web service and I think you should get your soap fault
2. It shouldn't matter what language binding you have at either server or client end.
----- Original Message -----
From: Nilay Hazra
To: axis-dev@ws.apache.org
Sent: Wednesday, November 05, 2003 12:48 PM
Subject: SOAP attachment: why I'm not getting faultstring?

Hi All,
Forgive me if this seems to be a very basic question. I need to send a file called myfile.txt as an attachment to my localhost server. My localhost server consists of Jakarta Tomcat 4.1.27 with Apache Axis configured. My client application is written in VC++ which actually POSTs the following SOAP request to the URL http://localhost:8080/axis/happyaxis.jsp [The URL mentioned is just for testing, it is NOT capable of handling attachments]
POST /axis/happyaxis.jsp HTTP/1.1
Content-Type: Multipart/Related; boundary=MIME_boundary; type=text/xml; start="<myfile@myurl.com>"
Content-Length: 188
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-ID: <myfile@myurl.com>
<?xml version='1.0' ?>
<samplefile href="cid:myfile.txt"/>
My questions are:
1. I'm getting a 200 OK message from server. I'm also expecting a SOAP faultstring as a SOAP response from the server (since happyaxis.jsp is not capable of handling attachments), instead I'm getting the the HTML content of happyaxis.jsp. Why I'm not getting any SOAP faultstring? What am I missing here?
2. If I need to handle attachments at the server, what else exactly I need to do at the server side. Will it be a problem if I exchange SOAP messages where my client code written in C++ and the server side handling code written in JAVA.
Once again, I apologize to anybody if he/she thinks that these are very basic questions.
Thank you in advance for any sort of help. Please mark a copy of your mail to my id nhazra03@hotmail.com