HTTP protocol in Sender side
Dear SDN Experts,
May i know can we use HTTP adapter in Sender Side of integration.
Hai,
Ya you can use HTTP adapter in senderside integration.
The Event Sender is a component that is part of the integration technology; it checks
the queue from time to time to get new Business One events and sends an HTTP
request with the event to the integration server. The user can set the time interval to
check the queue of the event sender. In our case, the event sender will detect a
newly added message, i.e. the purchase order, then wrap the sales order information
in an HTTP request and send it to the HTTP adapter of the SAP Business One
Integration Technology.
Check this link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/52b12740-0901-0010-4097-b85d1f5aee2a
regards
Nissy
If this is helpful reward me some points.
Similar Messages
-
How to pass the SIN using a plain http adapter in sender side.
Hi all,
How to pass the SIN(System Identification Number) using a plain http adapter in sender side.
Regards,
Venu.You can set it in a specific HTTP header (as explained here : http://help.sap.com/saphelp_nw04/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm) ...
Rgds
Chris -
Why v r not configuring IDoc & HTTP adapters on sender side
Hi Gurus,
Y v r nt configuring the Idoc and HTTP adapter on sender side.
But on d receiver side v r configuring. Why?
IDoc and HTTP Adapters are built on ABAP stack.That's y v r nt configuring on d sender side.It is the same thing also on d receiver side also.But y v r configuring on reciever side.
Could u guide me.Hi Kumar,
Check this thread for your query
Adapters
IDOC adapter resides on Integration server, so Integration engine takes care of the conversion format from IDOC to XML
but in but XML to IDOC is done by Receiver IDOC adapter
Sachin
Edited by: Sachin Dhingra on Jan 10, 2008 4:03 PM -
Settings if http adapter is sender side?
Hi ALL,
my doubt is if http adapter is sender side how to make settings to before configuring a scenario, because we don't have sender comm. channel, sender agreement.Hi-
Check this help
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
Also check this thread
How to send XML file into XI using sender HTTP adapter -
Can i use combination peoplesoft system and http adapter on sender side
hai
can i use combination peoplesoft system and http adapter on sender side
is their any modifications i have to do on module tab
can any body tell me how to post data to http adapter
is there any application gui is there to post dataHi
can i use combination peoplesoft system and http adapter on sender side
>>>Can you explain further what this means.. You can use HTTP adapter on the sender side.
is their any modifications i have to do on module tab
>>> No module processor allowed for HTTP adapter.
can any body tell me how to post data to http adapter
is there any application gui is there to post data
>>> Check this document. It gives you information on how to build HTTP based web GUI.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
Thanks
Satish -
Http adapter at sender side for synchronous interface
Hi SapAll.
here for one synchronous interface we using http adapter at sender side.
i just want to know on how i can get the sender ip adress or url through which they sending the data.
will be waiting for best asnwer.
regards.
VarmaHttp adapter at sender side for synchronous interface
i cont see any messages in xi producction.
Is LOGGING_SYNC enabled for your production box....also is the problem just about the visibility of the messages or is your scenario itself not getting executed?
At least the sender application might have received some error response if posting message to XI was a failure....also if possible check the message monitoring in RWB if you feel an error has occured.
Regards,
Abhishek. -
Reg:http adapter-sender side
which http client tool is used to send the request if we are using http adapter on sender side?
Hi Chandra,
HTTP: Hyper Text Transfer Protocol is a stateless prtocol to send a request and get a response back on that. For your query is there any specific client used?
Ans: No, you can use any client means the ip address of the system from which you are making request called client and to which you are making request called server. http is nothing but some set of rules to exchange data between two systems.
One more thing to mention is "some jave code is written for http and that is register on W3C" so that different server can connect to each other using it.
See the link below:
http://www.w3.org/Protocols/
Please always Rewards if helpful.
BR,
Alok
Edited by: Alok Sharma on Mar 18, 2008 12:49 PM -
Retrieve and send data to website using http protocol
Hi, I wonder if anyone knows how to use java language to retrieve and send data to internet website using the http protocol.
Take a look at this thread:
http://forum.java.sun.com/thread.jsp?forum=31&thread=310300 -
How to implement a persistent HTTP connection on client side...
Sorry for the inconvenience everyone, but I could really use some help here since I am a total newbie to Java programming
I am trying to implement a persistent HTTP connection on the client side with request pipelining. The way I understand it is that client requests will be sent to the server, which will reply to them back to back, and then the client will read them accordingly. But when I read the server responses, I get only the reply for the first request, and nothing further, when I actually expect it to give me as many responses as the number of requests I ussued. Here is a sample code illustrating what I am trying to do.
====================
import java.io.*;
import java.net.*;
import java.util.*;
public class HttpClient {
public static String host = "www.somehost.com";
public static int port = 80;
public static String pathname = "/download.asp";
public static String protocol = "http";
public static ArrayList list;
public static void main(String[] args) {
Parser parser = new Parser();
list = parser.getIDs();
try {
Socket socket = new Socket(host, port);
InputStream from_server = socket.getInputStream();
PrintWriter to_server = new PrintWriter(socket.getOutputStream());
OutputStream to_file;
to_file = new FileOutputStream("HTTP_response.txt", true);
for(int i = 0; i < 3; i++)
String s = (String)parser.getIDs().get(i);
String filename = "/download.asp?id=" + s;
to_server.print("GET " + filename + "\n\n");
to_server.flush(); // Send it right now!
//This response gives only only the response to the first
//request,....
byte[] buffer = new byte[4096];
int bytes_read;
while((bytes_read = from_server.read(buffer)) != -1)
to_file.write(buffer, 0, bytes_read);
to_file.close();
socket.close();
catch (Exception e) {
System.err.println(e);
System.err.println("Usage: java HttpClient <URL> [<filename>]");
}There are many things wrong with your code. Learn the HTTP protocol and you'll know what I mean.
Here's a hint - you'r missing headers in your code.
Some servers do not support keep-alive connections, nor do you request a keep-alive connection.
Connection: keep-alive
Use that header field and see what happends. Also, in your while-loop, you actually close the output file and the socket. Don't you think it may be hard for the server to respond to a client that closed the connection on it?
1. You don't know HTTP
2. You don't seem to know Java
3. You don't seem to understand basic programming logic -
How to set up and test the Basic Authentication for HTTP protocol
Hi,
I tried configuring the password based Basic Authentication for sending xml document using ebMS - HTTP protocol. I set username and password while configuring the transport server for both trading partners. I want to know, is that sufficient for basic authenticaton. When I open the URI http://localhost:7778/b2b/transportServlet, it is not asking any authentication (username/password). Please note that I have not used SSL certificate. Anyone please help me out to configure Basic authentication.Hi Ramesh,
Thanks for ur response. Could you please tell me where to set the Additional Transport header : authtype-basic#realm=myRealm(in which property file). In enqueue code, I could see the following attributes
queue
msgID
replyToMsgID
from
to
eventName
doctypeName
doctypeRevision
msgType
payload
attachment
subscriber
Is it possible to set username/password in the enqueue attributes?
Do i need to add username/password and Transport header in the input XML and defined that elements in xsd? -
Flat file name from Sender Side Dynamically into subject of Receiver Mail
Hi All,
I am Using a file to Mail Scenario, My requirement is to get dynamically the file name from flat file of the Sender Side into Subject of Receiver Mail Adapter and attachment of file from the Sender Side. Can anyone help me out.
Thanks in AdvanceHi....
You can write udf in the message mapping to get the Dynamic file name and map that to the subject of the receiver mail.
DynamicConfiguration conf = (DynamicConfiguration) param.get(
StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey KEY_FILENAME = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
// read value
String Filename = conf.get(KEY_FILENAME);
Regards,
Leela -
Load Balancing on two server nodes at the sender side...
Hi Experts,
I am sending a huge message (this message is being splitted into multiple messages depending on the load and zipped, this whole process of splitting and zipping is done by the scripts) zipped from sender side , when I am monitoring in message monitoring tool I found that all the load is on one server node and other server node is free as we have two server nodes , how to distribute the message equally between these two nodes.
The same Load balancing is working properly at the receiver end (load is getting distributed between two server nodes). Not sure why this is not the case at the sender side.
Please throw some light on this issue.
Thanks a lot for your kind help in advance.Hi,
Follow this blog this may helpful to you
Handling Large files in XI
/people/pooja.pandey/blog/2005/10/17/number-formatting-to-handle-large-numbers
file size can be handeled in client java proxy and the message is parsed in xi. this will not have much of performance issue. but yes when the smae is handeled by xi. and yes this scenario can be efficiently handeled from java client proxy
limit on the number of 'field-set' lines you can send to the ITS?
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/72e2bb90-0301-0010-e883-c390ad8a975a
Processing huge file loads through XI
Edited by: Venkataramesh Boppana on May 17, 2008 12:54 AM -
File content conversion on Sender Side
Hi,
I am doing file content conversion on sender side.when i am executing the scenario,i am getting the following error in sxmb_moni:
Invalid at the top level of the document. Error processing resource 'file:///D:/Documents and Settings/...............
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message --> DOC_HEADER ...
when i right click on the pyaload and select view source
its displaying the whole flat file with the following line at the beginning:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Inbound Message -->
i have given all the parameters correctly....
in sxmb_moni.....the error category is Mapping and the error id id EXCEPTION_DURING_EXECUTE
Please help me with this error.
thanks n regards,
anuradhaHi !!
The best way to debug would be to add TRACE statements in your mappigs. In both Graphical and java Mapping.
Trace out the entire output of java mapping and see if this is the input that the next mapping expects.
For trace , http://help.sap.com/saphelp_nw04/helpdata/en/c8/98e7d5c1620642973565ea3dd319d1/content.htm
refr this links also
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Name expected
unsported character error in message mapping
Re: HTTP to RFC Mapping error:com.sap.aii.utilxi.misc.api.BaseRuntimeException:
Exception com.sap.aii.utilxi.misc.api.BaseRuntimeException
Re: Outbound error
Re: mapping error
error in file to file
have a look at this weblog on how to test your mapping
/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
Thanks !!! -
File content conversion at sender side
Hi,
I need to convert a flat file to xml at sender side using FCC.
Input text file:
Sunil,Chandra,Mumbai,400709
Sachin,Tendulkar,Delhi,110066
XML Structure Occurrence
>Employees 1..1
> > Employee 0..N
> > > Fname 1..1
> > > Lname 1..1
>> > Address 1..1
> > > >City 1..1
>> > > Zip 1..1
xml should be like this:
><Employees>
>><Employee>
>>><Fname>Sunil</Fname>
>>><Lname>Chandra<Lname>
>>><Address>
>>>><City>Mumbai</City>
>>>><Pin>400709</Pin>
>>></Address>
>></Employee>
>><Employee>
>>><Fname>Sachin</Fname>
>>><Lname>Tendulkar<Lname>
>>><Address>
>>>><City>Delhi</City>
>>>><Pin>110066</Pin>
>>></Address>
>></Employee>
></Employees>FCC does not support this level nesting...Ref
http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
But requirement can be achieved using extra mapping
you can create a source structure that looks like
MT_Source_New..
>Record ...unbounded
>line ....1
and read the input file line by line...this can be achieved by simple FCC...Refer above link
here you need extra mapping to map it to your required source structure Employees
MT_new ---Mapping1 --- Employees
Then map Employees to Actual target structure -
Error While Doing FCC on Sender Side
Hi All,
Iam reffering this Blog and doing File to File (FCC at Sender Side)
Content Conversion ( The Key Field Problem )
I have the Same Structure for both Source & Target. this is my structure
http://img386.imageshack.us/my.php?image=sourcestructym4.jpg
& i used the Following FCC Parameters at Sender Side
http://img123.imageshack.us/my.php?image=fccparawy7.jpg
Header.fieldSeparator ,
Header.fieldNames --- keyfield,Name,Designation,City
Header.keyFieldValue --- 01
Body.fieldSeparator ,
Body.fieldNames -
keyfield,Salary,Contact,MailID
Body.keyFieldValue -- 02
Trailer.fieldSeparator ,
Trailer.fieldNames ---keyfield,Address,Pin
Trailer.keyFieldValue -- 03
ignoreRecordsetName -- true
Txt File--Input
01,Vamsi,SSE,Chennai
02,1000,9962123146,vamsi.krishna
03,Chennai,600096
I placed the txt File in AL11 of XI Server and file not picked up and i have got the Error in Sender CC monitor in RWB
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Header.keyFieldValue': no value found Mandatory parameter 'Header.fieldNames': no value found
RegardsHi,
I think all your configuariotn looks right.
Regarding your .txt file:
Check that there is no blank lines before your first record.
Also, that your records begin in the first column,
and also that there is 'nl' between your records.
Try to add 'field.endSeparator ' in every record.
According to help. sap:
If you only specify a value for NameA.fieldSeparator, the system expects a string containing the
names of the file columns in the same format as the file rows. This means that the same separator and
any additional strings you specify for NameA.endSeparator and/or NameA.beginSeparator are expected.
Carlos
Edited by: Carlos Gonzalez on Nov 27, 2008 12:10 PM
Maybe you are looking for
-
Error : 'IDM_DataSource' Can't be created during IDM UI installation
Dear All, I am installing SAP NW IDM 7.1 on Windows/MSSQL2005.Getting error while creating IDM_DataSource in installation phase of IDM UI. I am using JDBC 2.0 and JDK 1.6 Error java.rmi.RemoteException: com.sap.engine.services.dbpool.exceptions.BaseR
-
SAP PI Message Cancellation Alert - Message does not have restartable error status
Hello SCNers Version: 7.1 Scenario: File --> PI -->SOAP We have a situation where a PI message in Integration Engine shows error status.We want to cancel the message in IE but are unable to do so. On clicking Cancel for this message in SXMB_MONI, we
-
Terms of payment with odd days
I need to set up a new payment method that Due on 2nd working day after 45 days from baseline date . I try to first config "Due on 2nd working day after 30 days from baseline date ." in payment term tab. Term1. I define no.of days as 2. additional mo
-
SSRS Use a formula for a line graph y = mX + b
Hi I want to show a line on a line chart using a formula in the form y = mX + b. Can't seem to get this to work. I inputted the formula into the "Value field" of the "Data field" but the line doesn't show up. X = value for X axis (it's a date);
-
Simple Mask Effect not working in Flash 8 Pro
I recently updated to Flash 8 pro.I'm having a wiered problem.First I was having problem applying masking.I applied a masking effect in a movie clip and when view the movie instead of showing the effect it shows my masking shape that is a rectangle.W