You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ji...@apache.org on 2004/03/23 15:18:57 UTC

[jira] Closed: (AXIS-1244) SAAJ service created using Datahandler as input parameter is not working

Message:

   The following issue has been closed.

   Resolver: Davanum Srinivas
       Date: Tue, 23 Mar 2004 6:18 AM

Works for me. Are u sure you have mail api jar and activation jar on the server side? reopen bug if needed.
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1244

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1244
    Summary: SAAJ service created using Datahandler as input parameter is not working
       Type: Bug

     Status: Closed
   Priority: Critical
 Resolution: CANNOT REPRODUCE

    Project: Axis
 Components: 
             Deployment / Registries
   Versions:
             1.1

   Assignee: 
   Reporter: Senthil Kumar

    Created: Wed, 3 Mar 2004 5:56 AM
    Updated: Tue, 23 Mar 2004 6:18 AM

Description:
 
I am trying to send a SOAP with attachement to  a servcie which is supposed to echo back the SOAP message
 
The code of the service is :
 
-------------------------
 
package samples.test.eg9;
import javax.activation.DataHandler;
 
public class Simple {
 
public DataHandler echoAttach(DataHandler dh) throws Exception {
 
 ** if(dh == null)
  System.out.println("Some error some where");
 
  System.out.println("recieved " + dh.getName() + "content  " +  dh.getContent().toString());
 
  return dh;
  }
}
-----------------------------------------
 
 
Form the client side i am sedning the SOAP msg with an attachment
 
But when the servcie gets invoked i get the error message(**) "Some error some where" . Basically my DataHandler Object is null
In My client side  i call the Service using SAAJ api
 
SOAPMEssage response = conn.call(requestSOAPmsg,endpointURL)
 
I have also traced the SOAP msg that is being sent to the service using the TCPMON utility of the Axis
and the request SOAP msg is 
-------------------------------------------------------
POST /axis/services/SimpleEcho HTTP/1.0
Content-Type: multipart/related; type="text/xml"; start="<97F9976B59E8134AA5B2170A0F758F93>";  boundary="----=_Part_0_4839036.1078315466584"
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/1.1
Host: localhost
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: ""
Content-Length: 699
------=_Part_0_4839036.1078315466584
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <97F9976B59E8134AA5B2170A0F758F93>
   <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> 
         <soapenv:Body>  
            <echoAttach xmlns=""/> 
         </soapenv:Body>
      </soapenv:Envelope>------=_Part_0_4839036.1078315466584Content-Type: text/plainContent-Transfer-Encoding: binaryContent-Id: 
      <More_Info>This service is called SimpleEcho and is used for Echoing the datahandler------=_Part_0_4839036.1078315466584--
---------------------------------------------------------------------So from the client side that SOAP msg is constructed properly but on the server side where i am trying to capture this SOAP message using the DataHandler object it  is giving me a null as the value..
 
How do i process the SOAP msg on the servcie side... hwo do i handle it.Thre service is exactly the same as that of the example given in the smaples.atachments(EchoAttachmentsServcie)folder of AXIS 1.1



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira