How to send attachment via SOAP

Dear All,
I have to develop a web client in order to send a Text.txt file to web server. I'm using SOAP based message. In fact I'm using eclipse IDE to develop the web client. but I'm not still knowing  how it's doing.
WSDL
[code]
<xs:element name="ReconReport">                                      
<!-- Reconciliation report -->
<xs:complexType>
<xs:sequence>
<xs:element name="login" 
type="xs:string"/>         
<!-- Login name for the client -->
<xs:element name="pass"  
type="xs:string"/>         
<!-- Password for the client -->
<xs:element name="filename"   type="xs:string"/>         
<!-- Filename for the attached reconciliation report -->
<xs:element name="desc"  
type="xs:string" minOccurs="0"/><!-- Additional description if any -->
<xs:element name="attachment" type="xs:base64Binary"/>   
<!-- Attachment -->
</xs:sequence>
</xs:complexType>
</xs:element>
[/code]
My code
[code]
public int reconReport(java.lang.String login, java.lang.String pass, java.lang.String filename, java.lang.String desc, byte[] attachment) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[2]);
_call.setUseSOAPAction(true);
_call.setSOAPActionURI("urn:ReconReport");
_call.setEncodingStyle(null);
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://paymentGateway.celcom.com", "ReconReport"));
setRequestHeaders(_call);
setAttachments(_call);
try {   
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {login, pass, filename, desc, null});
    String requestmsg = "Request context[PrepaidAccountQuery] : \n"
