Need URL for calling File adapter
Hi All,
I have posted this question earlier.but I cl'd not get the response. One more time I am checking my luck.
How can I call File adapter ( may be sender or receiver but it should be file) through URL?
Thanks
Hi,
this is not possible in standard - write your own adapter for it
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>
Similar Messages
-
Need url for info on msi 6905 master, which is a slot1 adapter on m/board GA6 MM
need url for info on an msi 6905 master slot1 adapter(cpu holder)
http://www.msi.com.tw/program/support/download/dld/spt_dld_list.php?kind=1&CHIP=17&NAME=Archives
you have the number wrong some were
6905 is to high a number for a slot 1 board -
Required Changes in FCC Paramenters for Sender File Adapter.
Hi
I am Doing File-File Scenario.I am using FCC in the Sender File Adapter. I have defined the structure as below.
My Source Structure
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Source xmlns:ns0="http://city.net/filecopy">
<Message>
<Id>123</Id>
<Head>
<Id>123</Id>
<Filename>test.xml</Filename>
</Head>
<Body>Helloworld</Body>
</Message>
</ns0:MT_Source_FILE>
So for the above structure, I have defined the FCC Parameters as
Document Name: MT_Source (Message Type)
Document Namespace:http://city.net/filecopy(Namespace)
Recordset Name: Message (root node)
Recordset Structure: Message,1,Head,1
Recordset Sequence: Ascending
Recordsets per message:1
Keyfield Type: string
In the Table Rows I have defined
Message.fieldFixedLengths: 3,10
Message.fieldNames: Id, Body
Message.fieldSeparator: ,
Message.endSeparator: 'nl'
Head.fieldFixedLengths: 3,8
Head.fieldSeparator: ,
Head.endSeparator: 'nl'
Head.fieldNames: Id, Filename.
My Input Text file
123,Helloworld
123,text.xml
I am Getting Output as
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_Source xmlns:ns="http://city.net/filecopy">
- <Message>
- <Message>
<Id>123</Id>
<Body>HelloWorld</Body>
</Message>
- <Head>
<Id>123</Id>
<Filename>test.xml</Filename>
</Head>
</Message>
</ns:MT_Source>
I should get Body field after Head Structure as in the Source Structure, So Please what changes do I need to do in the Parameters Specified above to get the desired Output.
So How should I define the FCC Paramenters For Sender File Adapter ?
Any Help Would be Appreciated.
Regards,
VarunHi Everyone,
I could Succeed to some extent.
I have defined the parameters as follows
Recordset Structure: Message,*,Head,1
Key Field Name: KZ
Key Field Type: integer
In the table, I defined the Parameters as
Message.fieldFixedLengths:1,3
Message.fieldNames:KZ,Id
Message.keyFieldValue:1
Message.keyFieldInStructure:ignore
Message.fieldSeparator:,
Message.endSeparator:'nl'
Head.fieldFixedLengths:1,3,8
Head.fieldNames:KZ,Id,filename
Head.keyFieldValue:2
Head.keyFieldInStructure:ignore
Head.fieldSeparator:,
Head.endSeparator:'nl'
Message.fieldFixedLengths:1,11
Message.fieldNames:KZ,Body
Message.keyFieldValue:3
Message.keyFieldInStructure:ignore
Message.fieldSeparator:,
Message.endSeparator:'nl'
My source text file
1,123
2,123,test.xml
3,Hello World
my output is
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_Source xmlns:ns="http://city.net/FileCopy">
- <Message>
- <Message>
<Id>123</Id>
</Message>
- <Head>
<Id>123</Id>
<Filename>test.xml</Filename>
</Head>
</Message>
</ns:MT_Source>
I got the output almost correct except I am not getting the value in the Body
Any help would be appreciated.
Please correct me If I am wrong.
Regards,
Varun
Edited by: Varun on Sep 2, 2008 12:06 PM
Edited by: Varun on Sep 2, 2008 12:15 PM -
FCC Paramenters for Sender File Adapter
hi
I am using FCC in the Sender File Adapter. I have defined the structure as below. Fields ID, Filename, Values will be generated at Runtime as I have defined Used Defined Funtions for Both.
Only I will Pass the value in Body. i.e "Hello".
So How should I define the FCC Paramenters For Sender File Adapter ?
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_Source_FILE xmlns:ns0="http://city.net/FILEtoHTTP">
<Message>
<Id>123456</Id>
<Head>
<Id>123456</Id>
<Filename>sample.xml</Filename>
</Head>
<Body>hello</Body>
</Message>
</ns0:MT_Source_FILE>
In the source text file, Do I need to send only "Hello" value because ID and filename will be generated at runtime?
Regards,
Varun
Edited by: Varun on Sep 1, 2008 6:00 PMHi,
Refer this link:
http://help.sap.com/saphelp_NW04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Regards,
Nithiyanandam -
Database does not contain a URL for the file
How do I find out what file/update this is:
The file digest/hash does not exist in the SUSDB, but I have no idea looking at the windowsupdate or softwaredistribution.log what file it is referring to.
SELECT [FileDigest]
,[DigestAlgorithm]
,[AdditionalHash]
FROM [SUSDB].[dbo].[tbFileHash] fh
WHERE fh.FileDigest =0x15B82F101E79C1E2181E43CC8A3CC137CBFDC91D
or fh.AdditionalHash =0x15B82F101E79C1E2181E43CC8A3CC137CBFDC91D
0 rows found
Softwaredistribution.log
2014-10-07 23:07:04.319 UTC Error w3wp.5 ClientImplementation.GetExtendedUpdateInfo System.ArgumentException: The database does not contain a URL for the file 15B82F101E79C1E2181E43CC8A3CC137CBFDC91D.
Parameter name: fileDigests
at Microsoft.UpdateServices.Internal.DataAccess.ExecuteSpGetFileLocations(Byte[][] fileDigests)
at Microsoft.UpdateServices.Internal.DataAccessCache.GetFileLocations(Byte[][] fileDigests, DataAccess da)
at Microsoft.UpdateServices.Internal.ClientImplementation.GetExtendedUpdateInfo(Cookie cookie, Int32[] revisionIds, XmlUpdateFragmentType[] fragmentTypes, String[] locales)
at Microsoft.UpdateServices.Internal.ClientImplementation.GetExtendedUpdateInfo(Cookie cookie, Int32[] revisionIds, XmlUpdateFragmentType[] fragmentTypes, String[] locales)
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
at System.Web.Services.Protocols.WebServiceHandler.Invoke()
at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)How do I find out what file/update this is:
Hows about.. rather than chasing a rabbit down the hole doing whatever you think you're doing...
We start with this: What problem is it that you're actually trying to solve?
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
Dynamic File Name for Receiver File Adapter
Hi All,
How can we use dynamic name for Receiver file adapter?
Can anyone help.
Thanks in Advance
ChemmanzHi Chemmanz,
The dynamic filename generation concept is as follows.
In your filename field. just give a variable with % symbols. (eg: %file% ).
Now, under the option Variable Name Substitution, you can give how the value has to be created.
It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
For the former, your give
message:interface_name ,etc
and for the payload part you give,
Payload: "your element root which u wanna acecss"
Just check this link out,
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
And read the contents under variable substitution and it will help you understand the concepts better.
If you have any clarifications, do get back,
Regards,
Bhavesh -
Dynamic URL for HTTP receiver adapter
Hi all,
when the XI send the http request to the target system, the format maybe like this:
header + body the body is including: Prolog, payload and Epilog
here is about the target system have a 'input' parameter(maybe string type)
is it possible to pass the 'head + body' these value(or maybe the whole http request message) into input
i mean is it possible to set the dynamic URL for http receiver adapter like this:
http://host:port/path?input=<the header and body>
i have searched the blog Dynamic Configuration of Some Communication Channel Parameters using Message Mapping
Link:[/people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping]
and the similar threads in the forum
please give me some advice
thanks in advanceWhen a HTTP server requests the whole message as URL parameters, then I assume that the server also requests an HTTP GET, which is not supported by XI.
Could you check this?
Regards
Stefan -
Failover solution for Sender File Adapter (FTP)
Hi guys,
I have a scenario FTP->Idoc. Is it possible within PI to create a functionality, that if a connection to one FTP fails, it will switch to another FTP?
Thank you,
PeterHi,
You may maintain two seperate Sender adapters with seperate FTP server and fix the polling interval to sequence the calling of file.
But if the file is available on both the FTP servers then there will be two calls always.
So you need to maintain the file in any one of the FTP server.
But this is just the manipulation, not the precise solution. You may go for BPM also
In communication channel there is no such feasibility. Probably you may need to go for customized adapter modules.
Thanks
swarup
Edited by: Swarup Sawant on Sep 2, 2008 11:42 AM -
Call File Adapter Externally and Pass on File name
HI experts,
We have a requirement where we need to call a file adapter externally to poll for a file.
The File name needs to be passed on to the called Adapter and the adapter will poll for that particular file.
Once it polls we will need to stop it -- in other words the the adapter will poll only when we call it externally.
Any form of inputs / help on this will be greatly appreciated. We will initiate this possibly from a BPM.
Many Thanks,
HimadriHey buddy ..
I agree with Praveen... you cannot dynamically change the filename in the sender File CC..\
regards,
arvind R -
Hi! I need steps for HTTP Receiver adapter
My scenario is like this:
HTTP(HTTP Sender adapter)->XI->File(File adapter).
For this Iam sending the data as payload in the body of HTTP. Now What am i going to do is the opposite of above scenario:
File(FileAdapter)->XI->(HTTP Receiver Adapter)HTTP.
I would like to know what are the steps to transfer a file(xml) from File adapter to XI and from there to Http.
How to send the data using File adapter. Please suggest me some steps.
Hoping a quick response!!!
Thanks in advance!Hi Datta,
For a HHTP -> XI -> FILE Scenario:
DESIGN:
1. Create DataTypes for source and Destinations. Create elements for all the text fields of your HTTP Client so that they can all be mapped into the destination file
2. Create MessageTypes for the two datatypes.
3. Create Message Interfaces. The One for HTTP is the sender, Asynchronous ( as no response is expected) and one for File is receiver, asynchronous.
4. Do the mapping. It will be mostly a one to one mapping of the fields.
5. Create the Interface Mapping.
Configuration:
1. Import your Business System under your Configuration Scenario.
2. Create 2 communication channels. One for Http as a sender and one for File as a receiver.
Check these links for the configuration part.
http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
3. Do the Receiver Agreement for file. HTTP doesnt need a sender agreement.
4. DO the Receiver Determination and Interface Determination.
Weblog which talk about the same scenario:-
/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - although this weblog is
aimed at explaining the sync-async bridge.. Sriram has taken http-to-file scenario as the example
(use case) and explained it...
Check this SDN tv demo, it has detail of HTTP adapter setup.
https://media.sdn.sap.com/SDNTV/main.asp?mediaId=107
Refer to this link for adapter settings.
http://help.sap.com/saphelp_nw04/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm
You should also have a HTTP client to send message to XI. In the connecting parameters to XI u have to use the URL in the pattern mentioned by Alex. U have to give all the configuration details in the URL.
Regards,
Abhy
Message was edited by: Abhy Thomas -
Variable Substitution settings for Receiver File Adapter
Hi All,
I wanna use variables for File Name Sheme in the File Access Parameters.I had used by enclosing the variable names within %. When i wanna substitute values for those variables, it is given in the documentation(help.sap.com) that v need to set the Enable indicator. only after setting the indiactor, v can use the variables and can then enter the values for those variables in a table. but i can't see either the indicator or the table in my editor. how can i provide the values for the variables used in file name scheme/Target Directory. and for ur information,i'm using sp12.
any help wud b appreciated.
thnx
AnilHi Anil,
Please check out the following link ...
Re: Variable substitution - Pseudo Path Variable - file adapter
Re: Variable substitution problem
Regards,
Raj -
Need Help-SOA 11g File Adapter unable to delete input file and its crashing
Hi All
Please find the details below:
1. We have created a simple SOA composite to Read file from an input directory, archive the file in an archive directory using Inbound File Adapter Read
and then use Outbound File Adapter Write to move the file to a output directory.
2. File Adapter needs to delete the file after successful read/retrieval.
3. We are using the "Use Trigger File" for invoking the file adapter. This is a new feature in SOA 11g
4. Also we are using the option of reading the file as an attachment as we are not doing any transformation in the composite
Issue Details_
1. When the trigger file is put in the input directory for the first time, the File Adapter reads the file, archives it and moves it to the output directory
2. However it does not delete the input file from the input directory and raises Fatal Exception mentioned below:
[*2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]*
[userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC PostProcessor::
Delete failed, the operation will be retried for max of [0] times
[2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]
[userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC [[
BINDING.JCA-11042
File deletion failed.
File deletion failed.
File : C:\Dibya\AttachmentTest\InputDir\TestFile3.txt could not be deleted.
Delete the file and restart server. Contact oracle support if error is not fixable.
If any one has faced similar issues, kindly provide pointers on how to resolve it.
Regards,
DibyaHi,
Using the file adapter, you can poll from multilple locations...
Keep the following property in your .jca file
<property name="DirectorySeparator" value="," />
While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
Hope this helps...
Thanks,
N -
Dynamic Filename for Reciever File Adapter
Hi All,
Can anyone answer to some of my quesries which are as follows
a) . Currently Iu2019m working on an IDOC-to-File scenario in which I need to create zip file on file server by using a payload value. I
search sdn and found a bean that can be used to create zip file which is PayLoadZipBean. Iu2019m referring the below weblog for creating file name dynamically.
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
My question is can anyone explain or provide me the step by step procedure in detail for the prerequisite which are mention in the weblog, i.e.
u201CAssuming that the following have been done and configured.
1.A value table has been created in the ABAP stack of the WAS in which XI is running and the entries as the file types, which will be written into the files are maintained.
2.Create a number range object in SNRO transaction in the same ABAP stack which will be having the sub objects as the file types maintained in the value table with their number ranges maintained. u201C
b) .Can we use all mapping techniques (ABAP, Java, XSLT and Graphical) in a single scenario if yes then how to trigger them and which one executes much faster?
c) .Can we trigger an RFC asynchronously and how?
Your help is highly appreciated and
Regards
Faisal
Edited by: Abdul Faisal on Nov 19, 2009 8:53 AMa) . Currently Iu2019m working on an IDOC-to-File scenario in which I need to create zip file on file server by using a payload value. I
search sdn and found a bean that can be used to create zip file which is PayLoadZipBean. Iu2019m referring the below weblog for creating file name dynamically.
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
My question is can anyone explain or provide me the step by step procedure in detail for the prerequisite which are mention in the weblog, i.e.
Hi Use dynamic configuration UDF to create file name dynamically.its very easy search in sdn you will find the code,even you can create file directory name dynamically.
In receiver file communication channel if you use PayLoadZipBean it will do Zipping of your message,for this you need to add this bean name additional parameters section in Receiver Channel.
If you want to create zip file based on pay load value check the condition at mapping level based on that call the service,if you not required zip file in other case for that you need to create one more file receiver communication channel.
u201CAssuming that the following have been done and configured.
1.A value table has been created in the ABAP stack of the WAS in which XI is running and the entries as the file types, which will be written into the files are maintained.
not claer,can you explain bit more
2.Create a number range object in SNRO transaction in the same ABAP stack which will be having the sub objects as the file types maintained in the value table with their number ranges maintained. u201C
b) .Can we use all mapping techniques (ABAP, Java, XSLT and Graphical) in a single scenario if yes then how to trigger them and which one executes much faster?
We can use all mappings single scenario,how mean just add the mapping names in Operation/Interface mapping.
As per my understanding Message Mapping works faster then JAVA then XSLT then ABAP,but it depends on how many lined of code you written.
c) .Can we trigger an RFC asynchronously and how?
Yes we can use RFC Asynchronous,search in sdn you will find it,if unable to find let me know.
Regards,
Raj -
Dynamic URL for Recv HTTP (Adapter spec attribute enabled)
Hi,
I need to have a dynamic URL for one of my cases been worked. the URL is
httlp://:<host>/perform/XTA?serv=*&action=start
the event "action" can accept either start/stop or restart. i wanna to control this dynamically and went for recv http enabled with adapter specific message attributes. here i had enabled the check box "URL" and in parameter 1 i had given the name as "action".
in my message payload the "action" will be start/stop or restart which is handled by UDF for which the code is below:l
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey trig = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/HTTP", "UrlParamOne");
conf.put(trig,action);
return "";
this udf is mapped to the root node of the target...but when execute the case i get the following error
"Dynamic Header - Missing Message Attributes: URL/HTTP Destination"
when i execute the url
httlp://:<host>/perform/XTA?serv=*&action=start
in browser it works fine and also with fully qualified name in http recv works fine but not with dynamic settings.
any help on it pls?Hi Prabhu,
Enable Adapter-Specific Message Attributes(ASMA) in receiver HTTP channel.
Dont enable checkboxes for "URL or HTTP Destination".
Enable checkbox "Apply URL Parameters"
for parameter1 textbox give value action
Regards,
Praveen Gujjeti -
Hi. I recently uploaded an image file to the business document server through SHDI. I would like to display the image in a picture control on a custom screen, but I don't want to use a transaction variant or screen variant. So I need to get the URL of the uploaded image. The file name as provided by SHDI is 'SAPIM:TA_VARIANTS_IMAGES//THRIFT_SAV//systemlogo2.bmp'. I also uploaded a gif version. Does anyone know of a method or function module that I can use to get the URL for this image? I tried using DP_PUBLISH_WWW_URL, but that only will get images from the web repository (so far as I can tell). Any ideas? Please note that I am on R/3 version 4.6C. I'm using the load_picture_from_url_async method of class cl_gui_picture to load my image into my custom control.
Thanks,
April KingI solved my own problem. It turns out that I can use methods get_info and get_with_url from class cl_bds_document_set to get my bds image. Sample code was in program SAPRDEMOWORD97INTEGRATION, in case anyone else needs to see it.
- April
Maybe you are looking for
-
Hi, when i do posting in FB01: For first line item for GL a/c - 'GX' profit centre 'PC1' and for second line item GL a/c - 'GY' profit center 'PC2'. After posting for GL account GY profit center automatically changing to 'PC1' of first line item. thi
-
hi i get in my MacPro: An unexpected error occurred (4:190). Your firmware could not be updated, please try again. So which can i do ? Im looking you to forward
-
Pro Tools 7.4 LE compatible w/Leopard?
Anyone heard if Digidesign has pulled their finger out yet?
-
Using InDesign CC, it has been working fine then today when I try and drag a type box it automatically goes to 21" and I can not type into it.
-
Extending PlainSocketImpl's functionality
Hi, I'm trying to achieve the following. Make JDBC drivers use a "somewhat" customized socket implementation. In particular, I want them to use sockets where I can control the SO_TIMEOUT. This kinda rules out extending the Socket class because I don'