How to send attachments thru webservice?
Hi Friends,
I am in a situation to send an image or pdf file thru webservice method as an attachment (i believe send attachment is the only possible way to send image or pdf).
How can i do this ? If anyone has an idea pls let me know.
Thanks,
Raags
http://msdn2.microsoft.com/en-us/library/ms996944.aspx
http://www.ibm.com/developerworks/webservices/library/ws-attach.html
Similar Messages
-
How to send attachments using HTTP Binding Adapter?
How to send attachments using HTTP Binding Adapter in Jdeveloper?
Requirement: I need to send attachments to a system which can communicate with the middleware using https only.
Kindly suggest..
Edited by: Richa Juneja on Jan 28, 2013 4:03 AMHi,
Following links may help U
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
to know the basics about soap adapter u cn check out this link
/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
to get in detail about the attachments chk out this link
hi i am unable to attach an attachment in File to mail scenario
Regards
Pullarao -
How to send SMS thru SMPP from PL/SQL
How to send SMS thru SMPP from PL/SQl or forms application. SMPP interface setuped in the SMSC. Requirement is send to SMS's to custoemrs thru our forms application.
How to send SMS thru SMPP from PL/SQl or forms application. SMPP interface setuped in the SMSC. Requirement is send to SMS's to custoemrs thru our forms application.
-
How to send attachments as request/response in a webservice.
Hi Team,
I have created a webservice using pb.net.Now I want to pass attachments as input parameter to the webservice. And also i want to send attachments as response.So please anybody help me on this .
Regards
SubratHi Bruce,
Thanks for the info.As i am new to the PB.net webservice, its very difficult for me how to add these things in the code.Can you have any sample application/programs where you have send the attachments as a request and response using pb.net webservice.
Thanks a lot again,
Regards
Subrat -
How to send fax thru sap system
Hi all,
I need to send a fax thru sap system. In the given parameter I need to give email address & fax number. The result is the content I shud receive as both email & fax.
As far as email is concerned no problem. But I am not receiving the content fax. I am getting the following error as email. Pls find below the error message.
Your message did not reach some or all of the intended recipients.
Subject: 000000002008
Sent: 4/5/2007 11:47 AM
The following recipient(s) could not be reached:
FAX3D2B918041396976@75 on 4/6/2007 2:31 AM
The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.The MTS-ID of the original message is:ADR32000000006890
< sap.corp #5.1.1 SMTP; 553 <FAX=+918041396976@75>... only FQDN names will be accepted>
The fax number I typed is +918041396976 but the system itself is adding @75 behind it. I am not getting the fax message.
Can anyone help me in this regard.
Thanks in advance.
Vijay.Hi Vijay,
The fax nio. parameter can be handled thru the program. I mean remove those extra characters... and try this code below for ref (its from sap-img.com)
The following program shows you how to send a fax from within ABAP/4. The report is delivered
in the standard system and is used in Transaction SCOM for the function "Send test fax".
Only the method via the call of SAPscript with DEVICE='TELEFAX', described below, ensures the
generation of a correct transmission request, independent of the R/3 release and of the used
fax server solution and its configuration.
The regular printing (for example, with NEW-PAGE PRINT ON...) on an output device created in
the spool administration of the device class 'Telefax' does generally not work!
REPORT RSKSENDF MESSAGE-ID SK.
Test report to send a test fax
sends a fax to the number <TO_CNTRY>-<TO_NMBER>
containing an automatically generated message text.
TABLES: USR03.
PARAMETERS: TO_CNTRY LIKE T005-LAND1 OBLIGATORY,
TO_NMBER LIKE TSP01-RQTELENUM OBLIGATORY,
FROM_USR(30) TYPE C DEFAULT SY-UNAME,
TO_RECIP(30) TYPE C DEFAULT SY-UNAME.
SAPscript content ITAB
DATA: BEGIN OF TEST_DOC OCCURS 10.
INCLUDE STRUCTURE TLINE.
DATA: END OF TEST_DOC.
SAPscript header struct
DATA BEGIN OF HEADER.
INCLUDE STRUCTURE THEAD.
DATA END OF HEADER.
INITIALIZATION.
get county from user addres in usr03
system->user profile->user address
check if not empty
SELECT SINGLE * FROM USR03 WHERE BNAME = SY-UNAME.
IF SY-SUBRC = 0 AND USR03-LAND1 <> SPACE.
TO_CNTRY = USR03-LAND1.
ENDIF.
START-OF-SELECTION.
PERFORM FILL_UP_TEST_DOC.
PERFORM SHOW_TEST_DOC.
AT PF08.
PERFORM SEND_FAX TABLES TEST_DOC USING TO_CNTRY
TO_NMBER.
AT SELECTION-SCREEN ON TO_NMBER.
PERFORM CHECK_NUMBER USING TO_CNTRY TO_NMBER.
*& Form CHECK_NUMBER
FORM CHECK_NUMBER USING
COUNTRY
NUMBER.
DATA: SERVICE LIKE TSKPA-SERVICE VALUE 'TELEFAX',
LEN LIKE SY-FDPOS.
FIELD-SYMBOLS <P>.
windows GUI push the ? from mandatory input instead
of overwriting it
LEN = STRLEN( TO_NMBER ).
IF LEN > 1.
SUBTRACT 1 FROM LEN.
ASSIGN TO_NMBER+LEN(1) TO <P>.
IF <P> = '?'.
<P> = SPACE.
ENDIF.
ENDIF.
official check FM
CALL FUNCTION 'TELECOMMUNICATION_NUMBER_CHECK'
EXPORTING
COUNTRY = COUNTRY
NUMBER = NUMBER
SERVICE = SERVICE.
on old 21?/22? release you may have to handle the
exception
because the Function uses RAISE instead of
MESSAGE... RAISING....
ENDFORM. " CHECK_NUMBER
*& Form FILL_UP_TEST_DOC
fills test text in itab TEST_DOC *
real life example needs to get real life data *
FORM FILL_UP_TEST_DOC.
DATA: DATUM(12) TYPE C,
UZEIT(10) TYPE C.
SAPscript initialization
of course, you may want to set a few parameter
(FORM,LAYOUT,....)
CALL FUNCTION 'INIT_TEXT'
EXPORTING
ID = 'ST '
LANGUAGE = SY-LANGU
NAME = 'FOO-BAR'
OBJECT = 'TEXT'
IMPORTING
HEADER = HEADER
TABLES
LINES = TEST_DOC
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC <> 0.
MESSAGE A400 WITH 'INIT_TEXT'.
ENDIF.
PERFORM ADD_EMPTY_LINE.
WRITE: SY-DATUM TO DATUM.
WRITE: SY-UZEIT TO UZEIT.
PERFORM ADD_LINES USING 'This is test Telefax'(001)
DATUM UZEIT.
PERFORM ADD_EMPTY_LINE.
PERFORM ADD_LINES USING 'From: &'(002) FROM_USR SPACE.
PERFORM ADD_LINES USING 'To: &'(003) TO_RECIP SPACE.
PERFORM ADD_LINES USING 'Fax number: & &'(004)
TO_CNTRY TO_NMBER.
PERFORM ADD_EMPTY_LINE.
PERFORM ADD_LINES USING
'This is a test fax send by Report RSKSENDF'(005)
SPACE SPACE.
PERFORM ADD_LINES USING 'on SAP system & '(006)
SY-SYSID SPACE.
PERFORM ADD_EMPTY_LINE.
PERFORM ADD_LINES USING
'the quick brown fox jumps over the lazy dog.'(101)
SPACE SAPCE.
PERFORM ADD_LINES USING
'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG.'(102)
SPACE SAPCE.
PERFORM ADD_EMPTY_LINE.
PERFORM ADD_LINES USING 'End of test'(007) SPACE
SPACE.
ENDFORM. " FILL_UP_TEST_DOC
*& Form ADD_LINES
printf a line an appends it in test_doc *
--> cformat format.
--> p1 param1
--> p2 param2
FORM ADD_LINES USING CFORMAT P1 P2.
TEST_DOC-TDFORMAT = '/'.
TEST_DOC-TDLINE = CFORMAT.
IF TEST_DOC-TDLINE CA '&'.
REPLACE '&' WITH P1 INTO TEST_DOC-TDLINE.
IF TEST_DOC-TDLINE CA '&'.
REPLACE '&' WITH P2 INTO TEST_DOC-TDLINE.
ENDIF.
ENDIF.
APPEND TEST_DOC.
ENDFORM. " ADD_LINES
*& Form ADD_EMPTY_LINE
appends an empty line to test_doc *
FORM ADD_EMPTY_LINE.
TEST_DOC-TDFORMAT = '/'.
CLEAR TEST_DOC-TDLINE.
APPEND TEST_DOC.
ENDFORM. " ADD_EMPTY_LINE
*& Form SHOW_TEST_DOC
lists the test doc for aproval *
*>>>> this is for fun only because PRINT_TEXT also
offers a preview *
FORM SHOW_TEST_DOC.
FORMAT COLOR COL_BACKGROUND INTENSIFIED OFF.
WRITE: / 'Test fax would look like this:'(020).
ULINE.
SKIP.
LOOP AT TEST_DOC.
IF TEST_DOC-TDLINE <> SPACE.
WRITE:/ TEST_DOC-TDLINE.
ELSE.
SKIP.
ENDIF.
ENDLOOP.
SKIP.
ULINE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE: 'Press PF8 to send it'(021).
ENDFORM. " SHOW_TEST_DOC
*& Form SEND_FAX
send fax by calling SAPscript *
Note: Instead of using PRINT_TEXT you may also *
call OPEN_FORM / WRITE_FORM_LINES / CLOSE_FORM, *
this allows you to use a similar program structure *
as with NEW-PAGE PRINT ON / WRITE / NEW-PAGE PRINT
OFF *
FORM SEND_FAX
TABLES DOC2FAX STRUCTURE TEST_DOC
USING COUNTRY
NUMBER.
DATA: SID(5) TYPE N.
DATA BEGIN OF POPT.
INCLUDE STRUCTURE ITCPO.
DATA END OF POPT.
DATA BEGIN OF PRES.
INCLUDE STRUCTURE ITCPP.
DATA END OF PRES.
CLEAR POPT.
POPT-TDCOPIES = 1. " one copy
POPT-TDDEST = " done internaly by script,
POPT-TDPRINTER = " do not fill !!!
POPT-TDNEWID = 'X'. " do not reuse old spool request
POPT-TDDATASET = 'TEST'(022). " fill as you want
POPT-TDSUFFIX1 = 'FAX'(023). " fill as you want
POPT-TDSUFFIX2 = SY-UNAME. " fill as you want
POPT-TDIMMED = 'X'. " send now
POPT-TDLIFETIME = 8. " keep 8 days in spool
POPT-TDTELENUM = NUMBER. " number without country code
POPT-TDTELELAND = COUNTRY. " country of recipient
POPT-TDCOVER = 'test fax'(024).
POPT-TDCOVTITLE = 'test fax'(024).
POPT-TDIEXIT = 'X'.
CALL FUNCTION 'PRINT_TEXT'
EXPORTING
APPLICATION = 'TX'
ARCHIVE_INDEX = ' '
ARCHIVE_PARAMS = ' '
DEVICE = 'TELEFAX' "<<< here we say: fax it !
DIALOG = 'X'
HEADER = HEADER
OPTIONS = POPT
IMPORTING
RESULT = PRES
TABLES
LINES = DOC2FAX
EXCEPTIONS
OTHERS = 01.
do not bother with exception in sample code
CANCELED = 01
DEVICE = 02
FORM = 03
OPTIONS = 04
UNCLOSED = 05
UNKNOWN = 06
FORMAT = 07
TEXTFORMAT = 08
EXTERNAL = 09.
IF SY-SUBRC = 0.
arriving here means we could send:
SID = PRES-TDSPOOLID.
IF SID > '00000'.
MESSAGE S433 WITH SID.
ENDIF.
LEAVE .
ELSE.
do not bother with exception in sample code
MESSAGE A400 WITH 'PRIN_TEXT'.
ENDIF.
ENDFORM. " SEND_FAX -
Support message - How to send attachments to SAP
When I create a message and send it to SAP, how can I send the attachment to SAP as well.
I upload a doc in the Document tab, but when i check the website, the document wasn't sent sucessfully.If you do not get any error message I would raise a call.
According to [Note 569392 - SAP Support Desk: Sending attachments to SAP|https://service.sap.com/sap/support/notes/569392] files with .doc extension are permitted.
Depending on your SP level you may implement [Note 1080131 - Check on attachments and file types|https://service.sap.com/sap/support/notes/1080131]. This way you can check if the files you attached are permitted by SAP.
Regards -
How to Send Attachments in Workitem?
Hi all,
How to send the attachmenst in Workitem from DMS?
Scanerio is:
User is creating different request documents and attaching the supporting docu in word ,pdf,img etc format and which are the saved in DMS server.
I am triggering the WF on Submit for Approval button and WI goes to different approvers.
Now Approvers want to view this attachments for approval process.
Can anyone guide me on thi
Thanks,
ArpitaHello Arpita Churi ,
You have to call this function module in the method of your business object and it has to integrated with task.It will do any number of attachments of any Mircosoft office products.
Regards,
S.Suresh -
How to send attachments using java application and outlook
Hi ,
I created an application in java which is as
on the Conference Tab i can schedule a conference and with the send command on page it map all the scheduled data to outlook(with all conference details) and using outlook send option the mails are send to appropriate user.
but now i want to modify this application such as when i use the send command from my jsp page it should attach the file that is in .vcs or .ics format for auto updation of user calender.
can any one know how to send attachment using java application .Last time I checked, SMS was a service between carriers and doing SMS yourself was really tricky. Some services existed to let you do it but as I recall they wanted non-trivial money.
However, most phone carriers provide an email-to-SMS bridge of some kind.
So the easiest thing is just to send an email.
That's sending from a non-phone to a phone. There's a J2ME library to send/receive SMS from/to a phone.
However, this is from memory, and a little out of date, so I could be entirely wrong. Hope it helps anyway. -
Cannot send attachments in yahoo. Only says "edit attachments" How to send attachments
when I click "attachments" button in an email, it will not let me find one in documents. Just tells me that the button is to edit attachments. Also, attachments in received email will not forward to gmail.
On Thu, 15 Jan 2009 17:06:02 +0000, TAYLORRD wrote:
> Since upgrading from WebAccess 6.5.6 to 7.0.3 we are experiencing
> problems sending attachments. Most small attachments (less than 100KB)
> will send successfully, but larger attachments will not. The compose
> Message screen never clears and the message is not sent. Clicking send
> again repeats this process.
>
> The GW Web Application is running on IIS on Windows 2000 server within
> our DMZ. The failed message attachments appear in the c:\novell\tmp
> directory. We are not using SSL.
>
> The clients are using IE6 or IE7
>
> All other WebAccess functionality is working fine (albeit a little
> slower than 6.5) and are able to open any attachments that are received.
> It sort of seems like a timeout but cannot find any relevant settings.
>
> Has anyone experienced this problem or found a solution?
If this was NetWare I would say that it sounds like a Winsock issue...
There was something about this with the March 08 release of GW7.0.3 but
it was fixed in the 7.0.3 HP1 - which of these two are you using?
HTH -
How to send keystrok thru program
hi,
can anyone tell me, how to send keystroke event to my application programatically. I have to send 'F1' key event.
thanks in advance
debashis royReply 10 of this thread shows you how to send a Ctrl-F1 Keystroke to a component.
http://forum.java.sun.com/thread.jsp?forum=31&thread=224581
To just send F1 to the component I think you just replace "KeyEvent.CTRL_MASK" with 0. -
How to send email thru generic email ID?
I am sending payment advice as PDF email attachment. But it is going from the person's personal email ID who runs the remittance procedure but we don't want his email ID to come into picture. Is there any way we can send email thru a generic email address?
Hi sheel,
or consider the modern way, use cl_sapuser_bcs=>create for the sender you want, check my favorite
[Unknown thus unloved?|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417600%29ID0244690950DB11730526581933624871End?blog=/pub/wlg/3443]
Regards,
Clemens -
How to send attachments to a PO or RFQ to vendors as mail attachment
Hello,
I know that we can send POs to vendors per E-Mail. The PO int his case will be sent as a PDF document.
How about attachments to this PO? Is it possible to have those sent via the same mail as well ?
Any ideas.
Thanks in advance for replies.first create a po thru thru me21n.
then go to me22n and choose the same po.
here just above document overview on u will find services for po.
select the dropdown list u will find create.
on selecting create u have to select create attachment.
on selecting it u have now to select the document u want to attach from where u have save it.
select the file/document and select open.
then save.
regards,
indranil -
How to send attachments to a laptop by bluetooth
When I'm travelling and am away from the internet, I need to transfer email attachments onto my laptop to work on them.
This seems straightforward with a jpeg, as you can save it to the media drive and then there is a 'send by bluetooth' option on the menu if you highlight it.
But if it is another file there is no save to media option (with a pdf, there is only an option to save it a page at a time, which is no use for a big doc!).
Any ideas on how to transfer any attachment to a laptop by bluetooth?Hi and welcome to the forums!
Since the attachment is not being saved and is only attached to the email, I don't think you can transfer via Bluetooth.
I believe the easiest is to email them to your laptop.
Someone on the forum will have a better idea about this I'm sure!
Thanks,
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
How to send Attachments vis web service response?
Have created a custom plsql type webservice.
How do we send a file(say a blob object) as an attachment?
Cannot be sent as a blob object return parameter.
Any body have encountered this requirement?Hi Abdullah,
this is only possible if there is an extension scenario for the Query "Outbound" available. You added already the "Inbound" Query but I am pretty sure that there is a second scenario for the QueryCustomerIn for the "Outbound".
Just check out the available options of the process extension scenario you are using already and you will find it. Check it, activate your xbo and the response should also have your field
Cheers,
Jens -
How to send Attachments to a pc!
Here is my issue, and ive wasted a good 30 mins trying to research it enough to figure it out. Im a new macbook user and have been using my macbook for the majority of my work related duties. Today i input my info into my timecard doc (.pages) and went to sent it to my payroll guy and to myself to make sure it went through. when i recieved it the single file was sent as a zip, when you open the zip on the pc you cannot find the actual document anywhere. WTH?! haha please tell me how to make this work. i already have send windows friendly attachments selected, view as icon and all that. i also downloaded attachment tamer but im not sure that is my solution, or quite frankly how to use it.
Thanks so muchhow do you save it as a word dock after editing it ect? and does doing this leave it as a stand alone file that windows users can click and open or still a zip folder containing three preview files and gibberish?
Maybe you are looking for
-
Need advice on video software.
Need advice on video software. I currently use adobe elements 3 and have done so for a few years now with no problems. my os is XP and my system is a couple of years old, but we do have a brand new win7 machine in the house. I am currently look at Cy
-
I have no sound on videos streaming from youtube etc
Everything was fine until installing Regwork. i have uninstalled Regwork...how do I fix this?
-
Configuring Kerberos authentication for SSRS in native mode - SSRS 2008 R2-2012
Hi, I've a SSRS native mode installation on a server and a SSAS installation on another server. In order to configure the Kerberos authentication for SSRS native mode, I need to register one SPN for the report server service, one SPN for SSAS service
-
What has happened to cut and paste files?
Hi, I was a Windows user for a long time and then I switched to Linux, and finally to Mac OS X. So I'm quite used to cut and paste files in Windows and Linux, I didn't discover this problem in Mac OS X until I tried right clicking on a file in order
-
Photoshop Elements 10 not recognizing .NEF files from Nikon D3200 camera
I've been using Photoshop Elements 10 to edit raw .NEF files from my Nikon D3000 with no problems. Recently I purchased a Nikon D3200 and I shoot in raw .NEF files using that also but Photoshop Elements 10 will not recognize those .NEF files to edit