ABAP tool to send xml
Hi Guys
I normally use SOAP tool which is an html to send an xlm file to SAP PI when testing my Scenarios ( like Soap to File),
my question, is there any tool that I can use in ABAP
Thanks
Yonela
Hi Good People
Is it posible to use the ABAP Proxy in the Integration Box (SAP PI/XI)
Thanks
Yonela
Similar Messages
-
Sending XML Files with Certificate
Hello everybody.
I need develop an abap program for sending XML files with a certificate.
How I can create this certificate?
Somebody have an idea?
Thank you everybody.
NelsonMikael,
This sounds like one of the many quirks (perhaps bugs) related to how FrameMaker handles non-FM files in books. The current book model doesn't play well with XML files as chapters and this seems like yet another problem. Apparently, if an xref does not target another .fm file in the book, Frame assumes that the target file is not in the book and therefore will not be in the book PDF.
There have been discussions here about this in the past. The solution that I use is to run an API client before publishing that converts all XML files to .fm files, and redirect all xrefs appropriately. Then, book features work as expected and PDFs come out as normal. This is not feasible, however, without the automation from the API client.
There may be some who would say that the best approach is to use XML and books the way that the designers did account for... that is, the whole book becomes an XML document with entity references to the separate chapters. In my work, though, this model was not appropriate... rather, I needed a binary FM book to act like a book, except with XML files as chapters. So, I think I understand your situation.
Is API programming or FrameScript an option for you? I think it may be the only way to get what you are looking for.
Russ -
HI All,
We have a scenario in which data comes from a legacy system to xi ,we use soap adapter there,and data goes from xi-crm through idoc adapter.
Is there any tool that can be used to test the xml coming from legacy system and going to idoc.
Thanks,
Am.Am,
For testing purposes I use a <b>.htm</b> script as a Posting Tool to send XML messages to the XI server
You also need to create Configuration to accept the test message
1. Business Service (to represent the Posting Tool)
2. Receiver Determination (referencing the Sender Service) and
3. Interface Determination (referencing the Sender Service)
I am getting an error when providing the script code in this reply
So if you supply your email address I will send a copy of the script to you
Regards,
Mike -
Sending XML from ABAP using WEB Service 6.20 to an external server
Hi,
Can anyone help me to send XML file from WAS 6.20 using ABAP withouut XI?
I am trying to send an XML file to an external server from ABAP. I have created the RFC destination in SM59 with address. I am able to make connection to the host but the whole XML file is not delivered to the receiving.
Thanks,
Wilsonif you want to push, then the other system should have some mechanism to receive it, they can be ftp location, http point, or a webservice. check with external system what do they support.
based on what the external system can support , we can come up with further suggestions. -
Doubt : Send XML Data to BW
Hi everyone,
I need to <u>send XML Data to BW</u> and to do so I was following the steps of the document "How to Send XML Data to BW". OK...
But I got stucked when I was about to reach these 2 links recommended to:
1) An XML 3.0 parser has to be installed
link: <i>http://download.microsoft.com/download/xml/Install/3.0/WIN98Me/EN-US/msxml3.exe</i>
2)Afterwards, you have to run the Xmlinst.exe Replace Mode Tool.
link:
<i>http://www.msdn.microsoft.com/msdn-files/027/001/469/XmlInst.exe</i>
It seems these two links can't be reached anymore... I don't know why.
And I haven't found which are the correct ones.
Could you please let me know what are the 2 files to be installed in order to continue with this issue?
Thanks a lot for your help.
Marcos ItriThank you Raja,
I've found the first one, which I've already installed... but I couln't find exactly the second one that refeers to Replace Mode Tool.
I will keep looking for that, eventhough I don't know if it's necessary or not (I'm just follow the step-by-step solution on How-to).
Thanks one more time,
Marcos -
Query regarding sending XML over HTTP Post request
Hello,
I am trying to send XML data from a server to client via HTTP Post request
And vice versa � receive the data by a client
Assume that the xml data looks something like
<?xml+version="1.0"?>
So my post query will look like
http://<IP Address>:<port>/
POST /MessageReceiver.jsp HTTP/1.0
Host: www.SomeHost.net
Content-Type: application/x-www-form-urlencoded
Content-Length: 38
%3C%3Fxml%2Bversion%3D%221.0%22%3F%3E+
This information will be received by the client and converted back to xml data.
My query is - is there some library/open-source stuff that
does the process of transcoding the entity's non-ASCII characters
at the server side
and decoding the URL back to human-readable form at the client side?
i.e. I need a simple mechanism to convert
<?xml+version="1.0"?>
to
%3C%3Fxml%2Bversion%3D%221.0%22%3F%3E+
at the server side, while sending data
and do the opposite at the client side to get the xml back.
Also could some one confirm if JTidy is a right tool to check if the xml is well-formed?
Or is there any other standard tool that checks for well-formed properties of xml?
regards,
Deepak.java.net.URLEncoder / URLDecoder?
Also could some one confirm if JTidy is a right tool to check if the xml is well-formed?No, it's for parsing HTML. An XML parser is checking for well-formedness in any case. -
Send xml file from sap to third party url through https
Hi,
I have a requirement to send the xml file from ecc to a 3rd party url through HTTPS. How can we achieve this using ABAP.
Client doesn't have XI enviroment. The client has provided the 3rd party url where the file needs to be uploaded.
Please help ! <removed by moderator>
Thanks in advance.
Regards,
Chitra.K
Edited by: Thomas Zloch on Sep 12, 2011 12:58 PMHi Chitra,
I had similar requirement and here is what I did: -
REPORT Z_HTTP_POST_TEST_AMEY.
DATA: L_URL TYPE STRING ,
L_PARAMS_STRING TYPE STRING ,
L_HTTP_CLIENT TYPE REF TO IF_HTTP_CLIENT ,
L_RESULT TYPE STRING ,
L_STATUS_TEXT TYPE STRING ,
L_HTTP_STATUS_CODE TYPE I ,
L_HTTP_LENGTH TYPE I ,
L_PARAMS_XSTRING TYPE XSTRING ,
L_XSTRING TYPE XSTRING ,
L_IS_XML_TABLE TYPE STANDARD TABLE OF SMUM_XMLTB ,
L_IS_RETURN TYPE STANDARD TABLE OF BAPIRET2 ,
L_OUT_TAB TYPE STANDARD TABLE OF TBL1024
MOVE 'https://<hostname>/xxx/yyy/zzz' TO L_URL.
MOVE '<XML as string>' TO L_PARAMS_STRING.
*STEP-1 : CREATE HTTP CLIENT
CALL METHOD CL_HTTP_CLIENT=>CREATE_BY_URL
EXPORTING
URL = L_URL
IMPORTING
CLIENT = L_HTTP_CLIENT
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
OTHERS = 4 .
"STEP-2 : AUTHENTICATE HTTP CLIENT
CALL METHOD L_HTTP_CLIENT->AUTHENTICATE
EXPORTING
USERNAME = 'testUser'
PASSWORD = 'testPassword'.
"STEP-3 : SET HTTP HEADERS
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = 'Accept'
VALUE = 'text/xml'.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_HEADER_FIELD
EXPORTING NAME = '~request_method'
VALUE = 'POST' .
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_CONTENT_TYPE
EXPORTING CONTENT_TYPE = 'text/xml' .
"SETTING REQUEST DATA FOR 'POST' METHOD
IF L_PARAMS_STRING IS NOT INITIAL.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = L_PARAMS_STRING
IMPORTING
BUFFER = L_PARAMS_XSTRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
CALL METHOD L_HTTP_CLIENT->REQUEST->SET_DATA
EXPORTING DATA = L_PARAMS_XSTRING .
ENDIF.
"STEP-4 : SEND HTTP REQUEST
CALL METHOD L_HTTP_CLIENT->SEND
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2.
"STEP-5 : GET HTTP RESPONSE
CALL METHOD L_HTTP_CLIENT->RECEIVE
EXCEPTIONS
HTTP_COMMUNICATION_FAILURE = 1
HTTP_INVALID_STATE = 2
HTTP_PROCESSING_FAILED = 3.
"STEP-6 : Read HTTP RETURN CODE
CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_STATUS
IMPORTING
CODE = L_HTTP_STATUS_CODE
REASON = L_STATUS_TEXT .
WRITE: / 'HTTP_STATUS_CODE = ',
L_HTTP_STATUS_CODE,
/ 'STATUS_TEXT = ',
L_STATUS_TEXT .
"STEP-7 : READ RESPONSE DATA
CALL METHOD L_HTTP_CLIENT->RESPONSE->GET_CDATA
RECEIVING DATA = L_RESULT .
"STEP-8 : CLOSE CONNECTION
CALL METHOD L_HTTP_CLIENT->CLOSE
EXCEPTIONS
HTTP_INVALID_STATE = 1
OTHERS = 2 .
"STEP-9 : PRINT OUTPUT TO FILE
CLEAR : L_XSTRING, L_OUT_TAB[].
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
TEXT = L_RESULT
IMPORTING
BUFFER = L_XSTRING
EXCEPTIONS
FAILED = 1
OTHERS = 2.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = L_XSTRING
TABLES
BINARY_TAB = L_OUT_TAB .
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'C:AMEYHTTP_POST_OUTPUT.xml'
TABLES
DATA_TAB = L_OUT_TAB .
Also, following is the detailed link for use of HTTP_CLIENT class: -
http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/1f/93163f9959a808e10000000a114084/content.htm
Also, in below link, you can ignore XI specific part and observe how its sending XML to external URL:-
(I know it describes call to SAP XI server's URL, but it can be used to call any URL)
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/ae388f45-0901-0010-0f99-a76d785e3ccc
In addition to all above, following configs to be present at ABAP application server: -
1. The hostname used to URL should be present in SAP ABAP application server's 'hosts' file.
2. Security certificate (if available) for URL to be called must be installed in SAP ABAP application server.
Let me know if you achieve any progress with it... -
How to send XML using UTL_HTTP
I am trying to workout how to send XML data to a webserver using UTL_HTTP but am not getting any reply
I need to submit the following XML document to a server "http://api.fastsms.co.uk/api/xmlapi.php" Their instructions are "The XML Document should be posted unencoded, with a UTF-8 character set as parameter 'xml'"
If I submit the following XML on their test form
<?xml version="1.0"?>
<apirequest version="1">
<user>
<username>**USER**</username>
<password>**PASSWORD**</password>
</user>
<application>
<name>Example Application</name>
<version>1.0</version>
</application>
<inboundcheck lastid="10711399"/>
</apirequest>
I get an XML response back with the messages in my inbox.
This is the code I am trying to use to accomplish the same from PL/SQL : I know a response is coming back as there is header information - just no content. What am I doing wrong ?
l_xml VARCHAR2(5000);
req utl_http.req;
resp utl_http.resp;
header_name VARCHAR2(256); -- Response header name
header_value VARCHAR2(1024); -- Response header value
response_text VARCHAR2(4000); -- Response body
l_url VARCHAR2(100);
BEGIN
l_xml := 'xml=<?xml version="1.0"?>';
l_xml := '<apirequest version="1">';
l_xml := '<user>';
l_xml := '<username>**USER**</username>';
l_xml := '<password>**PASSWORD**</password>';
l_xml := '</user>';
l_xml := '<application>';
l_xml := '<name>Example Application</name>';
l_xml := '<version>1.0</version>';
l_xml := '</application>';
l_xml := '<inboundcheck lastid="10711399"/>';
l_xml := '</apirequest>';
-- Open HTTP connection
l_url := 'http://api.fastsms.co.uk/api/xmlapi.php';
req := utl_http.begin_request(l_url,'POST',utl_http.HTTP_VERSION_1_1);
-- Set headers for type and length
utl_http.set_header(req,'Content-Type','application/x-www-form-urlencoded');
utl_http.set_header(req,'Content-Length',to_char(length(l_xml)));
-- Write parameter
utl_http.write_text(req,l_xml);
-- Read response file
resp := utl_http.get_response(req);
-- Print out the response headers
FOR i IN 1 .. utl_http.get_header_count(resp) LOOP
utl_http.get_header(resp,i,header_name,header_value);
logging_pkg.info(header_name || ': ' || header_value);
END LOOP;
-- Print out the response body
BEGIN
LOOP
utl_http.read_text(resp,response_text);
logging_pkg.info(response_text);
END LOOP;
EXCEPTION
WHEN utl_http.end_of_body THEN
logging_pkg.info('End of body');
END;
-- close http connection
utl_http.end_response(resp);
EXCEPTION
WHEN utl_http.end_of_body THEN
utl_http.end_response(resp);
END;
Cheers,
BrentHi Billy
Yikes - how embarassing ! Thanks for pointing out my beginners mistake there. I've fixed my code - and also implemented the substitutions of parameters like you suggested - I like that approach.
Unfortunately the end result is no better - the line
utl_http.read_text(resp,response_text);
Still returns nothing back
The headers that are coming back are
Date: Thu, 04 Jul 2013 08:31:56 GMT
Server: Apache/2.2.16 (Ubuntu)
X-Powered-By: PHP/5.3.3-1ubuntu9.3
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 0
Content-Type: text/html; charset=UTF-8
Connection: close
I guess I will need to try chasing it with the fastsms vendor so see if they can check my incoming request and see if there are any glaring problems. I know the xml is correct as I am now logging the xml string just before I send it and when I take that string and put it in their test form it works perfectly - something else in the puzzle is missing. I've had no experience using utl_http before - perhaps it's no possible to read the xml repsonse using this ?
Anyway, thanks for your help Billy.
ps - How do you paste your code into your message to get that formatting ?
Cheers,
Brent -
Processing the multiple sender xml one by one in a time gap to RFC
Dear Experts,
I have to process the multiple sender xml file one by one from FTP to RFC in time gap.
For Ex:
I will place 10 xml file in a FTP path at a time, PI is picking 10 file at a time and process it to RFC at a time.
Any other way to process the multiple file one by one through PI in a time gap to RFC
(i,e) PI needs to process the 10 files one by one, once the first file processed successfully from FTP to RFC then the next file to process in a time gap to avoid getting the error in RFC.
Kindly suggest your ideas or share some links how to process this multiple files.
Best Regards,
Monikandan.Hi Monikandan,
You can use CE BPM with PI 7.1 But first check the suggestion of Anupam in the below thread:
reading file sequentially from FTP using SAP PI file adapter
Regards,
Nabendu. -
How to send XML file into XI using sender HTTP adapter
I am using HTTP sender adapter to post the XML file into XI. I tried to form the URL by using the following String query , but I am unable to execute file.
String urlString = "http://<servername:portno>/sap/xi/adapter_plain?namespace=<namespace>&interface=<interface name>&service=<service name>&party=&agency=&scheme=&QOS=BE&sap-user=xiappluser&sap-password=satyam&sap-client=100&sap-language=EN";
How can I execute xml file by using HTTP sender adapter.
Any one with better suggestions, about this idea?
Thanks in advance for all.
Ram RajHi
Just use the following parameter to send xml file using HTTP adapter.
"http://xiserver:8000/sap/xi/adapter_plain?namespace="senderNamespace"&interface=senderinterface&service=sender service";
"&party=sender party"&agency=&scheme=&QOS=BE&sap-user=userid &sap-password=password&sap-client=100&sap-language=D";
with the help of this you are able to point out which interface you would like to use.
And in payload pass the xml.
and thats it
carry on
Cheers
Regards
Piyush -
Send XML as attachment in Email activity
Hi
My requirement is to send XML as an attachment through email .
In the attachment if i select the MIME type as "XML" then no email notification is sent,
but if i select the MIME type as "text/html" , then attachement is sent through email , but attachment is in different format( with no content inside attachment) .
Can anyone help me on this .have you tried the example on this page : http://java.net/projects/oraclesoasuite11g/pages/Notification
-
Send XML to client: message box
Hi,
In a BPM workflow I'm putting together, I need to open a message box for information
(title, message, OK button). In the documentation, I found that I should send
an XML document to a client that looks like this:
<message-box title="title" style="information" options="ok">
<actionid>"1013679664318"</actionid>
</message-box>
Which I did: I added a "Send XML to client" action in the "True" part of a decision
node with a message-box element and its attributes, and actionid as a nested element.
When I trigger the workflow, it goes through all the expected steps but the window
does not pop up at all. I could not find the reason why anywhere. So has anyone
experienced the same problem ? If yes, how did you solve it ?
Cheers,
YannHi Sudhar.
I don't think your workflow will execute the next node before you mark the current
node as done. Conseqently setting the done in the decision box isn't possible.
Giora
"Sudhar" <[email protected]> wrote:
>
After I do the Send XML to Client from the exeucte tab of an action...instead
of
marking the task as done on the call back actions...i try to mark the
same task
as done in the next task after a decision box....it doesnt seem to work?
any ideas? should you always mark a task as done on the same task? -
Struggling with Send XML to client
Hi,
I am using WL Process Integrator 2.1 with WL 6.1.
I am trying to do do an example of the "Client Call Addin Response DTD" i.e. pass
an XML document to an external java
program.
As given in docs :
http://e-docs.bea.com/wli/docs70/devclient/appa.htm#1120726
1. I have created a template definition
2. Defined a XML doc. (as per the Client Callin Request DTD) and attached to ActionSendXMLToClient
event as shown below.
<call-addin name="mywlpi.addinimpl" mode="async">
<actionid>959395846210</actionid>
<parm>itemNumber</parm>
</call-addin>
3. "mywlpi.addinimpl" is a java program I created
4. Now, the problem I run into is when I run from Worklist (Swing client program),
it errors out saying it cannot find this
class file:
ClassNotFoundException: mywlpi.AddInImpl
java.lang.ClassNotFoundException: mywlpi.AddInImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
5. I have included the class file in a .jar and included in the
SVRCP of startWebLogic.cmd file. Also, when I create a Business
Operation from Studio, I can locate this Java class. So, I am
not sure what is missing. The strange part is when I run from the
Worklist JSP page, it errors out saying :
"Cannot execute this task, because it is already done." The task
is not yet done.
Is there someone who can help me here? Any suggestions
appreciated!!
Thanks,
SLNHi Sudhar.
I don't think your workflow will execute the next node before you mark the current
node as done. Conseqently setting the done in the decision box isn't possible.
Giora
"Sudhar" <[email protected]> wrote:
>
After I do the Send XML to Client from the exeucte tab of an action...instead
of
marking the task as done on the call back actions...i try to mark the
same task
as done in the next task after a decision box....it doesnt seem to work?
any ideas? should you always mark a task as done on the same task? -
Send xml flat file to BI 7.0
Hi gurus,
I dont managed to load a XML flat file to BI 7.0.
I get some information from How to papers
Like
<b>How to Enable SAP BW Web Functionality after a New BW Installation
How to send XML DATA to BW for BW 3.0 and BW 3.5
How To Integrate XI and BI in SAPNetWeaver 2004s</b>
for example, with WSADMIN transaction , I cant see the web service home page for my datasource :
Web Service /BIC/CQSENDXML00002000
with access address
default_host/sap/bc/srt/rfc/BIC/CQSENDXML00002000
I got a message in IE : The page cannot be displayed
Your help is appreciated
ChibanyHi Ganesh,
Flat file data load into BI 7.0
Schematically here are the steps you need to follow to load a flat file or csv in BI 7.0:
1. Create the infoobjects you might need in BI
2. Create your target infoprovider
3. Create a source system
4. Create a datasource
5. Create and configure an Infopackage that will bring your records to the PSA
6. Create a transformation from the datasource to the Infoprovider
7. Create a Data Transfer Process (DTP) from the datasource to the Infoprovider
8. Schedule the infopackage
9. Once succesful, run the DTP
10.your Infoprovider should be full
check the other thread's
/message/2935774#2935774 [original link is broken]
check this thread.... but there are lot more discussing even in more detail.
Steps for extracting BC from R/3
<b>To Create Transformations:</b>
http://help.sap.com/saphelp_nw04s/helpdata/en/d5/da13426e48db2ce10000000a1550b0/content.htm
<b>To Create DTP</b>
http://help.sap.com/saphelp_nw04s/helpdata/en/42/fa50e40f501a77e10000000a422035/content.htm
Hope this helps.
Regards,
Ravikanth -
How to send XML file to https server using POST
Hi, I am having an requirement, that I have to connect to https server and I have to pass an input XML file as a response server will give me output XML file.
The certificate validation part is over, I am using FileInputStream to read the XML file and attaching this to connection.getOutputStream(); but server is throwing me DTD does n't match.
Can any body tell me how to send XML file, I have to use any DOM parser to send the XML file, suggest me and give me sample code.
Thanks,Can anybody give me the solution
Maybe you are looking for
-
In Generic Extraction why do we use FUNCTION MODULES over VIEWS (when do we use Function modules and views).
-
I have a KDE folder on my Desktop, how can I link the folder to another place, more specifically my Second Hardrive that is mounted in /home/crooksey/Slave
-
Itunes keeps crashing when I click my iphone´s apps tab
Hi, My itunes keeps crashing when I click the tab "Apps" when my iphone is selected in the left column. The button circled in this image: http://dl.getdropbox.com/u/85398/crash.png Im using 10.6.4 o22n a macbook pro 13 inch, my iphone is a 3gs 32 gb.
-
RMAN with Netbackup - ALL Tape backups expired
Hello, I am currently experiencing some issues between Netbackup and RMAN. A bounce of the Netbackup server seems to have marked all our tape backups managed by RMAN as 'Expired'. This means RMAN can no longer locate any of the tape backups. We have
-
Im trying to make my playlist and it wouldn't let me do it. it says device is not connected. but it lets me browse file,