Setting interface name dynamically from client for SOAP Adapter...

Hi,
does anyone have experience in setting the sender interface name in the HTTP-SOAP request dynamically? I have followed the instructions in "How To Use the XI 3.0 SOAP Adapter" on page 17 (see also SAP Note 856597) which say:
"If you select Use Encoded Headers and Use Query String,
[...]The sender SOAP adapter creates the XI message header according to the
information provided in the query string. [...] In the sender SOAP adapter, you can use only some of the parameters, but the first
parameter must always be the version. For example, you send from the Web service client to the following URL: http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet?channel=<party>:<service>:<channel>&version=3.0&Interface=http%3A
%2F%2Fsap.com%2Ftest%5ETest
This will overwrite the default interface and namespace of the sender channel."
This is exactly what I need! However, what I actually get as a response following this description is a SOAP:Fault with a java.lang.StringIndexOutOfBoundsException: String index out of range: -1.
Has anyone got this to work properly?
Thanks in advance.

Thank you for your input. I am using the following format for the call (with "x" standing for one letter each):
http://xix.xxx.xx.xxx:5xx00/XISOAPAdapter/MessageServlet?channel=:xx_xxx_xxx_xxxx:xx_xxx_x_SOAP_S&version=3.0&Interface=http%3A%2F%2Fxxxxxxxx.xx%2Fxxxxxx%2Fxxxxxxxxxxxxxxxxxxxxxxxx%5Exxxxxxxxxxxxxxxxxxxxxx
Anything wrong with that? With unchecked "Use Encoded Headers" and "Use Query String" it works fine (default interface) but as soon as I set these flags I get the SOAP-Fault response.
We are on XI 3.0 SPS18.

Similar Messages

  • Using Dynamic Configuration api for SOAP adapter

    I want to use Dynamic Configuration api to send a SOAP request to a webservice.
    tha value in my adapter is
    my Target URL  is
    http://xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet? channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true
    which is the corresponding field i have to set in Dynamic Configuration?
    I have written the following code is this right?
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    String temp = "http:/"+"/sap.com/xi/XI/System/SOAP";
    DynamicConfigurationKey key = DynamicConfigurationKey.create(temp, "TServerLocation");
    String varURL =
    "http:/"+"/xidr3.bcs.de:50000/XISOAPAdapter/MessageServlet?channel=:Routing2_Service:SS_SOAP_Sender_Working_June12&nosoap=true";
    conf.put(key,varURL);
    return "";

    Hi,
    Yes, your code looks fine. Can you let me know what is the error you are getting. Have you checked the Flag in your communication channel.
    Use Adapter-Specific Message Attributes
    Variable Transport Binding 
    Once you test your scenario you can see the Dynamic URL in your message Header by going to tcode sxmb_moni. See if you are able to find something called DynamicConfiguration in your message haeader. If yes what is the value set there.
    PS: From the target URL you posted It looks like your webservice is hosted on the XI box itself. Is it the same XI box or different box? Just curious to know.
    Reward point if answer is helpful
    Thanks
    Amit

  • Set Queue name dynamically in MQ adapter

    Hi,
    Kindly suggest, how to set Queue name dynamically in Mq adapter.

    Hi Ajay,
    Thanks for your response.
    Below mentioned property value works fine for JMS adapter.
    Am looking for the property name of MQ adapter.
    Tried to set the queue name to the property jca.mq.ISpec.EnqueueMsgToQ and failed.
    Could you please provide the property name for MQ adapter

  • How to write won WSDL file for SOAP adapter ?

    Hi experts
      Can any one expalin me how to write WSDL file  for SOAP adapter ?
      What and all things i need to know ? i have no idea on this....
      I got the business but to WSDL ...i am very new to this
    Adv...thanks
    Rakesh

    HI,
    Please see the below links,
    Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii
    Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a61ff
    /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client
    /people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12
    Regards
    Chilla..

  • Enabling https for SOAP adapter

    Hello all,
    Can anyone suggest how to  enable https for SOAP adapter in PI system?
    Thank You,
    Regards,
    Hasan

    Hi Hasan,
    CHeck the blog :/people/rahul.nawale2/blog/2006/05/31/how-to-use-client-authentication-with-soap-adapter which guides you clearly
    Also check SAP Note#891877 for reference.
    Thanks and Regards,
    Naveen

  • Adapter specific message attributes for SOAP adapter

    Hi all,
    I  have gone through the SAP Help Documents for configuring SOAP Communication Channel. I am unable to understand how to implement ASMA for Soap adapter.
    Please provide some links to help me understand the same
    Many Thanks,
    Neha

    Hi Neha,
    pls do chk the below links for SOAP adapter message attributes
    http://help.sap.com/saphelp_nwpi71/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/content.htm
    http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/sap_xi/sapximst38.htm
    http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/doc/webservices/webservices16.htm
    Regards
    Sampath

  • Dynamic UserID/Password for file Adapter

    Hi,
    How to use dynamic UserId/Password for file adapter ?
    (Sender/Receiver)
    In our case the Id/Pwd of FTP Site changes freguently.
    Can anyone help.
    Thanks in Advance
    Regards
    Chemmanz

    Hi Chemmanz,
    >>>>In our case the Id/Pwd of FTP Site changes freguently.
    but do you have those passwords in the message payload?
    if not then you will still have to fill it somewhere right?
    BTW
    the only way would be to use java proxies and write a simple ftp adapter inside it (or your own adapter)
    but this is not possible in standard I believe
    Regards,
    michal

  • How to externalize JNDI name (setting JNDI name dynamically)

    Hi,
    In adapters such as ftp, database, we have to specify the jndi name. This binds the adapter to a particular jndi name. While this is certainly better than binding the adapter directly to the physical resource, I was wondering if it is possible to have even more flexibililty- setting the jndi name dynamically.
    Basically my requirement is to develop a web service that reads a file from a FTP location. I know I can externalize the filename and directory, but I am wondering how to set the ftp location dynamically.
    http://darwin-it.blogspot.com/2008/03/configuration-of-ftp-synchronous-get.html provides the answer if I wish to set the hostname, portname, user id and password.
    But I want to setup the FTP adapter in AS, and then use that JNDI name in my service. Is it possible...I am using SOA 10.1.3.3
    Regards,
    Amit

    I was able to access the files. Thanks.
    The example shows how to use the header properties in file adapter, and it sets the filename and directory elements dynamically....this I already knew.
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:PassFilePropertiesDynamicallyProcessRequest/client:FileName"/>
    <to variable="outHeader" part="outboundHeader"
    query="/ns2:OutboundFileHeaderType/ns2:fileName"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/client:PassFilePropertiesDynamicallyProcessRequest/client:Location"/>
    <to variable="outHeader" part="outboundHeader"
    query="/ns2:OutboundFileHeaderType/ns2:directory"/>
    </copy>
    What I want to know is, what is the element to be added in the ftpAdapterOutboundHeader.wsdl that denotes the FTP Location (which is different from the directory).
    I guess your next update which would talk about FTP adapter, would clarify things.
    Thanks for your replies,
    Amit

  • JMS Receiver - set DCJMSMessageProperty value dynamically from message

    Hi,
    I have a JMS Receiver where I want to set a DCJMSMessageProperty value to a value from the message contents
    For example:
    Scenario 1:
    Message content field <EANCode>123456</EANCode>
    DCJMSMessageProperty6 should be set to 123456 in this instance
    Scenario 2:
    Message content field <EANCode>99999</EANCode>
    DCJMSMessageProperty6 should be set to 99999 in this instance
    I know how to set this property to a fixed value using the module DynamicConfigurationBean but do not know how to make this value to use message content.

    Hi,
    As stated earlier, I need to set DCJMSMessageProperty on the communication channel to a value held in the content not a fixed value.
    I will use a UDF to do this now as there are only certain dynamic values you can use using the DynamicConfigurationBean such as message ID, interface name etc. I want to use something in the content so a UDF should be able to do this.
    Cheers
    Colin.

  • Dynamic web-client for WebService

    Hi All,
    I want to create a generic Web Client for various in-house webservices.
    The page to prepare and submit SOAP request to the WebService should be dynamically formed according to the WSDL, so that I dont have to write new html/jsp page for each new WebService.
    Can you suggest any library to achieve this?
    Thanks in Advance..

    hello
    even if you use html client you wanna allow access on ldap server box and port in the firewall.

  • Searching volume on server from client for content in file

    We have 9 macs networked to a mac G4 server running server software for 10.3.9. All macs are running 10.4.9. Is there a way to search from a network client for a the content of a file located on the server, to which the client has access privileges.

    Since the server is running 10.3.9, it won't be indexed through Spotlight..
    You might try using EasyFind.
    Just be aware that every time you do a content search, it has to read through the files on the server, rather than relying on a pre-built index, so search times may be a lot longer than a comparable Spotlight search. You can mediate that to a degree by narrowing the range of the search. (Searching a particular folder instead of the whole volume)

  • Generate Message Interface for SOAP Adapter

    Hi All,
    I want to implement a scenario like this:
      ABAP System -> RFC Adapter -> XI -> SOAP Adapter -> Web Service
    Currently the WSDL of the web service is known. It is http://www.abysal.com/soap/AbysalEmail.wsdl
    How can I generate the inbound message interface in XI according to the WSDL?
    Thanks
    Jerome
    Message was edited by: Jerome Zhao
    Message was edited by: Jerome Zhao

    Hi Jerome,
    Import the WSDL as an external definition and then you can create a inbound Message interface based on that external definition.
    Regards,
    Sridhar

  • HTTPS configuration for SOAP adapter

    Hi,
    We have a requirement where we need to send the request to the target URL with https protocol.
    We have raised a request to configure the XI server for HTTPS.
    HTTPS has been configured on both ABAP stack and J2EE stack.
    But we could not find the HTTPS option in the drop down list of transport protocol in receiver Soap adapter.
    For this do we need to do any setting changes on the XI server after the configuration?
    Thanks,
    Jyothsna .

    Hi,
    You need to setup SSL layer for HTTPS endpoint.
    Possible HTTP security levels are (in ascending order):
    HTTP without SSL
    HTTP with SSL (= HTTPS), but without client authentication
    HTTP with SSL (= HTTPS) and with client authentication
    Please go through below link for referance (above information is from below link)
    Step by step guide for SSL security
    step by step guide to implement SSL
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ff/7932e4e9c51c4fa596c69e21151c7d/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/13/4a3ad42ae78e4ca256861e078b4160/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3a/7cddde33ff05cae10000000a128c20/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0a/0a2e0fef6211d3a6510000e835363f/content.htm
    General guide
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a09f3d8e-d478-2910-9eb8-caa6516dd7d9
    Message level security
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d024ca8e-e76e-2910-c183-8ea4ba681c51
    Regarding message level you can encrypt the message using certificates.
    For both of this basis team has to deploy the releavant certificates in XI ABAP Stack or Java stack.
    Generally if the scenarios are intra company we dont use any transport level or message level security since the network is already secured.
    Check the following links.. you will get the information all about the securities...
    http://help.sap.com/saphelp_nw04/helpdata/en/f7/c2953fc405330ee10000000a114084/content.htm
    Also read thru this link for message level security - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d024ca8e-e76e-2910-c183-8ea4ba681c51
    Also find soeminformation in these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/882a40ce93185de10000000a1550b0/frameset.htm
    /people/aparna.chaganti2/blog/2007/01/23/how-xml-encryption-can-be-done-using-web-services-security-in-sap-netweaver-xi
    Thanks
    Swarup

  • PI 7.0: Message prioritisation in adapter engine for SOAP adapter.

    Hi All,
    We have both high and low priority synchronous messages using the SOAP sender Channel of the Central AE.
    How can we make sure that High Prio messages ALWAYS get a thread right away when entering the AE? Installing a separate AE is not an option.
    When I look in RWB->Component Monitoring->Adapter Engine->Engine Status in the Queues tab, I see this:
    SOAP_http://sap.com/xi/XI/SystemCall Yes 5(5) 5
    SOAP_http://sap.com/xi/XI/SystemRqst Yes 5(5) 5
    When a new High Prio message enters, it can take more than one hour before it gets processed, because there are 1000 Low Prio messages also using the same 5 available Threads...
    This delay is of course unacceptable for High Prio messages.
    I checked in many other threads in SDN, looks like we cannot priortise for particular messages in PI 7.0, as we can do only at adapter level, not at interface level.
    I was thinking of going to the approach which was suggested by "Gr, Wout" in the below thread. 
    xi prioritization in adapter engine (ae, af, adapter framework, java, jca)
    Creating own adapter "MYSOAP" by copying the metadata of SOAP adapter. By that we can use our own adapter "MYSOAP" for high priority interfaces.
    what you think guys about this approach?
    Is there any thing I need to take care going through this approach apart from copying SOAP metadata into my own adapter.?
    Thanks
    Deepthi

    increased thread count for soap adapter

  • For  SOAP Adapter

    HI Friends,
    i getting gold  value from file i need to update the value in webservice for every second in website.So
    how to update the value  dynamicallly  in websystem using soap adapter receiver is file adapter is there any options in soap adapter

    You can do file --> PI --> SOAP (Receiver)  asynchronous to achieve this.
    Elaborate more about dynamically every second...

Maybe you are looking for

  • Issue in Migration from JDev 10.1.2  to JDev 10.1.3

    A web app developed under JDev 10.1.2. Now try to migrate it to JDev 10.1.3. During the migration process, encountered a message: Migrating /D:/Oracle/App/webroot/WEB-INF/struts-config.xml from JDev 10.1.2 to JDev 10.1.3 Detected custom lifecycle in

  • CLR to get the SQL Server Data into .CSV File

    Hi, I transformed 10 columns 1000 rows from the source table to 1 column 1000 rows in the destination table by making the comma separated columns ( Just like .. Insert into DestinationTable SELECT col1+','+col2 .... FROM SourceTable Then I want to ta

  • Job CRM_TERRMAN_PROC_REL failed with error TSV_TNEW_PAGE_ALLOC_FAILED

    Hi Experts I have scheduled the CRM_TERRMAN_PROC_REL using INITIAL run to update the territory on accounts. In between INITAL run got failed/cancelled due to error "Internal session terminated with a run time error TSV_TNEW_PAGE_ALLOC_FAILED".. I hav

  • Driver update for 8600 failed

    Using  HP product  CM 750 A  OfficeJet Pro 8600 Plus with  ethernet cable connected to  Mac  21.5", OSX 10.9.5 Maverick. Running HP version 9.4  (447.2), tried to up date to version  12.34 because of two problems: 1. Amost every time I  put the Mac t

  • Account determination not valuated via F.05

    Dear Experts, In account determination for exchange rate differences valuation, we have account XXXX as Balancesheet Adjustment. Some GL account under XXXX balancesheet adjustment are : yyy, zzz In January 2011, both account yyy and zzz are valuated