Changing HTTP-Parameters for HTTP Receiver Channel

Dear all,
we have a partner we send files to using the simple HTTP adapter.
We have different types of messages (interfaces) we send to the partner.
Our partner expects the message type as a parameter of the URL. Such as http://xxx:000/xxx?msgtype=outbound
In turn, the "outbound" could also be "inbound" - depending on the message type.
I want to avoid using to services with two adapters.
Thus, my question to you: Do you have an idea how I could manipulate the parameter's value?
Thanks in advance,
Helge

Hi Helge,
if you have Sp14 and above you can try setting the url
dynamically in the mapping using Adapter-Specific Message Attributes in the http receiver channel:
http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
this way it should be no problem to change it
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

Similar Messages

  • Http receiver channel works fine. SM59 gives an error

    Hi,
    I've set up HTTP receiver communication channel with the following details:
    addressing type       : URL address
    target host                : cl-test.zzzz.nl
    service number        : 20212
    path                          : /zz/servlet/runHXML?site=sap&thread=something
    authentication data   : use logon for NON sap system.
    When i send a message it arrives at the receiver side, and i get "succesfully processed" in the sxmb_moni.
    I want to use addressing type HTTP destination instead of URL address so i created an HTTP destination (type G) in SM59 with the same details.
    But when i perform the connection test i get an Internal Server Error
    (~response_line  HTTP/1.1 500 Internal Server Error)
    I tried replacing the target hostname with the ip-address, but still the same response.
    What can be wrong?
    Kr
    Robert

    Hello Robert,
    When you try to test the HTTP destination in SM59, XI send a HTTP Post to the target system but with no payload.
    In your case I assume that the Target System cannot process this message and hence triggers a Internal server Error - HTTP 500.
    Can you use this HTTP destination and try to test the working scenario end to end. This should work.
    Regards,
    Bhavesh

  • HTTP Receiver Channel

    Hi Gurus,
    I am working on a JDBC to HTTP scenario.
    Scenario is working fine, but have a confusion on the configuration of Receiver HTTP channel.
    In the receiver channel, there is something called 'Additional Query String Attribute'.
    I am not getting what is the use of this and if it is required how is it configured.
    If anybody has any blog or thread on this, pls post it here.
    Any help will be appreciated.
    -Sanika.

    Sanika,
    With these parameters, you'll select additional parameters that will be added to the GET/POST URL used to send the msg to the receiver system. This will add something like this to the "root" url :
    <ROOT_URL_FROM_CC_SETTINGS>?msgguid=..&service=..&scheme=...&party=..&agency=...&namespace=...&interface=...
    Sometimes, partners or receivers do not support these extra params, so you'll have to remove them by deselecting the "unwanted/unsupported" corresponding params ...
    Chris

  • "Unauthorized" error for SOAP receiver channel

    Hi all,
    I have a scenario in which I am calling a .NET web service from a UDF in which the XML payload is constructed manually. I have configured a SOAP receiver channel. Also, since the web service needs certificate authentication, I have checked the corresponding parameter in the SOAP channel and selected appropriate client certificate.
    When I execute the mapping, I get the following error -
    com.sap.aii.mapping.lookup.LookupException: Exception during processing the payload.Problem when calling an adapter by using communication channel SOAP_RCV_IMWS_Change (Party: , Service: IMWS, Object ID: dda07d364ca73d4ab9e89e562a971b36) XI AF API call failed. Module exception: 'com.sap.aii.af.ra.ms.api.RecoverableException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized'. Cause Exception: 'invalid content type for SOAP: TEXT/HTML; HTTP 401 Unauthorized'.
    Is this related to error in certificate authentication process, OR wrongly formed XML payload OR anything else ?
    Regards,
    Shankar

    No. I didn't provide any login info. The web service doesn't specify username login requirement. Instead, it needs client certificate for authentication, which I provided in SOAP receiver channel.
    I am testing the web service by executing the message mapping. The web service was executed successfully from its 'Test Page' like for SAP web services we have web service navigator. So it runs ok from that test page, but gives error when called from UDF.
    Regards,
    Shankar

  • Seeburger AS2 HTTPS receiver channel error

    Hi,
    I am getting the following error in the receiver Seeburger AS2 channel with HTPS connection and going through a proxy to the Partner.All the certificates have been installed,proxy server information gives,mentioned the key store values  and encryption certificate values have been mentioned in the receiver agreement that is using the channel.
    Message processing failed. Cause: javax.resource.ResourceException: Fatal exception: javax.resource.ResourceException: SEEBURGER AS2: HTTP-Client component init failed # java.security.PrivilegedActionException: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: Could not retrieve alias collection., SEEBURGER AS2: HTTP-Client component init failed # java.security.PrivilegedActionException: com.seeburger.ksm.cryptoapi.exception.CryptoApiException: Could not retrieve alias collection.
    Can you please give me an idea whether I am missing something or any configuration settings I need to make.
    Thank you,
    Sri

    hi Neetesh,
    Thank you for the link.The first thing I have looked at is the link you gave me.But when I give with * it is complaining that it is not able to retrieve the certificates.
    TRUSTED/AS2CERTS/*,but I have backward slashes..may be  OS is different ,I think the original poste might have Windows servers.
    any other ideas please.
    thank you.

  • Communication channel parameters for XI receiver adapter

    Hi
       I am implementing a ABAP server proxy - to do this, I am creating a XI adapter type - Receiver communication channel so that messages from XI go to ---> the R3 system wherein the proxy is implemented.
    I have seen a weblog with a sample defn of communication channel of this adapter type , but the illustration there is not clear enough.
    Based on documentation for this in help.sap.com, I have the following questions :
    1. Do we have to setup a HTTP type destination in the XI box pointing to the R3 system ( on which ABAP proxy is implemented ) . I guess this is the case, since XI needs to find the connection to the R3 box to pass the proxy message to it .
    2. If we do have to setup a HTTP type destination in XI pointing to R3, what is the path prefix and service number field values that need to be given...
    I tried putting in /sap/xi/engine as path prefix and 8000 as service with the logon credentials for the R3 system and I get a status code error of 500 ( <b>Pipeline specified in URL attribute not existing</b> ) when I test the SM59 connection in XI...
    Any pointers on what am I missing here ??

    Hi Karthik,
    >>1. Do we have to setup a HTTP type destination in the XI box pointing to the R3 system ( on which ABAP proxy is implemented ) . I guess this is the case, since XI needs to find the connection to the R3 box to pass the proxy message to it .
    Based on 'addressing type' field in XI adapter you can either specify HTTP destination in communication channel or provide all the required details in the communication channel itself.
    >>2. If we do have to setup a HTTP type destination in XI pointing to R3, what is the path prefix and service number field values that need to be given...
    I tried putting in /sap/xi/engine as path prefix and 8000 as service with the logon credentials for the R3 system and I get a status code error of 500 ( Pipeline specified in URL attribute not existing ) when I test the SM59 connection in XI...
    use the URL /sap/xi/engine?type=receiver
    Also make sure that your R/3 is set up as a local integration engine for proxy communication..
    Check this..
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    Regards
    Anand

  • REG : HTTP Receiver Channel

    Hi All,
              I have a scenario where my sender is a SAP system and receiver is a HTTP url. I need to post IDOC from SAP system to the URL .No mapping is required, but i need to send a mail with the status of HTTP POST (e.g. 200 for success, 401 authorization error etc ) after every post i do on that URL .Is there any option present in XI where I can get HTTP STATUS code( ie 200,401 etc) from XI.
    Thanks,
    Siva

    Hi Shabrish,
                          Is there any method by which i can access SXMB_MONI's  "SOAP ENVELOPE XML" or the tables of SXMB_MONI.
    Thanks in advance,
    siva

  • Change Storage Parameters for Tablespaces

    Hi
    I want to change the NEXT_EXTENT parameter to 100M for TS_DATA, TS_DATA1 and TEMP Tablespaces. for the following tablespace below
    TABLESPACE_NAME INITIAL_EXTENT NEXT_EXTENT
    TS_DATA 65536
    TS_DATA1 65536
    TEMP 1048576 1048576
    Can anyone post the query for changing the parameter.
    My database
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for Solaris: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    5 rows selected
    Thanks in advance

    sybrand_b wrote:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3002.htm#i2093894
    ------------- I totally agree here. Try to find an answer in the docs first. It's not that hard to find
    However I would like to give you one hint:
    select extent_management from dba_tablespaces where tablespace_name in ( 'TS_DATA','TS_DATA1','TEMP');If this returns "LOCAL" as result your tablespace is Locally Managed instead of dictionary managed and therefore the next_extent value can not be changed.
    HTH,
    FJFranken
    My Blog: http://managingoracle.blogspot.com

  • Which user type to user for RFC receiver channel

    Hi Forum,
    I m developing XI scenarios which include RFC receiver chhanel (in IB: Integration Directory), to call a function moule in a R/3,
    which kind of user should i use for this purpose, i mean to say,
    which user type:
                    SYSTEM
                    Dialog
                    Communication
                    System
                    Reference
    and what should be the roles of that user,
    which type of the user doesnt gets locked, on wrong attempts

    Hi,
    Generally S_RFC and S_SERVICE authorizations  are nedded while calling RFC module from R3. Also check for role S_RFC_ADM
    The backend should have the authorization to execute the RFC on the backend.
    You can test the module in R3 and create a role using PFCG assign the tcode - SU53 (authorization check) and also assign the S_RFC and S_SERVICE to role.
    Refer
    RFC Logon user authorizations
    Question on service userid - for RFC call
    End User Authorizations and Roles
    Calling R3 RFC via http
    For RFC different authorization object is requried. You can ask your basis team to add the relevant authorization object in a new role and then add the new role to any existing service user or better create a new system user and add the role.
    Thanks
    swarup

  • Mail message viewer-can I change time zone for "time received" & "time sent" to my local time?

    Does anyone know how to change the time zone MAIL uses to one's local time zone?  I'm talking about Apple's Mail Program that's "on my mac."  It shows all my "times sent" and "times received" in eastern time.  Not a big deal, but since I'm on the west coast, I'd prefer pacific time.  The menu bar at the very top of the screen shows local time, but Mail doesn't reflect that.  I have a desktop iMac, Lion 10.7.3.  Any help will be much appreciated!

    I had the same situation on my current business trip.  Home = SF (Pacific time), current location = Houston (Central time, 2 hours later).  For a message I just sent (and received a copy of) at 6:34 AM local (Houston) time, Mail (v6.6, in Mountain Lion 10.8.5) was displaying Date Received as 4:34 AM.  I can tell 'ya, it's *not* 4:34 AM where I'm sitting
    My practice on any trip to a different time zone is just what Carlo TD described -- use SysPrefs/DateTime to change the TZ to local geographic (and also change Calendar's TZ at upper right in its window, but that's not related to the Mail issue).  But when I did so, Mail didn't repaint its Date Received column.  On a hunch, I quit and re-started Mail.  Problem solved -- all the Date Received values changed to local (Houston) time!
    Now to send Apple a Feedback that Mail doesn't repaint its displayed times when SysPrefs/DateTime changes the TZ...
    [Interestingly, when I just posted this reply, the message in the thread shows something like "4:54 AM".  Perhaps Apple displays all Support threads in Cupertino (Pacific) time...]
    Message was edited by: jciccare

  • Recommendations on maximum connections for RFC receiver channel

    In the past I have bumped this up to 10 or 15 but never really understood the significance or impact this can have. How do we size this number? Any idea?
    We may need to supply bunch of information to Basis on this before we resize it. Right now I get this for a certain interface which has huge volume.
    Exception caught by adapter framework: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: resource error: could not get a client from JCO.Pool: com.sap.mw.jco.JCO$Exception: (106) JCO_ERROR_RESOURCE: Connection pool RfcClient[CC_Upd_Invoice_RFC_Recv]96d0f28e47aa3214a8d893b51d627ca6 is exhausted. The current pool size limit (max connections) is 1 connections.
    Thanks,
    Pam

    Hi Pam,
    Please refer to SAP note 730870 at service.sap.com.  There is a lot of good recommendation from SAP here in regards to RFC adapter configuration for PI/XI 7.0 and 7.1.
    thanks.
    Jamie

  • HTTP Adapter Settings (Receiver Channel)

    Hi Everyone,
    I need some help with setting up HTTP Receiver Channel.
    What I am trying to do is download some files from a URL. e.g www.xyz.com/download.asp.
    So I have set up a RFC destination to Remote server then we through a dummy message from the HTTP client to trigger the channel. It is all good and working. However the issue part is username/password has to be sent as application/x-www-form-urlencoded or multipart/form using POST method.
    So it has to go something like this username=abc&password=123
    And this is the part where I am stuck. I have read a bit about it and sap documentation suggests using prolog and epilog but I don't seem to find any example of it anywhere. If someone has done anything similar can they please help. Can't find any source relevant.
    regards

    Hi,
    Yes I understood your steps and the problem (actually after posting reply i had some doubts in my mind too, so went on a SDN forum hunt)
    After doing a bit of research work my finding are:
    1. IT is difficult to use http adapter with this content type as the credentials given in http adapter is not used when you have application/x-www-form-urlencoded. The thread which helped me  to understand was this
    Regarding Content type application/x-www-form-urlencoded in HTTP Adapter
    2. There in the thread stefan is proposing java proxy for doing this type of connectivity so next search tool for me was google. Doing a bit of search i found this SUN link http://developers.sun.com/mobility/midp/ttips/HTTPPost/
    3. So as a solution for you I would propose to use a receiver java proxy and write the code as mentioned in SUN.
    Hope this may be of some help to you
    Regards
    Suraj

  • HTTP-Receiver: Code page conversion error from UTF-8 to ISO-8859-1

    Hello experts,
    In one of our interfaces we are using the payload manipulation of the HTTP receiver channel to change the payload code page from UTF-8 to ISO-8859-1. And from time to time we are facing the following error:
    u201CCode page conversion error UTF-8 from system code page to code page ISO-8859-1u201D
    Iu2019m quite sure that this error occurs because of non-ISO-8859-1 characters in the processed message. And here comes my question:
    Is it possible to change the error behaviour of the code page converter, so that the error will be ignored?
    Perhaps the converter could replace the disruptive character with e.g. u201C#u201D?
    Thank you in advance.
    Best regards,
    Thomas

    Hello.
    I'm not 100% sure if this will help, but it's a good Reading material on the subject (:
    [How to Work with Character Encodings in Process Integration (NW7.0)|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42]
    The part of the XSLT / Java mapping might come in handy in your situation.
    you can check for problematic chars in the code.
    Good luck,
    Imanuel Rahamim.

  • RFC TO HTTP receiver scenario.Adding file name to HTTP receiver

    Hi All,
    Scenario is ZBAPI  ->XI-> HTTP conncetivity to EXternal Partners .
    ZBAPI sends the Partner data informtaion to XI .  I need to create a Partnerdata xml in XI and pass it to HTTP Connectivity (Certificates ) to External Partners
    Connectivity is working but I need to add the time stamp to the Partner data xml in the HTTP Receiver .
    I dont get the time stamp in ZBAPI
    I checked many blogs to create UDF of getfilename, dynamic configuration , but here there is no FTP sender channel .
    Can someone help me in giving ideas as hope to assign the time stamp in runtime to HTTPS Receiver Channel .
    Thank you ,
    Best Regards,
    Vara

    Hi Vara,
    In your question you actually mentioned three different communication methods (HTTP, HTTPS and FTP), but only one of them can really work with files and it is the FTP adapter. Moreover, what you need is the Receiver FTP Communication Channel, not the Sender one (as you need to deliver your message to an external system, not to collect it from there). What you need to do is find your Receiver Communication Channel, go to Advanced tab and mark "Use Adapter-Specific Message Attributes", as well as the File Name (that appears once you mark the first one). Then, in your message mapping, you just put the current timestamp to the respective dynamic configuration parameter. Find an example of how to make the whole change [here|http://www.****************/Tips/XI/ASMA/Index.htm].
    However, if I misunderstood you and you need to use the current timestamp in the message body instead of the file name, it will be even simpler. In this case, just go to your Message Mapping and in the target field, put the "currentDate" function from the "Date" group, then double click on it, click the "extended view" button and put your expected date and time format.
    Hope this helps,
    Grzegorz

  • Service Number/Port Number in HTTP receiver adapter

    Dear Experts,
    I have a scenario where I am to do HTTP Post to a 3rd party web application via a url in the following format:
    https://x.y.info/abc/sap/customer.cgi
    The HTTP Post data is submitted to the CGI script which is then processed further by the web application. The URL works ok via IE or even PI soap receiver adapter is able to post XML message to the URL but using SOAP.
    But I have to do only HTTP Post and now my problem is that the URL dont have a so called port number that I can fill in the "Service Number" field in HTTP receiver channel or in SM59.
    Does SAP always need a service number or how to deal with this case where server doesnot expose the port.
    Thanks in advance.
    Br
    Suman

    Hello,
    The HTTP Post data is submitted to the CGI script which is then processed further by the web application. The URL works ok via IE or even PI soap receiver adapter is able to post XML message to the URL but using SOAP.
    By definition, the SOAP Adapter is also using HTTP POST as its HTTP method the only difference is that there is a SOAP Envelope that is being sent.
    But I have to do only HTTP Post and now my problem is that the URL dont have a so called port number that I can fill in the "Service Number" field in HTTP receiver channel or in SM59.
    Service number is the port number of the URL that you will be connecting to, if it is not shown, it is assumed that it is 80 for http and 443 for https (as Gzegorz mentioned). Since you are using HTTPs, you should use HTTP Destination that points to an SM59 configuration.
    Hope this helps,
    Mark

Maybe you are looking for