Attachment support in SOAP in OC4J
I have a question on OC4J 9.0.3 about handling attachments along with a SOAP request or response message. I am evaluting the use of Microsoft SOAP Toolkit 3.0 in building a C++ SOAP client. In the SOAP Toolkit 3.0 Microsoft claims that it supports sending attachments along with SOAP request or response message to enhance preformance by reducing the overhead of data encoding. For example, sending a file as an attachment rather than as the body of a SOAP message.
Does OC4J has the ability to such handle attachments?
Thanks,
Edmond
Oracle SOAP is based on Apache SOAP and does support attachments through MIME. Oracle9iAS J2EE Web services build on top of that, does not have support for attachments. To get Oracle SOAP you just deploy the soap.ear that comes with OC4J (<OC4J_Home>\soap\webapps\soap.ear) you should be able to run the standard Apache SOAP 2.3.1 attachment sample - if you are using JDeveloper, the stand-alone OC4J comes pre-configured with Oracle SOAP.
The attachment sample is only included in a full install of Oracle9iAS, not with the stand alone OC4J. So, if you don't have a full Oracle9iAS install, the best way to get the attachment samples is to take the samples that you can download with Apache SOAP 2.3.1 on xml.apache.org/soap - see http://xml.apache.org/soap/docs/guide/attachments.html for doc. Bear in mind the long term support for Oracle SOAP is being deprecated in favour of JAX-RPC and the goal will be to use that standard's attachment support.
Mike.
Similar Messages
-
How to install Apache Soap in OC4J?
I used Soap in Tomcat an couple of weeks ago. I try to use Soap in OC4j. I can not find any instruction in soap web site. Could you please tell me if you know how to do it?
Thank you.
MarianHi,
to deploy the Apache SOAP (Axis I guess) you can do the following (this deployment is to the global application of OC4J):
Add to application.xml:
<web-module id="axis" path="C:\\TEMP\\xml-axis-alpha3\\webapps\\axis" />
Add to http-web-site.xml or default-web-site.xml (depending if you are running 1.0.2.2 or the pre-release of OC4J v2.0):
<web-app application="default" name="axis" root="/axis" />
You can now access the app using the following URL: http://localhost:8888/axis
Thanks,
Andy -
I am looking for some support for SOAP. I was thinking of either three options.
1. A proper soap dish
2. An old saucer
3. Just leave it next to the basin.
Any other thoughts?
P.S. How many responses will it take before this thread is deleted? I say 6.Fill the sink and leave the SOAP in it. Eventually it
will be encrypted.Right, thermodynamics in action.
There's no. 6 -
Hi everyone,
I am having difficulty in attaching files to SOAP messages. Anyone who has a knowledge
about how to programatically attach files to SOAP. Thank you..
Have a good work.Thank you for your interest. I think that I wrote the code which adds attachment to SOAP messages.
However, I think that I need a web service which accepts an attachment. Do u know any web service
which accepts an attachment? -
Does Flex Builder 3 have support for Soap 1.2?
Does Flex Builder 3 Data Services support Soap 1.2?
I'm using Flex Builder v3.0.205647. I'm trying to import a
Web Service (WSDL) through the Data Services...but I'm seeing that
Soap 1.2 is not supported (only Soap 1.1). Are there any plug-ins
and/or updates that would allow me to connect to a Soap 1.2
service? If not, is this planned for the future?
Thanks!Pandu,
OBPM 10g doesn't support SOAP 1.2 binding.
Edited by: 4dyomi on Nov 20, 2009 11:41 AM
Edited by: 4dyomi on Nov 20, 2009 11:42 AM -
Recurring Journal Entry Attaching Supporting Documentation
Can someone tell me how to attach supporting documentation to a recurring journal so that it will show on each of the monthly entries. Similiar to what can be done on a manual journal.
Hello,
Supporting documentation means you mean to have long notes for a entry or any word document ??
For long notes you can use Long text field.
Later case Standard sap dont give any option unless you go for any Z Program wherein
you can have this kind of functionality.
Below is a link which talks about linking Document in Sales order.
How to Attach Document in Z Transaction
Hope this helps -
SOAP with Attachment Support in Web AS Java
Hello,
I want to write an extension to an existing Java application running on Web AS to take a PDF (which is a binary object in the context) and submit it using a Web Service call to a Web Service running on a WebSphere App Server. My idea is to use SOAP with attachments to do this. I know how to create a simple Web Service call with the NWDS, but I am not so sure about a Web Service call with an attachment.
1) Is SOAP with attachments supported in Web Java/NWDS?
2) Does it require a specific Web AS 6.40 SP Stack?
3) Has anyone used this before? Is there anything I need to consider (e.g. encoding of the attachment)?
4) Is there a maximum file size for the attachment?
You help is appreciated. And if I get it running I can show it at TechEd
Cheers!
MatthiasI found what causes the problem.
I use resource bundle to handle i18n and one of bundle is myapp_zh.properties for Chinese locale. In browser I add Chinese [zh] in Language Preference then the web page should display Chinese character.
What puzzles me is that encoding of the page with Chinese characters is Chinese Simplified (GB2312) rather than UTF-8. Tomcat correctly sets page Encoding to UTF-8 since I specify <%@ page language="java" contentType="text/html;charset=UTF-8" %> in each JSP file. Why Web AS ignores this and returns Chinese character in GB2312?
Thanks a lot
John -
How to attach files in soap response?
IS there any way to attach a file in soap response? how to do that??:|
Probably MTOM is what you need:
http://edocs.bea.com/wls/docs100/webserv/jws.html#mtom
But this is apparently not doable with ALSB (it would be supported just with regular web services):
http://forums.bea.com/thread.jspa?threadID=300002302
Note the file naming would need to be done by the SOAP client:
http://www.jroller.com/gmazza/date/20071102 (Look at Steps #6 and #11 and Note # 7)
HTH,
Glen -
Writting attached file from SOAP message to a FTP folder
Hi everybody,
Our scenario is an interface which receives a SOAP message with a file attached. As we don't need to do any mapping into the attachment, we are supposed to deliver that file as it is into a FTP folder.
Our problem is that we cannot find how to configure File comm channel to write the attached file and no the SOAP XML message which is what we are getting now. Any help on this?
Thanks in advance.Hi
check these forum posts
SOAP with attachments
Mail Sender Adapter - Attachment Handling
Regards
Vishnu -
SAP BW 3.5 support also SOAP 1.2
Hello,
I know that SAP BW 3.5 supports SOAP 1.1 but does it also support SOAP 1.2.
Or maybe anybody an Idea where can I read it?
Thanks
HenningHello Prasad,
For SAP BW3.5 ([click for details|https://websmp105.sap-ag.de/~form/handler?_APP=00200682500000001303&_EVENT=DISP_NEW&00200682500000002804=01200314690900000192])
End of mainstream maintenance 31.03.2010
End of extended maintenance 31.03.2013
Please see the following links for more details from service market place,
[SAP Maintenance Strategy|https://websmp105.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000611452&_SCENARIO=01100035870000000202]
[Customer-Specific Maintenance |https://websmp105.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000611452&_SCENARIO=01100035870000000202]
Also see [Product Availability Matrix |https://websmp105.sap-ag.de/pam]
Thanks
Chandran -
Problem: Original Attachment Name from SOAP Sender changes to attachment-1
Hi everybody,
we have a scenario where a SOAP sender receives a xml message describing several documents. Each document has a mime type and a file name, size, md5 checksums etc as attributes.
The documents are send as attachments with the same Web service in SWA(SOAP with attachment style).
The web service calls an ABAP proxy provider class in a R/3 backend.
The ABAP proxy class will save the attached documents for further processing and must use the original document names.
At the soap communication channel monitoring(Java Stack) we still see the original attachment names in the message content tab.
At the Integration Server(sxmb_moni) the attachment name changes to attachment-1, attachment-2 and so on.
Using the method
IF_AI_ATTACHMENT ->GET_DOCUMENT_NAME
in the provider ABAP proxy class returns the name attachment-1.
We can see that there is a mapping of the new attachment-1 name to the old, original name in the manifest section of this message on the Integration server.
Is there a way to access the manifest section at a provider ABAP proxy class? Or otherwise a PI configuration setting to preserve the original attachment names.
Thanks a lot,
Heiko
=> PI 7.1 SP9Hi Stefan,
(I was hoping you would find that thread ...)
I see a good reason why the attachment names are changed as the PI message protocol sends the main document as an attachment as well. So no problem with that because the information of the mapping old to new names still exists in the manifest part and is visible at the sxmb_moni.
We see a manifest part like this (Sorry cant post the whole xml doc as the formatting for longer messages isn't working in the forum)
<SAP:Payload xlink:href="cid:4cc43edd-839f-423f-b7c6-7e44294d663a_sig.p7m">
<SAP:Name>attachment-1</SAP:Name>
<SAP:Description>attachment</SAP:Description>
<SAP:Type>ApplicationAttachment</SAP:Type>
</SAP:Payload>
The (red) cid entry is the original file name. This manifest is from the sxmb_moni in the r/3 backend. So all the information is there.. The question is how to retrieve this information .. Any idea?
Best Regards,
Heiko Bergmann -
Send attachment with receiver SOAP adapter
Dear Guru's,
We have created a scenario SAP ERP (ABAP Proxy) -> PI 7.0 -> (Webservice) OSB.
In the ABAP Proxy have we attached a file (jpg). In the SXMB_MONI we see first the file (named attach), and second the MainDocument. It seem's this is the wrong sequence.
We tried to correct this with AF_Modules/PayloadSwapBean in the receiver SOAP adapeter, but it does not work.
There are blogs who tells about how to configure the parameters. We did it as follows:
AF_Modules/PayloadSwapBean swap1
AF_Modules/PayloadSwapBean swap2
swap1: swap.keyName = payload-name
swap1: swap.keyValue = attach
swap2: swap.keyName = payload-name
swap2: swap.keyValue = MainDocument
In the communication channel audit log the swap is processed succesfully, but we don't see nothing changing in the message sequence.
Can somebody please help me with this issue?
Kind regard,
Jeroen JungHi Stefan,
The main thing at this moment is to change the sequence of the payload and attachement. PI puts the attachement first and than the payload and in that sequence the receiver application can't deal with it.
This is a multipart related message and in the header it refers to the image (image/jpeg) first instead of the payload (application/xml).
As you can see in the first message we have used PayloadSwap Adapter module in the receiver SOAP Communication Channel to change this sequence and in the Audit Log of the SOAP CC we can see that it does SWAP functionality succesfully but the result is the same and nothing happens.
Here below you can see the result of a http snapper grabber:
POST /EnterpriseContentManagement/ProxyServices/PS_EnterpriseContentManagement_v1 HTTP/1.0
Accept: */*
Host: localhost:8090
User-Agent: SAP-Messaging-com.sap.aii.messaging/1.0505
CallingType: SA
Content-Type: multipart/related; boundary=SAP_00e371ef-3ca3-11df-9503-001f2966194a_END; type="image/jpeg"; start="payload-9A6BAB4B2FE1273DE10000000A503151 @ sap.com"
Content-Length: 939196
SOAPACTION:
--SAP_00e371ef-3ca3-11df-9503-001f2966194a_END
content-id: payload-9A6BAB4B2FE1273DE10000000A503151 @ sap.com
Content-Type: image/jpeg
*********binary attachment data************
--SAP_00e371ef-3ca3-11df-9503-001f2966194a_END
content-id: payload-9B6BAB4B2FE1273DE10000000A503151 @ sap.com
Content-Type: application/xml
<?xml version="1.0" encoding="utf-8"?>
*********XML Message************
--SAP_00e371ef-3ca3-11df-9503-001f2966194a_END--
Do you have an idea how we can switch the sequence of payload and the attachment? Or why the SWAP functionality doesn't have any result?
Kind regards,
Danke
Jeroen Jung -
File(PDF as attachment)-- XI-- WebService(SOAP with attachment)
Hi i have following Scenerio in my hand,
File>XI>WebService(SOAP)
Kindly help me in implementing the Following Scenerio;
I need to attach PDF to File Adapter as PayLoad or give it to File Adapter as Attachment which in turn send this data to XI and then XI wud generate WebService having this PDF as attachment.
Kindly Walk me thru all the steps during Configuration and design and do guide me how to test wether this scenerio works or not.
Also tell me abt the WebService i need to use to test the Scenerio.
Thanks.Hi Jeet,
If you want your file adapter to read contents from a PDF file, check out the folloing blog,
<a href="/people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter">Sender File Adapter with PDF</a>
If you want your file adapter to generate its output into a PDF file, then check the following blog,
<a href="/people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter">Receiver File Adapter With PDF</a>
Sriram's blog on FILE to HTTP scenario might of be help to you too. It also deals with Syn / Async Bridge which can be ignored.
<a href="/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi">File to HTTP</a>
Do let us know if you need any further help,
regards,
Bhavesh -
OBPM BPM Studio support for SOAP 1.2 based Proxy services (OSB)
Hi,
I tried to import proxy services from OSB (as external resource). The proxy service is based on the SOAP 1.2 WSDL standard. When BPM studio introspective SOAP1.2 based proxy services, it is givng the following warninigs. Bacause of this i am unable to create a service object. Please help.
Regards,
Pandu
Introspecting...
downloading /sbresource?PROXY/RoutingAndMessagingService/proxy/OnRampService
parsing /sbresource?PROXY/RoutingAndMessagingService/proxy/OnRampService
[Warning] unknown tag 'header' from 'http://schemas.xmlsoap.org/wsdl/soap12/'.
[Warning] unknown tag 'header' from 'http://schemas.xmlsoap.org/wsdl/soap12/'.
checking /sbresource?PROXY/RoutingAndMessagingService/proxy/OnRampService
parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlmessages%2Futilityservices%2Froutingandmessagingservice%2FRoute
analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlmessages%2Futilityservices%2Froutingandmessagingservice%2FRoute
parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlheaders%2FHeaderSchema
analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdlheaders%2FHeaderSchema
parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FHeaderTypes
analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FHeaderTypes
parsing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FSimpleTypes
analyzing http://localhost:7002/sbresource?PROXY%2FRoutingAndMessagingService%2Fproxy%2FOnRampService%3ASCHEMA%2FSchemas%2Finternal%2Fwsdltypes%2Fcommon%2FSimpleTypes
http://www.michaelpage.com/wsdltypes/common/SimpleTypesv1.0 compiled
http://www.michaelpage.com/wsdltypes/common/HeaderTypesv1.0 compiled
http://www.michaelpage.com/wsdlheaders/Headerv1.0 compiled
http://www.michaelpage.com/wsdlmessages/utilityservices/Routev1.0 compiled
[Warning] The binding 'OnRampServiceSOAP' with type 's2:OnRampServicePort'is unsupported. Components will not be generaded for this binding..
'http://www.michaelpage.com/wsdl/utilityservices/routingandmessagingservice/OnRampServicev1.0/' was parsed.
Analyzing dependecies for module 'WS.OnRampService'...
Analyzing dependecies for module 'WS.OnRampService'...
Analyzing Components
Storing Instrospected Types
Introspection completed. Errors: 0, Warnings: 3.Pandu,
OBPM 10g doesn't support SOAP 1.2 binding.
Edited by: 4dyomi on Nov 20, 2009 11:41 AM
Edited by: 4dyomi on Nov 20, 2009 11:42 AM -
Dynamic Disk Attachment Support
Is dynamic disk supported to be attached as data disk? in Windows Azure Pack
I am getting following error even after correct Hashtag
Azure Error:
The operation on virtual machine, template or hardware configuration with id [*] results in use of one or more dynamic hard disks not supported by the specified cloud and fabric capability. Ensure that no dynamic hard disks are required by this operation
and try the operation again. Please contact your system administrator with this error ID.
VMM Error:
Error (23447)
The operation on virtual machine, template or hardware configuration with id [TESTVM] results in use of one or more dynamic hard disks not supported by the specified cloud and fabric capability.
Recommended Action
Ensure that no dynamic hard disks are required by this operation and try the operation again.
Maybe you are looking for
-
Start/stop OAS 10g (9.0.4) instances remotely
Hi, I want to find out if I can start/stop Mid-tier instance remotely. For example, I have Mid-tier installed on RHEL 3.0 server and Infrastructure installed on AIX server. I want to start/stop Midtier instance along with Infrastructure from AIX mach
-
So I bought some new music on my iPhone. I put it on the computer so I could update my kids' iPods and while doing this I got a box that said it couldn't find some of my music. Then it took it off of the iPod and Phone. I also can't use some of th
-
Hello Has anyone worked on creating a report using project cost and project commitment subject area? We have a requirement, where the user wants to see project costs, commitments and the associated invoice and purchase order numbers. This information
-
Multi-Case​-Structure
Hello, what is the best way to create an multi-case structure for checking many logic states in once? I need it for a simple state machine which is controlled by some digital sensors in the way: WHEN DI0; DI2 = TRUE and DI1 and DI3 = FALSE then .....
-
(three-way color corrector) secondary color correction masks not working?
Hi I'm using PP 2014 on Yosemite. Anyone notice (three-way color corrector) secondary color correction masks not working?