Call Webservice URL with multiple methods in PI 7.0

Dear Gurus,
I have the following requirement:
I need to make multiple calls to a same webservice (URL) which have multiple methods on its WSDL. I know it is possible in PI 7.1. But is it possible in PI 7.0?
I have already designed and configured the scenarios and generated ABAP Proxy. When I call the endpoint without specifyng the method I got the following message:
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!--  Inbound Message
  -->
- <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: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: Endpoint {http://mywebserviceurl.com} does not contain operation meta data for: {http://mynamespace}MyMessageInterface</SAP:AdditionalText>
  <SAP:ApplicationFaultMessage namespace="" />
  <SAP:Stack />
  <SAP:Retry>M</SAP:Retry>
  </SAP:Error>
Please somebody could help me to solve this issue?
Thank you in advance.
Fabio Purcino

>>. But is it possible in PI 7.0?
Just few cents..
Test using SOAPUI or  XMLSPY and use that same WSDL URL in the target URL of Communication channel. Just to make sure you use the right endpoint.
or
You can specify the method name as  soap action dynamically using udf in mapping and see how it behaves.

Similar Messages

  • How to call stored procedure with multiple parameters in an HTML expression

    Hi, Guys:
    Can you show me an example to call stored procedure with multiple parameters in an HTML expression? I need to rewrite a procedure to display multiple pictures of one person stored in database by clicking button.
    The orginal HTML expression is :
    <img src="#OWNER#.dl_sor_image?p_offender_id=#OFFENDER_ID#" width="75" height="75">which calls a procedure as:
    procedure dl_sor_image (p_offender_id IN NUMBER)now I rewrite it as:
    PROCEDURE Sor_Display_Current_Image(p_n_Offender_id IN NUMBER, p_n_image_Count in number)could anyone tell me the format for the html expression to pass multiple parameters?
    Thanks a lot.
    Sam

    Hi:
    Thanks for your help! Your question is what I am trying hard now. Current procedure can only display one picture per person, however, I am supposed to write a new procedure which displays multiple pictures for one person. When user click a button on report, APEX should call this procedure and returns next picture of the same person. The table is SOR_image. However, I rewrite the HTML expression as follows to test to display the second image.
    <img src="#OWNER#.Sor_Display_Current_Image?p_n_Offender_id=#OFFENDER_ID#&p_n_image_Count=2" width="75" height="75"> The procedure code is complied OK as follows:
    create or replace
    PROCEDURE Sor_Display_Current_Image(p_n_Offender_id IN NUMBER, p_n_image_Count in number) AS
        v_mime_type VARCHAR2(48);
        v_length NUMBER;
        v_name VARCHAR2(2000);
        v_image BLOB;
        v_counter number:=0;
        cursor cur_All_Images_of_Offender is
          SELECT 'IMAGE/JPEG' mime_type, dbms_lob.getlength(image) as image_length, image
          FROM sor_image
          WHERE offender_id = p_n_Offender_id;
        rec_Image_of_Offender cur_All_Images_of_Offender%ROWTYPE;
    BEGIN
        open cur_All_Images_of_Offender;
        loop
          fetch cur_All_Images_of_Offender into rec_Image_of_Offender;
          v_counter:=v_counter+1;
          if (v_counter=p_n_image_Count) then
            owa_util.mime_header(nvl(rec_Image_of_Offender.mime_type, 'application/octet'), FALSE);
            htp.p('Content-length: '||rec_Image_of_Offender.image_length);
            owa_util.http_header_close;
            wpg_docload.download_file (rec_Image_of_Offender.image);
          end if;
          exit when ((cur_All_Images_of_Offender%NOTFOUND) or (v_counter>=p_n_image_Count));
        end loop;
        close cur_All_Images_of_Offender;
    END Sor_Display_Current_Image; The procedure just open a cursor to fetch the images belong to the same person, and use wpg_docload.download_file function to display the image specified. But it never works. It is strange because even I use exactly same code as before but change procedure name, Oracle APEX cannot display an image. Is this due to anything such as make file configuration in APEX?
    Thanks
    Sam

  • Call an URL with ABAP program (Method POST)

    Hi everyone,
      I need to call an URL for example "www.google.com?q=hello" with ABAP using POST method.
      Like the FM "Call_Browser", but my variable q=hello need to be passed with POST method.
    Any idea ?
    Thanks.

    here is one example I use from abap to call a web browser ITS solution with a project number, I guess you can adapt the it for your purpose?
          check <data>-pspid is not initial.
          concatenate gv_pfs_link
                      'zpfs2?~okcode=PROJ_SEL&zpspid=<###>&sel_action=X'
          into lv_url.
          replace '<###>' with <data>-pspid into lv_url.
          condense lv_url no-gaps.
          cl_gui_frontend_services=>execute(
            exporting document = lv_url ).

  • WebService with multiple methods

    Hello to everybody.
    I need an help with the develop of a WebService that it comes with 2 methods: I have already created a lot of WebService in JCAPS6 with only one method and everything was gone well. I tried to implement a WebService with 2 or more method but when I tried to deploy the project I always received this error message: "Deploying application in domain failed; Deployment descriptor file META-INF/application.xml in archive [nameOfArchive]. Duplicate unique value [element] declared for identity constraint of element "application"."
    Theese are the steps that I have done:
    1) create an XSD for Input message
    2) create an XSD for Output message
    3) create a WebServiceDefinition with 2 methods "Method1" and "Method2" and all message (input/output) implemented
    4) create a BusinessProcess (bp1) to implement Method1 operation
    5) create a BusinessProcess (bp2) to implement Method2 operation
    6) create a Connectivity map whith "bp1" and "bp2" directly connected with a new "Web Service External Application"
    7) create a deployment profile
    The "Build" operation was gone well but the "Deploy" operation always returned me an exception.
    What can I do to develop this type of WebService?
    Anyone can help me?
    Thank you in advance.
    Best regards,
    Marco Tranquillin

    My collegue found a solution:
    1) create WSDL with 2 or more operations (with input,output and fault messages);
    2) drag & drop "Event Based Decision" element into Business Process;
    3) link "Start" to "Event based decision";
    4) link "Event based decision.end" to "End";
    5) link a scope (with inside what you want) with "Event based decision";
    6) choose your operation from WSDL and drag & drop it OVER the icon with the mail icon;
    7) link operation.reply with the output scope and with the element "Event Based Decision.end";
    Marco Tranquillin

  • ABAP WebDynpro: Call a URL with POST-parameters?

    Hi all,
    I want to call a URL from an ABAP WD method with additional data. I know that this is simply possible via the Window Manager, passing a URL. Adding additional parameters inside the URL is of course also possible using "&" and "?" separators.
    Is it somehow possible to call such a URL out of WebDynpro with additional POST data (e.g. an XML datastream)?
    Best regards.
    Alexander

    Hi Alex.,
    As u said that u know how to call URL and pass parameters using window manager., and i am not sure about XML data stream.!!
    I can advise u to post ur thread here: [Web Dynpro ABAP Forum|Web Dynpro ABAP;
    U will get some useful inputs..
    Thanks & Regards
    Kiran

  • Calling Amazon URL with XML response

    Hello,
    I would like to call a specific amazon-services via http://webservices.amazon.de/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=myAC&AssociateTag=associateTag-21&ItemId=9783836212007&ResponseGroup=Large&Operation=ItemLookup but this is not a web service (I think).
    Could someone tell me have to call the URL and how I can handle the response? With a web service or bapi it wouldnu2019t be a problem but I donu2019t know to handle thisu2026
    I will try it out with CL_HTTP_CLIENT (hint of Thomas Jung). But did this someone before and how to handle the respone XML?
    Can someone help me out with this?
    Thx, Vanessa

    you can consume this either using SOAP protocol of using REST approach (CL_HTTP_CLIENT)
    on how to consume this using CL_HTTP_CLIENT, just do a where used list of this class in your system or search here in the forum, you will find lot of examples.
    more on this how to construct the url for this can be found at
    http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?rest-signature.html
    once you consume this and get the xml result, you can either parse it using XSLT program or if you are not comfortable you can use FM SMUM_XML_PARSE to parse the XML
    Hope this helps.
    Regards
    Raja

  • Can I call an object with synchronized methods from an EJB

    I have a need for multiple threads (e.g. Message Driven Beans) to access a shared object, lets say a singleton, I'm aware of the "you can't have a singleton in the EJB world" issues) for read/write operations, so the operations will need to be synchronised.
    I've seen various statements such as you can't use read/write static fields in EJBs and you can't use synchronisation primitives in EJBs but I've also seen statements that say its okay to access utility classes such as Vector (which has synchronised methods) from an EJB.
    Does anyone know if there is a definitive answer on this? What are the implications of accessing a shared object with synchronised methods from multiple EJBs? Is it just that the EJB's thread may block which limits the ability of the container to manage the EJBs? In the Vector example above (from Professional Java Server Programming) did they mean its okay to use these utility classes provided they aren't shared across threads?
    If I can't use a plain old Java Object does anyone know if there are other potential solutions for sharing objects across EJBs?
    In my problem, I have an operation that I want to run in a multi-threaded way. Each thread will add information to the shared object, and this info may be used by the other threads. There's no lengthy blocking as such other than the fact that only one thread can be adding/reading information from the shared object at a time.
    I've trawled through this forum looking for similar questions of which there seem to be many, but there doesn't seem to be any definitive answers (sorry if there was and I missed it).
    Thanks
    Martin

    You can share objects among EJB's or among objects used by one or more EJB's. You can use synchronization primitives - nothing will prevent you from doing that.
    After all, the container classes, JVM-provides classes, JDBC, JCA, JNDI and other such classes do all of this with impunity. You can too. You can use file and socket I/O as well, presuming you configure the security profile to allow it. Should you? Well it depends on what you need to accomplish and if there is another practical alternative.
    Yes the specification warns you not to, but you cannot be responsible for the interior hidden implementation of classes provided to you by the JVM or third parties so you can never truly know if your are breaking these written rules.
    But when you do these things, you are taking over some part of the role of the container. For short running methods that only block while another thread is using the method or code block and no I/O or use of other potentially blocking operations are contained in the method/block, you will be fine. If you don't watch out and create deadlocks, you will harm the container and its managed thread pool.
    You should not define EJB methods as synchronized.
    Also, if you share objects between EJB's, you need to realize that the container is free to isolate pools of your EJB in separate classloaders or JVM's. It's behavior can be influenced by your packaging choices (use of .ear, multiple separate .jar's, etc.) and the configuration of the server esp. use of clustering. This will cause duplicate sets of shared classes - so singletons will not necessarily be singleton across the entire server/cluster, but no single EJB instance will see more than one of them. You design needs to be tolerant of that fact in order to work correctly.
    This isn't the definitive answer you asked for - I'll leave that to the language/spec lawyers out there. But in my experience I have run across a number of occasions where I had to go outside of the written rules and ave yet to be burned for it.
    Chuck

  • Calling external URL with POST data

    Hi:
    In my action bean I have to call and external URL (outside my domain), and along with this URL 'POST' data. I have tried the following code:
    try {
    FacesContext lclFC = FacesContext.getCurrentInstance().getFacesContext();
    lclFC.getExternalContext().getRequestMap().put("x_loc_zip","94804");
    lclFC.getExternalContext().redirect("http://www.mysite.com/personals/search/search.html");
    } catch (IOException e) {
    throw new FacesException(e);
    finally {
    lclFC.responseComplete();
    This works fine in calling the other URL, but no data is sent thru the post protocol. I have no control to the site I am calling....
    I have also tried
    ExternalContext ectx = FacesContext.getInstance().getFacesContext().getExternalContext();
    HttpServletRequest request = (HttpServletRequest) ectx.getRequest();
    HttpServletResponse response = (HttpServletResponse) ectx.getResponse();
    RequestDispatcher dispatcher = request.getRequestDispatcher("http://www.mysite.com/personals/search/search.html");
                   dispatcher.forward(request, response);
    But this tends to put a "/" at the front of the called URL. Can someone please recoomed the coorect way to call a URL from yr action bean and sending it data thru post protocol. I also wish that this new URL should now be displayed within the browser. This is urgent, yr quick reply is appreciated

    Myfaces sandbox form gives the ability to change its action url and port. Look here:
    http://myfaces.apache.org/sandbox/form.html

  • OO ALV hotspot creation not working with Multiple Methods.

    Hi,
    I create a Test Report for Hotspot creation - It works. Code is  as -->
    class my_event_handler definition.
      public section.
      methods :
      handle_hotspot_click for event hotspot_click of cl_gui_alv_grid importing e_row.
      endclass.
      class my_event_handler implementation.
        method handle_double_click.
          read table itab index e_row-index into wa.
          if sy-subrc = 0.
           set PARAMETER ID 'ANR' FIELD order
    call transaction IW33.         
    endif.
      endclass.
    BUT - When I take multiple methods in PUBLIC SECTION. & Call it from START-OF-SELECTION the HotSpot is NOT WORKING
    CLASS get_details DEFINITION.
      PUBLIC SECTION.
        METHODS:  data_gathering,
                  display_alv.
                  handle_hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid IMPORTING e_row .
      PRIVATE SECTION.
        CLASS-METHODS: get_data,
                       merge_data,
                       set_header IMPORTING er_table TYPE REF TO cl_salv_table,
                       set_coloum IMPORTING pr_columns TYPE REF TO cl_salv_columns_table.
    ENDCLASS.       
    CLASS IMPLEMENTATION - IS SAME AS ABOVE.
    START-OF-SELECTION.
      CREATE OBJECT lr_details.
      lr_details->data_gathering( ).
      IF gi_final IS NOT INITIAL.
        lr_details->display_alv( ).
    *    lr_details->handle_hotspot_click( EXPORTING row = ?  ).  " What to take?
      ELSE.
        MESSAGE 'No Data for the Selection Critaria' TYPE 'S' DISPLAY LIKE 'E'.
      ENDIF.
    How get Hotspot in this Case, Do I need to take the Method in START-OF-SELECTION ?
    if YES - then what to Export ? If NO - then how to create Hotspot in this case?

    Thanks Neil. Now it's working.
    For this One line clue - I really searched a lot.
    Thank you so much.
    If checking this link For Reference -->
    Search 'SET HANDLER' in Google for sample programs.
    * Before Class Defination
    CLASS get_details DEFINITION DEFERRED.
    DATA: event_receiver1  TYPE REF TO get_details,
    * At the End of Method display_alv (Check question for Methods)
    CREATE OBJECT event_receiver1.
    SET HANDLER event_receiver1->handle_hotspot_click FOR ALL INSTANCES.

  • Call webservice URL through view, on click of a button

    Hello Gurus,
    I have a local development webdynpro project . My requirement is that on click of a submit button, webservice is called and it returns a string which i need to display on the view. I searched a lot but couldnt find the exact step by step process.
    While creating the web service model, which one dhould i choose n then after model creation
    what code should i write to call webservice.
    Regards
    nishu

    Hello All,
    Thanks for all your replies. I am able to create model and bind it to my component controller.
    But when i write the code to call webservice , i am unable to instanciate the model....
    I wrote the following code :
    testmodel = new Soap(); - (1)
    Request_ServiceSoap_insertTicket insert = new Request_ServiceSoap_insertTicket(testmodel); - (2)
    insert.setUserId("CCM_RUS");   
    wdContext.nodeRequest_ServiceSoap_insertTicket().bind(insert);
    private Soap testmodel;
    In Above code , line (1) , 'Soap' is the name of my WebService model, which i made by importaing the wsdl file from my local system. And line (2), i amd getting error :
    the constructor Request_ServiceSoap_insertTicket(testmodel) is undefined.
    If i remove the 'testmodel' and just write Request_ServiceSoap_insertTicket() , the webservice is not called, since model instantiation is necessary for webservice Models. I am stuck
    Please help
    Thanks
    Nishu
    Edited by: nishu_rj on Aug 23, 2011 9:01 AM

  • Web service URL with multiple parameters

    Hi all,
    I'm trying to make use of a web service that takes multiple parameters without the use of a proxy (we're using NW 7/7.1 and  proxies aren't supported -  i.e. i'm getting the same thing as described here: Proxy object to consume web service)
    So instead I'm trying to follow a method similar to what is done [here|http://sample-code-abap.blogspot.com/2009/05/simple-code-consume-web-service-using.html]
    When I put the web service url into a browser and click on the operation it comes up with
    http://portLocation/company/webservice.asmx?op=operation
    and comes up with the sample SOAP request and response as normal.
    Now with most web services with one parameter, the url translates to something like: http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?CountryName=australia
    Which works fine.
    However, the web service i'm using has 4 parameters and when I try and translate my url to be like this (http://portLocation/Company/WebService.asmx/Operation?parameter1=XX&parameter2=XX&parameter3=XX&parameter4=XX) I get, "The page cannot be displayed"
    Can anyone suggest a way that I might be able to get around this or what I'm doing wrong.
    Thanks in advance.

    Hi,
    are you sure that your Operation is valid? So for example in your [example|http://www.webservicex.net/globalweather.asmx] there are just two operations: [GetCitiesByCountry|http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry] and [GetWeather|http://www.webservicex.net/globalweather.asmx/GetWeather]. You are right about passing multiple parameters. You need to put ? after valid URL and then pairs <name>=<value> separated by &. Don't forget that you need to encode <name> and <value> to avoid problems.
    Cheers

  • Build/call Query URL with selections using JavaScript???

    I have created a web query to list specific materials and each row has a checkbox for the user to select which materials they would like to work with.  Once they push the "Submit" button I have collected the materials they selected into a Javascript array. 
    I would now like to call a different query with the materials selected as a filter.  Can anyone show me how to build an URL to call the query and use the materials as a filter?  There could be 10 or 20 selected materials...
    Thanks for any direction you can provide!

    Hi,
    the form should look like this:
    <form action="<SAP_BW_URL>" method="post">
    <input type="hidden" name="CMD" value="LDOC"/>
    <input type="hidden" name="QUERY" value="yourQueryname"/>
    <input type="hidden" name="INFOCUBE" value="yourInfoCubename"/>
    <input type="hidden" name="FILTER_IOBJNM" value="0MATERIAL"/>
    <input type="checkbox" name="FILTER_VALUE_1" value="Mat1"/>
    <input type="checkbox" name="FILTER_VALUE_2" value="Mat2"/>
    <input type="checkbox" name="FILTER_VALUE_N" value="MatN"/>
    <input type="submit" value=" Submit "/>
    </form>
    form Method has to be post because of url length restriction!
    Heike

  • How do I generate URL with multiple variables from input fields?

    I'm creating an ad with four input text fields labels fname, lname, city and prov, and I wanted to know how to generate URLs based on information entered into the fields. The text fields default to display "First Name," "Last Name," "City" and "State," respectively, but if a user does not enter information in those fields, I want the URL to behave as if those were empty, if that makes sense. The text fields are in a movie clip called "input_text" and the button is labeled "send". If any of you can provide insight, I would be greatly appreciative. Thank you.

    1. use if-statements to see if the text properties of your textfields meets your requirements for creating that url.
    2. you can use the flash string methods and properties to create your url.
    p.s.  the plus sign + can be used to concatenate strings.

  • Create URL with multiple values for one parameter

    Post Author: cbamberg
    CA Forum: General
    While I have no problems to create the URL to open a report with a single value for a parameter from my Java application, I don't know how to format multiple values for a parameter when I want to pass the "&prompt0=" value. The values I want to pass are numbers, not strings.
    Anyone can help?

    Hi gayatri,
    you need to select both the product id and custname.put a count on the prodid column and write a condition of count>1 and apply it.
    Thanks
    Hari

  • URL with multiple ItemValues (formatted numbers)

    Hi, guys.
    Another day, another prob... oops, wrong word, suppose to be another solution...
    I have a page with simple report on it.Each record has a link which pointed to javascript
    javascript:printable_rpt('#col1#',#col2#,#col3#,#col4#,#col5#,#col6#)
    (col1 is a date, other columns are numbers like 123,456)
    <script type="text/javascript">
    function printable_rpt(p1,p2,p3,p4,p5,p6)
    var v_values = p1+','+p2+','+p3+','+p4+','+p5+','+p6;
    url = 'f?p=&APP_ID.:2:&SESSION.::NO:RP:
    P2_HDN_1,P2_HDN_2,P2_HDN_3,P2_HDN_4,P2_HDN_5,P2_HDN_6:'+v_values;
    w = open(url,"Criteria",
    "Scrollbars=1,status=1,resizable=1,width=550,height=520,left=300,top=100");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    Page 2 is pure HTML page with the numbers i try to pass from page 1.
    Everything looks simple and workable. But... There is always some buts... :)
    Problem : because the numbers in report formatted with commas when
    page 2 opens i have a pieces of numbers in my hidden items. (i.e.
    if i sent 123,456 234,567 and so on, i get
    123 in p2_HDN_1
    456 in p2_HDN_2
    234 in p2_HDN_3
    567 in p2_HDN_4
    and so on...
    I searched help and found this :
    itemValues
    List of item values used to set session state within a URL.
    Item values cannot include colons, but can contain commas if
    enclosed with backslashes. To pass a comma in an item value,
    enclose the characters with backslashes. For example:
    \123,45\
    So i tryed to do something like this:
    v_values = p1+',\'+p2+'\,\'+p3+'\,\'+p4+'\,\'+p5+'\,\'+p6+'\';
    Unfortunatly it does not work, giving error "Object expected".
    Pls, help.
    Thnks in advance
    Mike

    Hi, Scott.
    Thanks for replay. I did try to put double backslashes and it did not work either. However it worked when i put double backslashes in javascript and single quotes in call for javascript :
    javascript:printable_rpt('#col1#','#col2#','#col3#','#col4#','#col5#','#col6#')
    var v_values = '\\'+p1+'\\,\\'+p2+'\\,\\'+p3+'\\,\\'+p4+'\\,\\'+p5+'\\,\\'+p6+'\\';
    Interesting...
    Thanks again for help.
    Mike

Maybe you are looking for

  • Support Pack General Question:- IMPORT_PROPER phase

    Hi All, Is there any command at OS level to complete IMPORT_PROPER phase of SPAM transaction (support pack import)?

  • Moving to Germany

    I am moving to Germany. Can I buy an Android phone in the states and use it in Germany with a different SIM card?

  • Not a developer but need help with runtime error, please

    Hi, I have downloaded a game called Fishdom, but it will not open. I get a " The application has requested the Runtime to terminate it in an unusual way" error message. The dialog box is labeled "Microsoft Visual C++ Runtime Library".  I checked my p

  • Trouble downloading CS6 Design & Web Premium for Mac

    When trying to download the instructions using the Download Manager, I get an "inactive plug-in" message even after installing the Java plugin and restarting the browser.  If I try the other option, I get a foreign language. Can anyone help?

  • IBooks won't open

    Since a little before upgrading to Yosemite, I have been unable to open my iBooks app on my MacBook Pro. It will either open to the spinning beach ball forever until I force it to quit, or it opens then shuts down as soon as I try to tap a book to re