TCP Gateway
Excerpt from SAP Note 856597 FAQ: XI 3.0 SOAP Adapter service.sap.com
==================
Q: How can I trace the whole message?
If you want to monitor the communication between some HTTP client and some HTTP server,
you can configure a gateway instance between the client and the server. Extract tcpgw.zip from SAP note 856597 to install
TCP gateway utility.
Suppose your client was originally sending its request to http://httphost:50080/sap/xi/engine?type=entry
and you want to run TCPGateway on gatewayhost. In this case, you can configure a gateway at any
unused port such as 50081 and make the gateway forward the data to httphost at port 50080.
This means that you enter 50081 in the Listen Port # field and htthost and 50080 in the Target Hostname and
Target Port # fields, respectively. You also need to change your adapter configuration to
send its request to http://gatewayhost:50081/sap/xi/engine?type=entry so that all messages
will be intercepted by the gateway listening at 50081 and forwarded to the original destination which is 50080.
=================
I ran TCP gateway in laptop and wanted to intercept payloads posted to XI server, but the gateway is not responding to the payloads.
Please advise if TCP gateway should be scheduled in server where XI-app is running. Generally developers won't have access to XI-app servers only basis team does.
In some system environments it is not possible to access a labtop from XI server. In this case you should install the TCP gateway on XI server or another server which can be accessed by XI.
Sometimes it helps to access a labtop from XI with the IP address instead of the hostname.
Regards
Stefan
Similar Messages
-
Hi ,
I want to check with tcp gateway tool for a SOAP Adapter . Can anyone suggest the best suited scenario in PI and also a web service that is publicly available to check this scenario. I am new to PI and want to implement this Scenario.Hello
There are some blogs on this topic:
Push SOAP Request to PI without using Third Party Tools
Are you making the best out your Test tool? - Tips on SOAP UI
Regards
Mark -
"Program is not registered in xi " problem
hello all,
we get the error "Program is not registered in xi" when
executing the "connection test" via transaction 'sm59' for the relevant RFC connection between our XI and ECC systems.
the same test went fine earlier and just went wrong.
here is the error in details:
R F C - Connection Test
ERROR- program XXX not registered
LOCATION- SAP-Gateway on host xiprd / sapgw00
DETAIL- TP XXX not registered
COMPONENT- SAP-Gateway
COUNTER- 327
MODULE gwr3cpic.c
LINE- 1599
RETURN CODE 679
SUBRC- 0
RELEASE- 640
TIME- Mon Jul 09 19:27:25 2007
VERSION- 2
thanks ahead,
Meir Aharoni>
> 1. I made sure and it wasn't used anywhere else (does
> it matter if we have the same program ID on another
> XI server? the gateway in that other comm. channel is
> directed to the XI server instead of the ECC
> server).
Can you explain this further . Not sure I understood this.
>
> 2. It is red with the error:
> RFC_ERROR_COMMUNICATION connect to SAP gateway
> failed
> <connection parameters>
> LOCATION CPIP (TCP\IP) on local host with Unicode
> ERROR service "?" unknown
This is the main issue. The TCP Gateway Host and service in the Sender RFC adapter will be that of your R3 system. Also make sure that the detdails in the sender RFC adapter are correct,
Also try to deslect the option verify sender System , like I have mentioned above.
And, in my sender RFC adapter, have not selected the option Unicode and SNC
Regards
Bhavesh -
How to get the total SOAP XI message as output in file?
Hi all,
i had done a scenario Mail - XI -File . if i used XIPAYLOAD and check mail package then the file adapter gives the output in ximail30.xsd format. I want the whole SOAP XI messages and also the internal message which we can see in url
http://server:port/MessagingSystem/ as output in the text file.
how can we configure mail adapter to give SOAP XI messages and also the internal message as output in the text file.
Anyone have a idea to solve this please help me.Use the TCP gateway if you want this for monitoring,
/people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway
Regards
Bhavesh -
Error using XI HTTP adapter specific message attribute URL parameters
Hi XI gurus, in our XI 7.0 SPS11,
we have problem using URL parameters of plain HTTP receiver adapter.
If I set Adapter specific message Properties in communication channel and activate switch for Apply URL parameters (using Parameter 1 to 5) filling them using message mapping, we have no effect; instead we have error "Dynamic Header - Missing Message Attributes: Fields/Parameters".
We carried out this test:
1. not using adapter specific message attribute and setting
a static URL target with fixed parameters it runs correctly.
2. using adapter specific message attribute for target
URL and URL parameters both doesn't runs correctly.
3. using adapter specific message attribute only for target
URL doesn't run correctly.
These attribute key used for URL parameters:
URLParamOne
URLParamTwo
URLParamThree
URLParamFour
URLParamFive
Namespace: http://sap.com/xi/XI/System/HTTP
Can you solve this issue? Are there oss notes, corrections, ...
Thanks in advance.
Marco TricaseSome other test done with TCP gateway.
Activated adapter specific message properties for
*URL
*HTTP Header fields (one header field named "lisca")
*URL Parameters (one param named "objectType")
The HTTP message catched by TCP Gateway
POST /csl/cslinker HTTP/1.0
content-type: text/xml; charset=UTF-8
content-length: 318
connection: close
accept: /
user-agent: SAP Web Application Server (1.0;700)
host: 10.10.43.94:54000
accept-encoding: gzip
<?xml version="1.0" encoding="UTF-8"?>
seems nothing has been generated, and obviusly URL and params have been set in message mapping.
Hope some guru has been solved the issue ...
Pasquale Rossiello -
SOAP Receiver Adapter (Asynchronous Call)
Hi All,
Scenario is Proxy to Webservice asynchronous call.
Scenario configuration is done as follows.
1) Imported the WSDL and using as a asynchronous inbound interface.
2) SOAP receiver channel is configured with the target URL & soapAction as given in the WSDL as (soap address & soap Action).
3) Configured the proxy server details as required.
SOAP channel is successfully sending the message to the application as DLVD.
But the issue is target application not receiving the data. What could be the reason ? I am wondering , i have tried with the external tool like Altova XML Spy & SOAP UI sending data to the webservice & it's working fine.
Please suggest me if anything which can help to resolve this issue.
Thanks
AshwinIn this case you can do the following:
1. start your tcpmon or TCPGateway, add there a listener e.g. on port 9090
2. configure the target URL in TCPGateway for this listener
3. configure the target URL in your XI SOAP Receiver Adapter to http://<ip of TCPGateway>:9090
4. now execute the scenario again in XI
(make sure XI can reach your TCP Gateway, e.g. check Proxy)
I have used this method successfully for error tracking. In some cases it is necessary to add 2 listeners in TCPGateway and route e.g. 9090 to 9191 and from there to the end (I did not analyse why).
Then you will be able to see what XI is really sending and you will see the full response from the partner side. You can then compare the XI request data with those which are sent via soapUI. This should give a clue about the problem.
CSY -
No SOAP Envelope error in SOAP Receiver Adapter
Hello Friends,
Informaiton:-
I have configured one Synchronous scenarion for SAP R/3 to PI 7.1 to Java based web applicaiton.
On the Receiver/Outbound side, i have configured the SOAP Receiver Adapter with the Target URL and SOAP Action.
Outbound and Inbound service interfaces have Request/Response and Fault messages.
Issue:-
While sending the Message, Below error is noticed in ABAP stack SXMB_MONI during the Call Adapter Stage and also in RWB (Channel Monitoring) .
com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: No SOAP Envelope but 1 {}RESPONSES; HTTP 200 OK
I also found that Request message is not reaching to the Java Web server.
I am taking the Same message Payload (found at Call Adapter Stage) and ussing it in XML Altova SPY Web client tool. There it is running scuccessfully and getting the Response message.
please suggest.
Thanks & Regards
JageshHi,
Yesterday i consumed the same WSDL file in Altova XML SPY and there it is working, getting the Response.
Now comparing the SOAP Request message reaching to the Third party Web server (which fall within the same Lane network)
from SAP PI and Altova XML SPY tool. I used TCP Gateway for the below scenarios.
(1)First i sent the SOAP message from PI and observed the RESPONSE message without the SOAP Envelope in TCP Gatway Trace and hence i am getting the No SOAP Envelope Error in PI.
(2)I consumed the same WSDLfile in Altova XML SPY and sent the SOAP message, here i got the Proper SOAP Response message and hence success in this case. (Used the same Data Payload as used in point 1)
(3)Now to identify the issue in the SOAP Request message being sent from PI, i used the same SOAP message sent in step 1 here, that means copy the entire SOAP ENvelope from the TCP gateway Trace and pasted it in Alota Spy and sent, there it is found running (got the response message from Third Party server).
One difference i found in HTTP Protocol statements in SOAP Request message in Point no 1 and Point no 2 above.
HTTP Protocols in Point 1 (Through PI).
POST HTTP/1.0
Accept: /
Host: 172.24.138.142:4544
User-Agent: SAP-Messaging-com.sap.aii.af.sdk.xi/1.0505
CallingType: SA
content-id: <soap-00306EEAC2051ED1839136CEE8564900 sap.com>
Content-Type: text/xml; charset=utf-8
Content-Length: 1195
SOAPACTION: "Action1"
HTTP Protocols in Point 2 (Through Altova).
POST / HTTP/1.1
Content-Type: text/xml
User-Agent: XML Spy
SOAPAction: "Action1"
Host: 172.24.138.142:4544
Content-Length: 1195
Connection: Keep-Alive
Cache-Control: no-cache
Thanks to Mr. Stefan Grube for writting such a nice blog.
Troubleshooting SOAP, HTTP and Mail Adapter Scenarios with TCPGateway
Experts, please suggest me further.
Thansk & Regards
Jagesh -
CDATA - XSLT mappping - Encoding problem
Hi folks,
I have a ABAP proxy to webservice scenario...
I am sending out data from ECC to a external web service...
The requirement here is the external web service input message has only two input fields and in the first field it accepts the transaction data( Say material or customer or orders ect) and in the second field it accepts login aunthetication information which is generally fixed..
<ObjectsDataXml>
<![CDATA[ mat1......mat2.....mat3....matn]]>
</ObjectsDataXml>
<UserContextXml>
<![CDATA[ login infomration ]]>
</UserContextXml>
The requirement here is all the data records are bundled into and put into <objectDataXml> tag with in CDATA..
same to do with <UserContextXml> as shown above..
In my operation mapping am using message mapping to map material records to the target structure and then using XSLT map to put all the data in to CDATA and send it into the <ObjectsDataXml> tag...
Although the mapping working fine but the message output is having encoded values by the time message reaches adapter message content and external web service request..
I have tested the same in TCP gateway tool and i find two issues
1) The out is encoded for opeing and closing tags between CDATA and
2) CDATA is completely ignored....
Please find the link to have a look at the data after mapping and adapter call below
Output after Message mapping before calling the adapter:-
http://www.flickr.com/photos/62088318@N08/5641894710/
Output in the TCP gate way tool or external receiver:-
http://www.flickr.com/photos/62088318@N08/5641887100/
Please guide me with this.
Regards,
MrMarriI recommend to change the web service. This is such a nonsense to use cdata section in a web service.
I do not understand and do not have any comprehensin for people who think that they can ignore any rule for creating web service.
The best proof of imcompetence is the use of namespace "tempuri.org" .
Sorry for being rude. I see a lot of questions here in SDN from people in PI who try to solve the issues which are made from sender or receiver systems. -
Http adapter-sender side error in communication
Hi,
I have configured the sender http adapter in the test enviroment
and i did some test using a test tool
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
The test was a success . I used a url:
http://sapxid:8000/sap/xi/adapter_plain?namespace=urn%3A/RepairJobCAp_SapInbound&interface=MI_RepairJobC&service=BS_CRM&party=&agency=&scheme=&QOS=EO&sap-user=xiappluser&sap-password=XIPASS&sap-client=001&sap-language=EN
When i did the test with the real tool of the sender system it failed , and the only sign was the log in window of the XI WAS with the user name of xiappluser .It seem that failed to log in , the password it is ok as it works with the test tool. Do you have an idea what it could be ?
Best Regards
Antonishey
could you please post the URL to which the actual sender system is pointing to(the URL to which it is sending the message to XI)
also use TCP gateway to monitor the sender HTTP
/people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway
Thanx
Aamir -
Hi all,
My scenario is rfc to soap asynchronous. when i am sending data from rfc it is showing success in sxmb_moni and in RWB.
but it is reaching to third party webservice but it is not taking the data. then it is showing following error in SXMB_MONI response what was the issue
*<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>*
*- <!-- Call Adapter*
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapter</SAP:Category>
<SAP:Code area="HTTP">ADAPTER.HTTP_EXCEPTION</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>HTTP 415 Unsupported Media Type</SAP:AdditionalText>
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
and the version are PI 7.1, and third party webservice is Oracle 11g and weblogic server 10.3.2.0
and my next question is in same scenario
I checked using TCP Gateway PI to third party webservice .it is showing following error
This is posted data
POST /AdvancedMeteringInfrastructure-UtilitiesDeviceERPSmartMeterBulkCreateRequest-context-root/UtilitiesDeviceERPSmartMeterBulkCreateRequest_OutPort?wsdl HTTP/1.0
*Accept: /*
Host: 172.16.5.211:7002
User-Agent: SAP-Messaging-com.sap.aii.af.sdk.xi/1.0505
content-id: payload-a3368e536e4311dfa3dc00237d5e14c0(at)sap.com
content-type: application/xml
Content-Length: 1662
SOAPACTION: "http://sap.com/xi/IS-U/Global2/UtilitiesDeviceERPSmartMeterBulkCreateRequest_Out"
<?xml version="1.0" encoding="UTF-8"?>
<ns1:UtilitiesDeviceERPSmartMeterBulkCreateRequest xmlns:ns1="http://sap.com/xi/SAPGlobal20/Global"><MessageHeader><ID schemeID="Device" schemeAgencyID="www.infotech.com">4446364534314343</ID><UUID schemeID="Device" schemeAgencyID="www.infotech.com">DF6E41CC-79E7-81F1-B9A3-0013725B3FAB</UUID><CreationDateTime>2010/06/02 T18:07:42</CreationDateTime><TestDataIndicator>true</TestDataIndicator><ReconciliationIndicator>true</ReconciliationIndicator><SenderBusinessSystemID>SLD_B001</SenderBusinessSystemID><RecipientBusinessSystemID>SLD_B002</RecipientBusinessSystemID></MessageHeader><UtilitiesDeviceERPSmartMeterCreateRequestMessage><MessageHeader><ID schemeID="Device" schemeAgencyID="www.infotech.com" schemeAgencySchemeAgencyID="001">4446364534314343</ID><UUID schemeID="Device" schemeAgencyID="www.infotech.com">DF6E41CC-79E7-82F1-B9A3-0013725B3FAB</UUID><CreationDateTime>2010/06/02 T18:07:42</CreationDateTime><TestDataIndicator>true</TestDataIndicator><ReconciliationIndicator>true</ReconciliationIndicator><SenderBusinessSystemID>SLD_B001</SenderBusinessSystemID><RecipientBusinessSystemID>SLD_B001</RecipientBusinessSystemID></MessageHeader><UtilitiesDevice><ID schemeID="DEID" schemeAgencyID="115">1200000120001564</ID><StartDate>2010.06.02</StartDate><EndDate>9999.12.31</EndDate><SerialID>1200000120001564</SerialID><MaterialID schemeID="MaterialID" schemeAgencyID="MPL_002">85</MaterialID><ProductUniqueItemID schemeID="Smart Meter" schemeAgencyID="MPL_002">SM1165HS</ProductUniqueItemID></UtilitiesDevice></UtilitiesDeviceERPSmartMeterCreateRequestMessage></ns1:UtilitiesDeviceERPSmartMeterBulkCreateRequest>
ERROR
HTTP/1.1 415 Unsupported Media Type
Connection: close
Date: Wed, 02 Jun 2010 12:26:33 GMT
Content-Length: 0
X-ORACLE-DMS-ECID: 0000IZsc9VaF^6WFLzyGOA1Bpe3k00007J
X-Powered-By: Servlet/2.5 JSP/2.1
Please give me the solution.
Thanks
AnilHi,
looks like there can be a problem with the webservice provider to which you are passing the data via SOAP adapter...
check that webservice using some other tools like XMLSPY or SOAPUI...
if everything is fine with that then test the entrie scenario by passing the same data...then you will get to know the exact problem...
HTH
Rajesh -
MAIL ADAPTER TCPGW CONFIGURATION
Hi all
I am new to the SDN forum and hence excuse me if this post shouldnt be here. Now i have been trying to configure the mail adapter to work properly with the TCPGW
But i have been having a lot of errors. I am very new to this and just on the starting of the learning curve.
The errors which i get are
1) Connection refused
2) java.nullPointerException
Now in the pck the url in the Sender Mail Channel is
imap://localhost:50143/ss (ss is a folder in the outlook).
Now in the pck the url in the receiver Mail Channel is
imap://localhost:50144/ss1 (ss1 is another folder in outlook).
Now in the tcp gateway could anyone tell me what should be the listner and the target port?
I configured it as target port 143 listner port 50143 is this right?
Thanks
Regards
HarshaHi,
Try for SAP Note: 856597.
You can find a tool called TCPGateway in the attachment section of this note (stored in tcpgw.zip). Please unpack this zip file and open index.htm for more configuration and error analysis details.
Regards,
Boopathi -
Guys,
In my BPM i have one sync rfc send.
For example:
BPM: async soap -> sync rfc -> async jdbc.
Where can i to see the payload from sync rfc response?
sxmb_moni - i dont found the payload.
communication channel monitoring - i too dont found the payload.
Then, where can i to see?hi,
I think your file not reach the xi.
If sender side you are using SOAP(HTTP protocal) you cant see the message in sender communication.
It will directly put the file into integration engine.using TCP gateway you will get the file which you passed.
Like bellow ,
HTTP protocal-TCPgw--XIserver.
*Reward Ponis If Helpful*
Regards,
Prakasu -
Dear Community,
I have configured a SOAP Receiver to an external web service (https://server:7002/service). I have use IE to get the certificate of the server and have imported it into the keystore of the j2ee (using VA). I have imported it to the all current views available. We have SAP PI 7.0 SP18. The problem is that the SSL handshaking is not performed correctly. I have placed a tcp gateway monitor tool to see the messages pass through. As soon as the first message is send to the above URL and a response is received, I get a XIAdapter/HTTP/ADAPTER.HTTP_EXCEPTION - HTTP 500 Internal Server Error. Also, in the default trace log I get a no private key found.... Do I need extra steps to configure SSL in the SOAP Receiver? The service does not required a Client authentication certificate and has a certificate with o CA root certificate (since this is only a test system and has issued its own certificate). Any ideas? Any help will be appreciated.
Regards,
S.SocratousHello,
Generally it's a connectivity behaviour. Check if you have setup the connection to
the receiver and also check the explanation regarding 500 Internal Server Errors:
*Description: The server encountered an unexpected condition which prevented it from fulfilling the request.
Possible Tips: Have a look into SAP Notes u2013 804124, 807000*
It may be also a problem with the SSL certificate. So, check if it's not expired;
The correct server certificate may be not present in the TrustedCA keystore view of NWA .
Please ensure you have done all the steps described in these url (this is for 7.11):
Security Configuration at Message Level
http://help.sap.com/saphelp_nwpi711/helpdata/en/48/d1c7e690d75430e100000
00a42189b/frameset.htm
You may have not imported the certificate chain in the correct order (Own -> Intermediate -> Root);
Last, if the end point of the SOAP Call(Server) is configured to accept
a client certificate(mandatory), then make sure that it is configured
correctly in the SOAP channel and it is also within validity period.
(This certificate is the one which is sent to Server for Client
authentication)
Hope that helps.
With regards,
Caio Cagnani -
Hi,
I am getting the following error in moni when i try to consume a webservice. Even SOAP scenarios that were working fine before also are throwing the same error.I have checked some threads regarding the same error and did as mentioned in the same, but of no use. I executed that webservice alone and it is working fine. Any help on this will be appreciated.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/PLAIN</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
Regards,
Sudheer.Hi Sudheer,
Let me confirm again...From XI , you are making a SOAP call using the SOAP receiver adapter..right ?
If that is the case and you are telling sometimes it works and sometimes it doesnot, it indicates the SOAP service you are invoking from XI due to some reason is sending back non-soap response...
we had encountered scenarios couple of time like this because the user we were using to execute the SOAP call had expired and the SOAP service was returning and HTTP-UNauthorized message back and then in MONI it would show up as the same error as what your are getting.
To check this, (the request/response going back and forth), in my earlier post i suggested using the TCP gateway...
Thanks. -
SOAP reciever adapter user authentication
Hi,
I have configured SOAP receiver communication channel using User authentication.
How I can confirm that these credentials are being sent out.
Please let me now where to check these in XI?Thank You both for your replies.
I observed two things
1) I selected adapter engine in Message Monitoring, in Audit log, it shows
Adapter Framework caught exception: null and the message failed with System Error.
but on Integration Engine it shows all messges are succesfsul
2) I have installed TCP Gateway on my PC, and created two connections with two different port numbers namely 50081, 50082.
In my receiver SOAP channel, I have given URL as http://local PC ip address:50081
When I send message from R3 system it reached XI and messages shows successful in moni,. but I could not see any in TCP Gateway.
Is there anything Iam missing,
Edited by: Vamsi on Jul 9, 2009 3:52 PM
Maybe you are looking for
-
Slow load times for rentals on Apple TV
Out of a clear blue sky, I find that my hard-wired Apple TV takes hours to prepare a movie for watching. I've adjusted the setting in iTunes on the ATV to make sure it defaults to 720p and not 1080p, but the problem still exists. As an example, the o
-
Have original and modified pic in diffrent events
Hi, i would like to edit a photo so that i keep the original in some event and i would like to move the modified version to new event. What is the proper way of doing this? Thank you. Also: i tryed copy, but if i go to new event it wont paste :/
-
hi , i am using the message type BLAORD in my LSMW object for Purchasing contracts. I am facing this problem of clearing of the field ZTERM (Payment Term). The value for this field is being populated by the IDOC and also posted in the field, but once
-
Hi experts, Is there any possibility where we can get search help for month field . Search Help should provide month number and month name so that we can select that particular month in the screen field.
-
Publisherid generation with Adobe AIR 1.5.3
Hi there, I'm looking into how the publisherid value is generated in Adobe AIR 1.5.3 applications. Reading: http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7ff0. html it appears that I should not specify a publish