+ _call.getMessageContext().getRequestMessage()
.getSOAPPartAsString();
    System.out.println(requestmsg);
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
else {
extractAttachments(_call);
try {
return ((java.lang.Integer) _resp).intValue();
} catch (java.lang.Exception _exception) {
return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
  } catch (org.apache.axis.AxisFault axisFaultException) {
  throw axisFaultException;
[/code]
Form Result
[code]
Request context[PrepaidAccountQuery] :
<?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><ReconReport xmlns="http://paymentGateway.celcom.com"><login>123</login><pass>123</pass><filename>BSN.TXT</filename><desc>Celcom</desc><attachment xsi:nil="true"/></ReconReport></soapenv:Body></soapenv:Envelope>
[/code]
Server accepting message
[code]
ReconReport
POST /axis2/services/PaymentGateway HTTP/1.1
Content-Type: multipart/related; boundary="MIMEBoundary_9aca5e2dc7e6ba2b683923292e7c1df44d8dc670242a205e"; type="application/xop+xml"; start="<[email protected]>"; start-info="application/soap+xml"; action="urn:ReconReport"
User-Agent: Axis2
Host: cel229:18080
Transfer-Encoding: chunked
689
--MIMEBoundary_9aca5e2dc7e6ba2b683923292e7c1df44d8dc670242a205e
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml"
Content-Transfer-Encoding: binary
Content-ID: <[email protected]>
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><ns1:ReconReport xmlns:ns1="http://paymentGateway.celcom.com"><ns1:login>xxxxxxx</ns1:login><ns1:pass>xxxxxxx</ns1:pass><ns1:filename>20120213.txt</ns1:filename><ns1:desc>xxxxxxx Recon Report</ns1:desc><ns1:attachment xmlns:ns2="http://www.w3.org/2005/05/xmlmime" ns2:contentType="text/plain"><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:[email protected]" /></ns1:attachment></ns1:ReconReport></soapenv:Body></soapenv:Envelope>
--MIMEBoundary_9aca5e2dc7e6ba2b683923292e7c1df44d8dc670242a205e
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-ID: <[email protected]>
1|40637781|44084597|110|20091019141048|121|
2|77371568|44084597|120|20091019141050|126|162727|MBB|
3|66432343|44084597|130|20091019141059|56|4111111111111111|0313|123456|
101|21339684|0192234567|140|0|0|20091019141038|
102|21339685|0192234567|140|0|0|20091019145013|
103|21339686|0192234567|140|0|0|20091019146043|
104|21339687|21339686|2009101914703|
201|40637781|0135605893|1000|20091019151058|102310-ABCDEF|
202|40637781|0135605893|2000|20091019151133|102310-ABCDEF|xxxxxxxxxxxx5442|123654|
900|23482933|40637781|20091019141059|658|
801|21337384|44084597|140|20091019141040|0193456678|Y|
TOT. REC : 10
--MIMEBoundary_9aca5e2dc7e6ba2b683923292e7c1df44d8dc670242a205e--
[/code]
Please help me.
Regards

Hi,
I tried my best to find in google but there is no helpful url.  However, I'm just following bellow code but still Im getting same message contains. Please appreciate ur advice.
Before calling ,
_call.invoke(-----------)
I just add this
Hashtable chunkedTable = new Hashtable();
chunkedTable.put(HTTPConstants.HEADER_TRANSFER_ENCODING, HTTPConstants.HEADER_TRANSFER_ENCODING_CHUNKED);
_call.setProperty(MessageContext.HTTP_TRANSPORT_VERSION, HTTPConstants.HEADER_PROTOCOL_V11);
_call.setProperty(HTTPConstants.REQUEST_HEADERS,chunkedTable);
byte source[] ="999999999999944444444444444444444444444444444444444".getBytes();
DataSource ds = new ByteArrayDataSource(source, "text/plain");
DataHandler dh = new DataHandler(ds);
      _call.setProperty(_call.ATTACHMENT_ENCAPSULATION_FORMAT, _call.ATTACHMENT_ENCAPSULATION_FORMAT_MIME);
_call.addAttachmentPart(dh);
setRequestHeaders(_call);
setAttachments(_call);
_call.invoke(-----------)
But still the message contains is same.
Request context[PrepaidAccountQuery] :
<?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><ReconReport xmlns="http://paymentGateway.celcom.com"><login>123</login><pass>123</pass><filename>BSN.TXT</filename><desc>Celcom</desc><attachment>OTk5OTk5OTk5OTk5OTQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0</attachment></ReconReport></soapenv:Body></soapenv:Envelope>
Regards
-Kapila

Similar Messages

  • How to Send Appointment via mail adapter

    Hi Guys,
         I need to send the appointment and vTodo via mail adapter, any way i need to develop a mail adapter module. Till now i have finished this part,and i can send normal mail even normal mail with attachment. But i don't know how to send appointment via mail adapter.
    This is payload content of appointment which got from Exchange server to gmail:
    _=_NextPart_001_01C71EC0.97A011C6
    Content-Type: text/plain;
        charset="GB2312"
    Content-Transfer-Encoding: quoted-printable
    When: 2007=C4=EA6=D4=C227=C8=D5=D0=C7=C6=DA=C8=FD 3:30 =CF=C2=CE=E7-4:00 = =CF=C2=CE=E7 (GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi.
    Where: China
    ~*~*~**
    This is calendar content
    _=_NextPart_001_01C71EC0.97A011C6
    Content-class: urn:content-classes:calendarmessage
    Content-Type: text/calendar;
        method=REQUEST;
        name="meeting.ics"
    Content-Transfer-Encoding: 8bit
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+01.00) Sarajevo/Warsaw/Zagreb
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0100
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:20070112T140000
    TZOFFSETFROM:+0100
    TZOFFSETTO:+0200
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20061213T141132Z
    DTSTART;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T140000
    SUMMARY:This is calendar test
    UID:040000008200E00074C5B7101A82E0080000000030D51864C81EC701000000000000000
    010000000CA9F127EA8947844BC4DD47F269BDEA9
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky":MAILTO:rocky@***.com
    ORGANIZER;CN="Xu":MAILTO:rocky@**.com;roc*@gmail.com
    LOCATION:Shanghai
    DTEND;TZID="(GMT+01.00) Sarajevo/Warsaw/Zagreb":20070112T160000
    DESCRIPTION:This is calendar content\N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20061213T141132Z
    LAST-MODIFIED:20061213T141133Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    X-MICROSOFT-CDO-OWNERAPPTID:367904726
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20061213T141132Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20061213T141132Z
    END:VEVENT
    END:VCALENDAR
    _=_NextPart_001_01C71EC0.97A011C6--
    My question is
      1. How to generate this kind of payload in mail adapter module?
      2. It is possible to send appointment via mail adapter?
    Following i can get from other system, even using mail package check or not using mail package check.
    BEGIN:VCALENDAR
    METHOD:REQUEST
    PRODID:Microsoft CDO for Microsoft Exchange
    VERSION:2.0
    BEGIN:VTIMEZONE
    TZID:(GMT+08.00) Kuala Lumpur/Singapore
    X-MICROSOFT-CDO-TZID:21
    BEGIN:STANDARD
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:STANDARD
    BEGIN:DAYLIGHT
    DTSTART:16010101T000000
    TZOFFSETFROM:+0800
    TZOFFSETTO:+0800
    END:DAYLIGHT
    END:VTIMEZONE
    BEGIN:VEVENT
    DTSTAMP:20070608T025852Z
    DTSTART;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T110000
    SUMMARY:This is meeting request with attachment
    UID:040000008200E00074C5B7101A82E0080000000000A9BD0BA7A9C701000000000000000
    010000000C5E16D144D1612498C0EF7E2115EFEC4
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;RSVP=TRUE;CN="Xu, Rocky
    ":MAILTO:roc*@**
    ORGANIZER;CN="Xu,y":MAILTO:roc*@**
    LOCATION:India labs
    DTEND;TZID="(GMT+08.00) Kuala Lumpur/Singapore":20070608T113000
    DESCRIPTION:This is content!  &#60;&#60;shanghai.txt&#62;&#62; \N
    SEQUENCE:0
    PRIORITY:5
    CLASS:
    CREATED:20070608T025925Z
    LAST-MODIFIED:20070618T033505Z
    STATUS:CONFIRMED
    TRANSP:OPAQUE
    X-MICROSOFT-CDO-BUSYSTATUS:BUSY
    X-MICROSOFT-CDO-INSTTYPE:0
    X-MICROSOFT-CDO-INTENDEDSTATUS:BUSY
    X-MICROSOFT-CDO-ALLDAYEVENT:FALSE
    X-MICROSOFT-CDO-IMPORTANCE:1
    ATTACH:CID:008501c7b159$a9d41d3b$_CDOEX
    X-MICROSOFT-CDO-OWNERAPPTID:1468557271
    X-MICROSOFT-CDO-APPT-SEQUENCE:0
    X-MICROSOFT-CDO-ATTENDEE-CRITICAL-CHANGE:20070608T025852Z
    X-MICROSOFT-CDO-OWNER-CRITICAL-CHANGE:20070608T025852Z
    END:VEVENT
    END:VCALENDAR
    Thanks & regards
    Rocky

    Hi
    have a look at this
    You can use Java/ABAP proxies to do this job for you..
    Java Proxy >> will read the mail(with the attachments) with the help of Java APIs and send the message into XI ABAP Proxy >> for this you will have to first convert the attachment into a message and then you can proceed in the regular fashion.
    Not all adapters can process attachments, I'm not sure why you are having trouble with using module processor in the mail adapter. Just check if the service pack that you are using supports this feature.
    If you are on WAS 6.10 and above you can achieve this and there is an excellent weblog by Thomas Jung on this topic at
    /people/thomas.jung3/blog/2004/09/09/receiving-e-mail-and-processing-it-with-abap--version-610-and-higher
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
    reading Pdf Through mail easly done with Java Proxy, which will read the mail(with the attachments) with Java APIs and send the message into XI and then map with the Target ABAP proxy structure .
    Thanks

  • Sending attachment in soap response

    Hi,
    I want to send attachment in soap response on pi7.4. I am new to pi and this seems to be tough task ,
    I would be thankfull for help.
    7Z

    Hi,
    Can you please elobarate your scenario? Please refer the below blog for attachment scenario in SAP PI 7.31.
    Handle SOAP with Attachment in SAP PI 7.31
    regards,
    Harish

  • How to  send messages via shareobject in FMS

    How to send messages via shareobject in FMS
    I need some codes.
    I want to send some string messages via shareobject, the
    string messages can be retrieve in client.
    Can you give me some codes? Thank you for your help..
    /

    Thanks for your comment.
    en....I want to do something..I will maintenance a users list
    in charroom.
    I write a function in main.asc file , client can get users
    list via call the function.
    I write some codes in application.onConnect
    when a user connect, it will add users list.
    In application.onDisconnect, when a user disconnect, it will
    remove from users list.
    My hope when a user disconnect, I send a message to
    shareobject. the shareobject is called in other clients.
    Other client can retrieve the remove user message, they will
    call the function to get new users list.
    It is my idea. Can you give me some codes for my idea?
    Thank you very much.

  • How to send photo via facebook

    How to send photo via facebook

    Do you have the Facebook app from the App Store installed? You should be able to upload photos taken with your iPhone camera to Facebook using that app.

  • How to send attachment(file) in javamail via JSP ?

    Dear Friends,
    Please guide me for :
    (1) my e-mail client is using JSP. So, hoW to send file-attachments via jsp ?
    Please specify example for attaching file(s) to a message object in JSP ( and only in JSP ).
    I have used HTML <input type="file" .... > control , but don't know how to bring that file to the jsp file and then attach it to the message object.
    Thank u.

    I wouldn't recommend using JSP to do that. I would use a servlet instead. Then you are just writing Java code, and to answer your two questions you need to learn about JavaMail (1) and get some already-written classes to do file uploads such as this one: http://www.servlets.com/cos/index.html (2).

  • File attachment via SOAP

    Hi,
    I have a ZIP file which I need to send it to the 3rd party via SOAP adapter with an attachment. Is this feasible to implement?

    Refer the foll links for more help :
    Re: send soap envelope with attachements
    RFC to soap with attachment

  • Sending Attachments via SOAP Adapter

    Hi Everyone,
    We have the requirement to send the text files as attachement using SOAP Adapter. Can anyone help me how to do it in XI and the structure of WSDL. Or any document which can help me getting this done.
    Any help appreciated.
    Thanks in advance
    Laks

    I understand i need to add teh WSDL file in the repository .
    Yes, it would be like any other soap receiver scenario wherein you need to import the wsdl under external definitions.
    Like it should be cabable of receiving as attachments ?
    Yes, it should be. This will help in creating one.
    /people/baris.buyuktanir2/blog/2007/03/06/how-to-create-a-web-service-with-attachments-soap-with-attachments
    Is there anything i need to do in Repository part ? If your sender sends the file as attachment using the option "Addition files", then the message will be forwarded directly with attachment to soap receiver. There would be no need for any additional setting in repository.
    Regards,
    Prateek

  • Sending attachment Via Email

    Hi All,
    I have a requirement where in i need to send an email from teh service ticket. The email will be triggered basedon status change to To be Approved. While the email is sent to approver, is it possible to pick the attachment linked to service ticket and add to email as an attachment. is this possible technically..any pointers on how to achive this would be of great help...
    thanq..
    Regards,
    Udaya..

    Udaya,
    I'm not going to give you all the coding details , but I have techically done this before for an activity and here is the recipe for your case:
    1) Create a new z-action profile for the transaciton type
    2) Copy the standard CL_DOC_PROCESSING_CRM_ORDER over to a z-version
    3) Copy the method from that class called CRM_SRVORDER_EXEC_SMART_FORM to a version called EMAIL_SRV_ORDER
    4) Copy the standard smartform used for the service profile to a zed version
    5) Configure a new smart forms mail action to send an e-mail using the new processing class
    6)  Now here is the fun part, you will actually re-code the method to excute the form, but not send out via e-mail.  You will capture the smartform output as OTF and then convert to ASCII to become the body of your e-mail.
    7) Next you will read the attachment for the e-mail message using he CL_CRM_DOCUMENTS class into memory
    8) Finally you will build an e-mail message via separate function module which will be called in a separate task(to avoid issuing  a commit work in the action), using CL_BCS message classes.
    Your end-result is your "action" will generate an e-mail with an attachment.  This isn't way too difficult and I estimate about one week to do. 
    Take care,
    Stephen

  • Send Attachment via mail

    Hi All,
    My requirement is to send the contents of an internal table as an attachment via mail to an external mail address.
    I am working in SAP version 3.1H.
    Would anybody provide a sample code of how to do so?
    regards,
    Paul

    Hi,
    If you require small example you can also have look on the
    following sample code which will post internal table data as attachment. Please not email address has to be customised in the <b>SAP usermaintaince.</b>
    FORM send_mail.
      it_doc_chng-obj_name  = text-016.
      it_doc_chng-obj_descr = text-016.
      DESCRIBE TABLE it_objtxt LINES g_lines.
      READ TABLE it_objtxt INDEX g_lines.
      it_objpack-doc_size = ( g_lines - 1 ) * 255 + STRLEN( it_objtxt ).
      it_objpack-doc_type   = 'RAW'.
      APPEND it_objpack.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 0.
      it_objpack-body_start = 1.
      it_objpack-transf_bin = 'X'.
      it_objpack-body_num   = g_lines.
      it_objpack-doc_type   = 'RAW'.
      it_objpack-obj_name   = 'ATTACHMENT'.
      it_objpack-obj_descr  = g_file.
      APPEND it_objpack.
    completing the recipient list
      SORT it_vmail.
      DELETE ADJACENT DUPLICATES FROM it_vmail.
      IF l_client NE 'P'.
        it_reclist-receiver = p_email.
        it_reclist-express =  'X'.
        it_reclist-rec_type = 'U'.
        APPEND it_reclist.
      ELSE.
        LOOP AT it_vmail.
          it_reclist-receiver = it_vmail-smtp_addr.
          it_reclist-express =  'X'.
          it_reclist-rec_type = 'U'.
          APPEND it_reclist.
        ENDLOOP.
      ENDIF.
      it_rec_mail[] = it_reclist[].
      IF NOT p_copy IS INITIAL.
        it_reclist-receiver = p_copy.
        it_reclist-express =  'X'.
        it_reclist-copy =  'X'.
        it_reclist-rec_type = 'U'.
        APPEND it_reclist.
      ENDIF.
      CLEAR it_download[].
      it_download[] = it_objtxt[].
    **********Sending the mail with attachment*****************
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_MAPI'
        EXPORTING
          document_data              = it_doc_chng
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = it_objpack
          contents_bin               = it_objtxt
          contents_txt               = it_objtxt
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      CASE sy-subrc.
        WHEN 0.
          IF p_update = 'X'.
            PERFORM reference_update.
          ENDIF.
         PERFORM down_load.
          WRITE:/01 text-019.
          SKIP.
          LOOP AT it_rec_mail.
            FORMAT COLOR 5 INTENSIFIED OFF.
            WRITE:/01 text-010,20 it_rec_mail-receiver.
          ENDLOOP.
          ULINE.
        WHEN 1.
          WRITE: / text-012.
        WHEN 2.
          WRITE: / text-013.
        WHEN 4.
          WRITE: / text-014.
        WHEN OTHERS.
          WRITE: / text-015.
      ENDCASE.
      REFRESH:it_objpack,
              it_objtxt,
              it_reclist,
              it_rec_mail.
      CLEAR:it_objpack,
            it_objtxt,
            it_reclist,
            g_lines,
            it_rec_mail.
    ENDFORM.                    " send_mail
    Regards
    Suresh Babu Karanam

  • How to send XML via HTTPS in Servlet

    I am new to Java. I need to make a servlet which can send a message via HTTPS with a content type of XML to another web server when it is called. each msg is proceeded with a header in the following format:
    requestID=rid&userID=uid&password=mypd
    and a detail information in XML:
    <S_Request>
    <requestControllID>1-rf200</requestControlID>
    <zipCode>99012</zipCode>
    <orderQuantity>35</orderQuantity>
    </S_Request>
    I have basic idea of how to send an http post with parameter string by using the Redirect function but don't know how to deal with the XML detail. Any one has idea about this? Any help will be greatly appreciated!

    This is what I did for one of my projects;
    String myXML = "all the xml tags and fields";
    URL url = new URL("https://www.somesite.com");
    HttpsURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.setDoOutput(true);
    OutputStream outXML = connection.getOutputStream();
    outXML.write(myXML.getBytes());
    I think you can add the requestID and all to the begining of the string myXML
    Good luck
    Rajesh

  • How to call webservice via SOAP on WebAS 620

    Hi,
    I am working on WebAS 620 and want to call from ABAP side a Webservice via SOAP.
    The webservice belongs to a third party tool and is placed on a different server.
    This webservice is pretty easy (2 import parameters and 1 export).
    Unfortunately it seems to me that the SOAP framework does not support such calls. It just supports calls of RFC enabled function modules. This is not what I want.
    Do you know if this is possible and how I can do it?
    Best regards,
    Jan Heffter

    check this weblog
    /people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
    Regards
    Raja

  • How to send a signed SOAP message with additional HTTP Header fields

    Our Partner's integration requirements are that we send them asynchronous SOAP messages, that are digitally signed, and whose HTTP headers contains 5 or 6 additional header fields, of which 3 or 4 will need to be dynamically set during the message mapping.  I believe we can use the HTTP adapter for adding new fields to the HTTP header, but don't believe it supports signing.  I believe that the SOAP adapter supports signing, but I'm not clear on how to use it to add fields to the HTTP header.  What is the most straight-forward way to achieve both the signing of the message and the addition of the HTTP header values?
    Thanks,
    Kurt

    >>>What is the most straight-forward way to achieve both the signing of the message and the addition of the HTTP header values?
    Use Java mapping for both.
    1) Signing the message
    You can digitally sign the soap message using many standard api like WSS4j? or  refer Java XML signature API which comes in Jdk1.6.
    Refer these links
    WSS4J  -  http://ws.apache.org/wss4j/axis.html
    Java XML signature : http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/
    2) >>whose HTTP headers contains 5 or 6 additional header fields, of which 3 or 4 will need to be dynamically set during the message mapping
    Use Dynamic configuration API to set the additional header fields during message mapping.

  • How to send connection via packet ?

    hi *,
    when client connect to server , i want to save the connection from client ,
    but how can i send the connection via DataoutputStream to other client ?
    Socket = ServerSocket.accept();
    //when i accept the connect
    DataOutputStream out = new DataOutputStream(ServerSocket.getOutputStream());
    out.write??(Socket)???
    //how to send the connection to other client via DataOutputStream???

    bobby92 wrote:
    hi *,
    when client connect to server , i want to save the connection from client ,
    but how can i send the connection via DataoutputStream to other client ?
    Socket = ServerSocket.accept();
    //when i accept the connect
    DataOutputStream out = new DataOutputStream(ServerSocket.getOutputStream());
    out.write??(Socket)???
    //how to send the connection to other client via DataOutputStream???
    The client already knows about the connection (since it connected to the server). I don't know what problem you are trying to solve, but it sounds like you want to give the client som kind of id, and store the connections in a map on the server, and use the client id as key in the map.

  • How to send docs via bluetooth from / to iPad?

    How to send quickly docs via bluetooth from / to iPad instead via itunes etc?

    drowningindata wrote:
    I would very much like for there to be a way to quickly transfer a small block of text from iPad to iMac without copying and pasting it into an email/creating a small separate doc and using iTunes/using the cloud or dropbox or using Notes. Bluetooth worked fine for me between my laptop and iMac, quick and easy. WiFi would be better.
    I keep a large journal on my iPad using Pages (I'm a writer) and sometimes I just want to use/send a small selection of text from it to the iMac. It would be really nice if I could select the text and see in the popup options something like 'send to iMac' or other device.
    If you are running OSX 10.8.2 on your iMac, you can use iCloud and the Notes applications on your iPad and iMac to transfer the block of text in a note between the two devices.  I do this with simple notes and lists.  In your settings on each device, make sure Notes is turned ON under the iCloud tab.

Maybe you are looking for