Sending an XML file as a SOAP attachment over axis 1_4
Hi, Does anyone know any good tutorials for this?
I haven't been able to find anything useful yet.
Thanks
---actually found something useful
http://www-unix.globus.org/mail_archive/discuss/2007/02/msg00037.html
Message was edited by:
ABC_SUN_
Would you mind, can u send the code pls...
Similar Messages
-
How to send a XML file from SAP to WEB SERVICE
Hi folks,
i m creating a XML file with purchase order data, while saving the purchase order.now i need to send this XML file to some WEB SERVICE i.e to some perticular address in WEB.
can anyone give the step by step procedure to do this web service configuration? it's really urgent.
points must be awarded.
Thanks & Regards
pabitraHi all,
i need to send some purchase order data from SAP to WEB SERVICE. while saving the purchase order, i want to send some data from SAP to WEB SERVICE ( a perticular address in WEB).
i want to see those datas in xml format in WEB.
Now i am using SAP 4.7 version. Is this web service configuration is possible or not?
In SE37, i can not see the CREATE WEB SERVICE option in utilitities--> More utilities menu.is it possible in 4.7???
can anyone give any suggestion ? it's very urgent.
Thnaks
pabitra -
Can I send an XML file to the server instead of just URL?
I have installed the XML demos on my machine. I am using Oracle 8i. All the demos talks about getting URL and Parameter from the HTML Page, instead of this I want to send my XML file from Java Applet to server. Then do all the searching as is going on right now in the demos. After this I want to send another XML file back from server to client applet.
Client ----->XMLFILE------>SERVER
Client<-----XMLFILE<------SERVER
Do we have any DEMO which shows that how to send request through XML file instead of
"http://MachineName:Port/XSQL/DEMO/emp.xsql?find=A".
I know that we are not using Java Applets in the demos but I will interact this file with applet, it's not a problem.
I would appreciate if anyone who is really knowlegeable about these demos can answer my question.
Thanks,
Raza
nullhttp://forum.java.sun.com/thread.jspa?threadID=5158333
http://forum.java.sun.com/thread.jspa?threadID=5158705
Crossposting is lame. -
Zip file as a SOAP attachment problem
I have an application that sends a zip file as an attachment. I have the file stored on the server and before I send it, I delete and/or add some files in the archive. I use the zip util packages for the zip file editing. I encode it to base64 and then send it as an attachment using SAAJ.
On the receiving end, I decode it and write it out to disk. Winzip opens the file ok, but when I try to open individual files I get either corrupted data or wrong crc errors. Some files open ok.
For debugging right before I encode and send it, I write it out to a temp file. Using Winzip, I can open and access any file ok. When I compare this temp file with the response version, they match up. The file properties (size, compressed size, crc) match for those files I can't open.
I use the com.sun.mail.util.BASE64EncoderStream and com.sun.mail.util.BASE64DecoderStream classes for the base64 operations.
The errors are:
1) Warning: the size of the extracted file (570) does not match the uncompressed size (63) recorded in the zip file
or
2) Error: invalid compressed data to inflate
Any help would be greatly appreciated, or general advice for sending zips as SOAP attachments.Would you mind, can u send the code pls...
-
How to send an XML file via HTTP_POST
I have an ABAP program that creates an XML file and I need to somehow post this XML file to a webserver and read the HTTP Response that it sends back. I see that there is a function module called HTTP_POST but I've never used it before. I also see that there are a number of ABAP Objects related to HTTP. Has anyone done this before.
I'm on SAP 4.7 (6.20)
Thank you,I went to www.fedex.com and exported their SSL cert. I then imported it into SAP via STRUST. However, I still get the same http_communication_error. The XML needs to be posted to this address: 'https://gatewaybeta.fedex.com:443/GatewayDC'
Here is my code:
Note: wf_string contains the XML
CALL METHOD cl_http_client=>create
EXPORTING
host = 'https://gatewaybeta.fedex.com'
service = '443'
scheme = '2'
proxy_host = wf_proxy
proxy_service = wf_port
IMPORTING
client = http_client.
http_client->propertytype_logon_popup = http_client->co_disabled.
wf_user = '' .
wf_password = '' .
proxy server authentication
CALL METHOD http_client->authenticate
EXPORTING
proxy_authentication = 'X'
username = wf_user
password = wf_password.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'POST'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~server_protocol'
value = 'HTTP/1.1'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~request_uri'
value = 'https://gatewaybeta.fedex.com:443/GatewayDC'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Content-Length'
value = txlen.
*CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'SOAPAction'
value = 'https://gatewaybeta.fedex.com:443/GatewayDC'
CALL METHOD http_client->request->set_cdata
EXPORTING
data = wf_string
offset = 0
length = rlength.
CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2.
CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR wf_string1 .
wf_string1 = http_client->response->get_cdata( ). -
SAP BW data in ODS to XML and sending this XML file to 3rd Party
Hi Gurus,
We are having a scenario in which we have to convert our data in ODS to XML and need to provide this XML file to our clients so that they can use this XML file in their 3rd party system.
Now the issue is that i have created ABAP program for converting into XML.
If I execute this program, since i have given path as my Desktop, the converted XML file gets saved on my Desktop.
But the problem is how i can provide this XML file to the client.
Is there any way of converting this XML file to html and send them the URL ......
plz suggest me.... what can be done......
my ABAP code u can see in the following link
Extract SAP BW Data into XML
thanks and regards,
P.Madhusudhan RajuHi,
Pls go through the link below it may help you
http://www.sdn.sap.com/irj/scn/index;jsessionid=(J2EE3417100)ID1537206350DB01670597797729934632End?rid=/library/uuid/8c10aa90-0201-0010-98a0-f071394bc9ae&overridelayout=true
Regards,
Marasa. -
Sending an XML file to a hashmap, using one of the elements as a key?
I am looking for a way to read an XML file to a hashmap.
So far I have learned to use javax.xml.parsers.*; tools to read the XML file
and I can send different elements of the XML file to the screen all day.
here is some snippets of what I'm doing now:
public class GLDefaultLoader {
protected String xmlFileName = "gl.xml";
private Document loadXML(String filename) throws Exception {
filename= "gl.xml";
Document doc = null;
try {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
db.setErrorHandler(new com.abcsinc.fwk.dom.MySaxErrorHandler());
doc = db.parse(new File("gl.xml").getAbsolutePath());
} // after this we do variuos catches
// here Im getting started on my hashmap
private HashMap buildGLDefaultsItems(Document doc) throws IOException,
ParserConfigurationException,
SAXException {
HashMap hashMap = new HashMap();
doc.getDocumentElement().normalize();
System.out.println("Root element of the doc is " + doc.getDocumentElement().getNodeName());
NodeList listOfQueries = doc.getElementsByTagName("glDefaultsItem");
int totalQueries = listOfQueries.getLength();
System.out.println("Total number of Queries : " + totalQueries);----------------------------------------
I think I'm going In the right direction but I'm kinda stuck, wallowing in ignorance maybe, lolfront
-
Send updated xml file to the client with out any request
hi,
I am showing the data in the form of a table ,where the data are taken from a XML file. If i change the content of that XML file, the server should send the updated data to that client page, that means the client page should get refreshed automatically when there is a change in that XML file. I dont have any idea to implement this requirement.This is very urgent. Any suggestion would be appreciated. Already i have referred www.pushlets.com but that is not so clear. so pls............
With regards
ParameswaranThe client is not supposed to know the server. You will need to have a periodic refresh. :)
-
Crate XML file and send that XML file from R3 to SIBEL
Hi Friends,
Is SAP provided any idoc type and Message type for Goods Receipt (MIGO)??
My requirement is to create XML file having 4 fields from MIGO then that XML file to be display in SIBEL system. Can anybody help me how can I do this.Hi Mohanty,
hope it can help you.
http://www.sapfans.com/sapfans/forum/intface/messages/4062.html
Try cl_xml_document class, and also look at cl_ixml class factory.
Regards,
David -
Hello,
Please, help me.
I am depending on this query working fine to complete a academic task.
On the Oracle xml database Express version 11.2.0.2.0 I used data from wikipedia to populate my table of XML files and W3C use case as a query model (XQuery and XPath Full Text 1.0 Use Cases).
I have a table with 26.416 split xml files into some xml columns, it is about 512 MB.
CREATE TABLE tb_wikipedia_inex (DOC VARCHAR(30) NOT NULL,
XML XMLTYPE,
PRIMARY KEY (DOC)
I want to perform a query (full text) on all those files but when I execute a xquery it retuns nothing or warnings. Unfortunatelly I understand nothing from trace file.
SQLPLUS:
XQUERY fn:collection("oradb:/HR/TB_INEX2009")//article//language [ora:contains(., "java") > 0]
TRACE FILE:
System altered.
Elapsed: 00:00:42.08
Session altered.
Elapsed: 00:00:00.00
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
Elapsed: 00:00:00.05
Execution Plan
Plan hash value: 1500681423
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
Time |
| 0 | SELECT STATEMENT | | 8168 | 16336 | 29 (0)|
00:00:01 |
| 1 | COLLECTION ITERATOR XMLSEQ FETCH | XMLSEQUENCEFROMXMLTYPE | 8168 | 16336 | 29 (0)|
00:00:01 |
| 2 | SORT AGGREGATE | | 1 | 2 | |
|
|* 3 | COLLECTION ITERATOR PICKLER FETCH| XMLSEQUENCEFROMXMLTYPE | 408 | 816 | 66 (57)|
00:00:01 |
Predicate Information (identified by operation id):
3 - filter(SYS_XMLCONTAINS(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(SYS_XQEXTRACT(SYS_XQCON2SEQ(VALUE(KOKBF$
,'/language/text()'),1,50),50,1,0),'java')>0)
Note
- Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
How can I execute xquery over a bunch of xml files to obtain xml data?
Regards,
DaianeHello,
I was trying to find what is the problem, but without success.
The most simple test don't work.
So, I created a new table with few xml files to reproduce the query.
Below are my scripts:
XML COLUMN SQLPLUS
CREATE TABLE HR.tb_xml (DOC VARCHAR(30) NOT NULL,
XML XMLTYPE,PRIMARY KEY (DOC))
CREATE INDEX HR.Ixml_tb_xml ON HR.tb_xml (XML) INDEXTYPE IS XDB.XMLINDEX PARAMETERS ('PATHS (INCLUDE(//article
//article/physical_entity/communicator/person/compiler/causal_agent/language))')
CREATE INDEX Itxt_tb_xml1 ON HR.tb_xml (XML) INDEXTYPE IS CTXSYS.CONTEXT;
Shell:
nohup sqlldr daiane/daiane DIRECT=false PARALLEL=false control = load_xml.ctl;
XML TABLE SQLPLUS:
create table livros of XMLTYPE;
Shell:
nohup sqlldr daiane/daiane DIRECT=false PARALLEL=false control = load_xmltb.ctl;
XML Files:
https://www.dropbox.com/sh/sn26jq6fjoi4635/0wjJI6tT4h
Queries:
for XQUERY fn:collection("oradb:/HR/TB_XML")//article/physical_entity/communicator/person/compiler/causal_agent/language/writer/header/categories/category [ora:contains(., "PHP") > 0]
XQUERY fn:collection("oradb:/HR/TB_XML")//article/physical_entity/communicator/person/compiler/causal_agent/language/writer/header/title [ora:contains(text(), "PHP") > 0]
for XQUERY fn:collection("oradb:/HR/LIVROS")//article/physical_entity/communicator/person/compiler/causal_agent/language/writer/header/categories/category [ora:contains(., "PHP") > 0]
XQUERY fn:collection("oradb:/HR/LIVROS")//article/physical_entity/communicator/person/compiler/causal_agent/language/writer/header/title [ora:contains(text(), "PHP") > 0]
What is wrong with these queries?
Regards,
Daiane -
Send a XML file using the mail adapter
HI ,
I have to send an incoming xml message as a attachment in the mail using mail adapter .
how can I achieve this .
Thanks
NikhilHi Nikhil,
Just check with this blog-
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Creating mails with attachments from flat text files
Hope this helps..
Regards,
Moorthy -
Error while sending a text file to client as attachment
I want to download a file on clicking a button. Here is my button code
<input type="button" onClick="showdownloadwindow()" value="Download My file">
The java script showdownloadwindow() should invoke a jsp that has code to construct the text file to be downloaded
Here is the javascript function
<script>
function showdownloadwindow()
var url = 'http://<%=request.getServerName()%>'+':'+<%=request.getServerPort()%>+'/downloadtextfile.jsp';
window.open(url,"","");
</script>
the downloadtextfile.jsp looks something like this
<%
response.setContentType("text/plain");
response.setHeader("Content-disposition","attachment; filename=myfile.txt" );
BufferedOutputStream bos = new BufferedOutputStream(response.getOutputStream());
String temp="Put some text string for now";
bos.write(temp.getBytes());
bos.flush();
bos.close();
response.flushBuffer();
%>
i have two problems
1. when the button "Download My file" is clicked a separate window is opened and then the save file dialog box appears. How can I change my code
so that it only shows download window only ( not another browser window)
2. myfile.txt contains some error in addition to the temp string
Here is the error from myfile.txt
<BR><H3>Original Exception: </H3>
<B>Error Message: </B>SRVE0199E: OutputStream already obtained<BR>
<B>Error Code: </B>500<BR>
<B>Target Servlet: </B>/downloadtextfile.jsp<BR>
<B>Error Stack: </B><BR>
java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
<BR>
at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:467)
<BR>
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:170)
<BR>
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:163)
<BR>
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:217)
<BR>
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:149)
<BR>
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:117)
<BR>
at com.ibm._jsp._downloadtextfile._jspService(_downloadtextfile.java:93)
<BR>
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88)
<BR>> Channel FILE_TLE_Sender_SalesOrder_CC: Empty document found - proceed without sending message.
> Can someone tell me why this error is happening?
Maybe your source file is empty?
This is exact what the error message says. -
Why can't I send a Keynote file as a male attachment?
When I try to attach my file in macmail I get a safari error message.
a male attachment, huh.
I'm goiing to assume Mail, but hey, that first one was the best mispelling I've seen all day.
Keynote files are specialized folders called Packages. Inside each are all the items you have placed in your presentation, as well as all the supporting files (textures, backgrounds, 3d graph stiff, etc) {uh... 'stuff' I mean to say 'stuff'. Honest}
As such, you cannot mail it without compressing it.
Something else to consider is whether or not the other party has Keynote as well. If they don't then mailing the presentation becomes a moot point because they won't be able to open it. If they don't have Keynote, and you want to share for collaboration, then you will have to export it as a pdf or as a Quicktime movie. A Quicktime movie with all the various transitions and builds can be quite large, so bear that in mind when it comes to using email to share it.
Gerry. -
Send and Receive an xml file over SOAP adapter
hi,
I want to send an xml file as an attachment over SOAP adapter and Response also should be file.
Can anybody tell the exact solution.
Useful responses will be appreciated
Thanks
Jaideep JainHi Jaideep,
Yes you can send the any file throgh SOAP adapter by selecting the Keep Attachments option.
For your requirement you can go throgh the following link
Re: Attachments in SOAP adapter
http://www.w3.org/TR/SOAP-attachments
http://www.theserverside.com/tt/articles/article.tss?l=SendingAttachmentsWithSOAP
Regards
Sridhar Goli -
Sending and Retrieving XML files as soap attachments
How do I send an XML file as an attachment and then retrieve it as an XML file from soap attachment.
I am able to send it as an xml attachment but i cannot retrive it as an xml file.
Plz help me out in this regard.
Its kinda urgent...How do I send an XML file as an attachment and then retrieve it as an XML file from soap attachment.
I am able to send it as an xml attachment but i cannot retrive it as an xml file.
Plz help me out in this regard.
Its kinda urgent...
Maybe you are looking for
-
Adding custom column to a user matrix
Hi all I have a little problem When i create my matrix i add columns according to how many ship to's i have from there if i have 3 ship to's three columns are created with the shipto Name as the title. My problem is The ship to itself length is > 10
-
I am using the Move/Copy command in InDesign 5.5 and it seems to not be accurate. I am duplicating a line a set distance, 1 in, and once I get out to 12 inches, I am losing about 1/32 of an inch. I print it and then measure the distance from the fir
-
Help - Can't create an iTune's Store Account
Hi there, I am desperately trying to create an iTunes Store account but am not to do so. I keep getting an error message saying I do not have a valid US or UK address. I currently live in the UAE (United Arab Emirates), but can't seem to find it as o
-
Cannot access "Configure User Directories"
Hi Gurus I am getting this error " you do not have enough credentials to...." when i click on "Configure User Directories" on user management console. hyperion shared services ver 9.3.1. Could you help!! Thank You Kumar
-
File IO basics more than 1 problem with streams any help?
Have console program that i've built up in steps from reading args from the command line and displaying the text to now wanting to learn to read and write to a disk file. i know i have a number of errors but believe it's down to something i am not un