Asyn Webservice call from SAP

Hi All,
We have created  client proxy using URL for Asyn method and for the proxy we created the  logical port in SOAMANAGER .
then used  method of  Client Proxy in program and execued the same .
Then we checked the result in SXI_monitor. The request for this method can be seen there but it shows an Error.
Error type is "Sequence" and Execution state is "WSRM_CREATE_FAILED".
I get an error
XRFC>                                                                
<
XRFC> TRACE SOAP RUNTIME - trace records                             
<
XRFC>                                                                
<
XRFC> ------------------------------------------------------------------  <
XRFC> E SOAP_RUNTIME 20120510151904.4227980 : CL_SOAP_RUNTIME_CLIENT 
<
XRFC> ->EXEC_PROCESSING Exception handling in SOAP runtime           
<
XRFC>                                                                
<
XRFC>                                                                
<
XRFC> E HTTP_TRANSPORT_BINDING 20120510151904.4121990 : CL_SOAP_HTTP 
<
XRFC> _TPBND_ROOT ->HANDLE_STATUS_CODE Received return code 500 (    
<
XRFC> Internal Server Error )                                        
<
XRFC>                                                                
<
XRFC>                                                                
<
XRFC> E SOAP_RUNTIME 20120510151904.4227690 : CL_SOAP_RUNTIME_CLIENT 
<
XRFC> ->EXEC_PROCESSING SOAP Fault Exception caught: : The message with   <
XRFC> Action 'http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence'
<
XRFC> cannot be processed at the receiver, due to a ContractFilter   
<
XRFC> mismatch at the EndpointDispatcher. This may be because of either   <
XRFC> a contract mismatch (mismatched Actions between sender and     
<
XRFC> receiver) or a binding/security mismatch between the sender and
<
XRFC> the receiver. Check that sender and receiver have the same     
<
XRFC> contract and the same binding (including security requirements,
<
XRFC> e.g. Message, Transport, None).                                
<
XRFC>                                                                
<
XRFC> ---------------------------------------------------------------------
XRFC> End of user trace
The request is reaching the server with error.
Attached are the screen shot of the input from SAP and the message at the receiver side .

Hi,
ist it, you want to consume a web service in ABAP?
That can be done, yes. Searching exactly this on SDN brings up a lot of content like this: [Providing and Consuming Web Services in ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9] from my colleague Peter Mc Nulty.
Regards,
Benny

Similar Messages

  • WebService call from SAP outside NetWeaver

    Hi,
    can I call a webService from SAP outside NetWeaver? E.g. to call it directly from a RFC function module or other components?
    Best regards
    Nicole

    Hi,
    ist it, you want to consume a web service in ABAP?
    That can be done, yes. Searching exactly this on SDN brings up a lot of content like this: [Providing and Consuming Web Services in ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9] from my colleague Peter Mc Nulty.
    Regards,
    Benny

  • Webservice call from PCo; FaultException: Authorization fail

    Hi,
    I am making a ME Webservice call from PCo.
    I have configured Destination System, added a service in Configuration tab.
    Using 'Test request message', i tested the call with all required inputs, the object is created in ME system.
    When the same service is triggered from PLC > PCo, the call fails and i see the following message in Log tab.
    UserName/password is correct..
    All the required systems are running.
    Log:
    ME Dispatcher Could not dispatch Message [id = 75c405c5-24d4-4f70-b19a-87f6b6ae0413].
    FaultException: Authorization failed. Please check security log for details.
    Server stack trace:
       at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
       at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
       at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
       at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
    Exception rethrown at [0]:
       at SAP.Manufacturing.Connectivity.WSDestination.WSDestination.Send(Guid notificationID, Dictionary`2 requestValues)
       at SAP.Manufacturing.Connectivity.WSDestination.WSDestination.Send(NotificationMessage message)
       at SAP.Manufacturing.Connectivity.Dispatcher.ProcessMessage(NotificationMessage message, DestinationBase destination)
       at SAP.Manufacturing.Connectivity.Dispatcher.DispatchMessageExecute(Message message, Boolean unlockMessage, Boolean& stopDispatcher)
    Am I missing anything?
    Version:
    ME: 6.1.4.9
    PCo:  2.3
    Thanks,

    Hello Shridhar, I guess you can  use use different user for authentication and user data inside XML request.
    In MII, I have used MESYS for authentication and other user name inside the request XML. But you need to make sure user name inside XML has ME_Integrator role.
    <me:UserId>USERID</me:UserId>
    Hope this helps.
    Thanks
    Hari

  • How can i debug a rfc being called from sap

    hello Gurus,
    We made a RFC call from SAP r3 to sap grc nfe......we did not receive any data in sap grc .......we go to SM58 and there it gives
    the message "Name or password is incorrect (repeat logon)u201D.
    How can i find out where the data has stuck.
    Please help.
    BR
    Honey

    HI,
    please have a look at the link below..
    this may help u !!!
    [Re: how can i debug a rfc being called from .net connector (NCO) v2.0?;
    Best of Luck !!1
    Regards
    Ravi

  • Steps required to enable webservice calls in SAP ECC 6.0

    Hi Friends,
    I'm working on XI, more on part of webservices and as I dont have a good knowledge on BASIS part, I would like to know the steps required to enable the webservice calls in SAP ECC 6.0.
    Blogs/documents could be helpful.
    Thanks in advance

    duplicate thread
    [Required infrastructure to enable web service calls in SAP ECC 6.0 system;

  • Invoke MII Transaction thru RFC Call from SAP

    Hi,
    We want to get the data from Oracle DB table thru MII (12.0.2).
    We need to use RFC call from SAP to MII.
    Is it possible to invoke the MII transaction thru RFC by setting in Message Listener?
    We have used iDoc messages but not tried with RFC.
    How to do that?
    Regards,
    Senthil

    I feel MII doesn't have anything equivalent to RFC in ECC. You may try web services in an ABAP program
    Hope the article below helps you
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/9f101377-0c01-0010-269f-c3ee905d583b&overridelayout=true
    Regards,
    Musarrat

  • Need help regarding configuring the WebService Call from RTD to Siebel

    Hi All,
    Can someone help me with the information on how do i configure a Webservice Call from RTD to Siebel?
    Any high-level or granular details on this would be very helpful as I am new working on this product. How can a jax-ws be utilized to achieve the same?
    Thanks in advance.
    Best Regards,
    Hariharan

    If you actually need a portal service though, this will not work. However, you could have the portal service return a Document object, which is basically the text of the HTML file you want to display. Then, when calling the portal service, you can simply output the text to the IPortalComponentResponse object
    I hope this helps
    Darrell

  • Endeca webservice call from different Application.

    I am trying to call the Endeca (v2.2.2) Webservice, using the client generated class file from the wsdl file (conversation.wsdl) and pass the query to get the result. Steps so far did
    •     Use apache cxf codegen plugin 2.7.0 to generate the client classes using the above wsdl.
    •     Written junit test case for client class and send the query to server. I can connect to the server but getting back the ConversationFault: Sequence has length 0 but must have length 1
    •     The only method I can use to call from the client is conversationPort.query(request), which is generated by cxf wd12java
    •     Following is the line of code from the client class
    ContentElementConfig config = new ContentElementConfig();
    config.setHandlerFunction("AS select max(p_common_date_epoch) as 'MaxDate' where Social_Media_Type = 'Twitter' group by interaction_author_username, interaction_text, interaction_link, Klout_Score, Followers_Count, DocumentSentiment, calculated_entity_sentiment, SalienceSentiment order by MaxDate desc, Followers_Count desc page (0,50)");
    Request request = new Request();
    request.setState(null);
    request.getContentElementConfig().add(config);
    Client Call: Results results = webServiceClient.readQueryResults(request); // this method internally calls conversationPort.query(request).
    Any thoughts or recommendation please advise.
    Edited by: user4993272 on May 9, 2013 10:57 AM

    Hi,
    i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
    i am not understanding how i will do that.
    A service wont allow you to access the live instance of an application and instead create its own data session. So while you can query data that belongs to App2, you wont be able e.g. to access a users uncommitted data changes
    Frank

  • Subroutine call from SAP Script

    Hi,
    I need to calculate required/outstanding qty. hence am passing existing values of reservation#/item# and issued qty.
    both req/out qty are returned blank by the code. please help.
    Following is my code segment for a external routine call from SAP Script.
    /:   PERFORM P_GET_QTY IN PROGRAM ZTEST
    /:   USING &MSEG-RSNUM&                     
    /:   USING &MSEG-RSPOS&                     
    /:   CHANGING &REQ_QTY&                     
    /:   CHANGING &MSEG-MENGE&                  
    /:   CHANGING &OUT_QTY&                     
    /:   ENDPERFORM
    REPORT ztest .
    TABLES resb.
    DATA: wa_resb TYPE resb,
          req_qty TYPE resb-bdmng,
          isd_qty TYPE mseg-menge,
          out_qty TYPE resb-bdmng.
    FORM p_get_qty TABLES input  STRUCTURE itcsy
                          output STRUCTURE itcsy.
      DATA: avlbl TYPE resb-bdmng.
      READ TABLE input WITH KEY 'MSEG-RSNUM'.
      CHECK sy-subrc = 0.
      wa_resb-rsnum = input-value.
      READ TABLE input WITH KEY 'MSEG-RSPOS'.
      CHECK sy-subrc = 0.
      wa_resb-rspos = input-value.
      READ TABLE input WITH KEY 'REQ_QTY'.
      CHECK sy-subrc = 0.
      req_qty = input-value.
      READ TABLE input WITH KEY 'MSEG-MENGE'.
      CHECK sy-subrc = 0.
      isd_qty = input-value.
      SELECT SINGLE * INTO wa_resb
                      FROM resb
                      WHERE rsnum = wa_resb-rsnum
                      AND   rspos = wa_resb-rspos.
      CHECK sy-subrc = 0.
      avlbl   = wa_resb-bdmng - wa_resb-enmng.
      req_qty = avlbl - out_qty.
      out_qty = req_qty - isd_qty.
      output-name = 'REQ_QTY'.
      output-value = req_qty.
    MODIFY output TRANSPORTING name value WHERE name = 'REQ_QTY'.
      APPEND output.
      output-name = 'OUT_QTY'.
      output-value = out_qty.
    MODIFY output TRANSPORTING name value WHERE name = 'OUT_QTY'.
      APPEND output.
    ENDFORM.
    Thanks,
    Ram.

    Hi Ram,
    I think you have to use MODIFY instead of append for the OUTPUT table.
    MOdify the table with KEY. This should resolve the problem.
    Ram, you can check this code and see how the MODIFY is to be used.
    REPORT YLSD999A.
    DATA  W_LENGTH TYPE I.
    *   GENERAL PURPOSE SUBROUTINES FOR CALLING FROM SAPSCRIPTS
    FORM DISPLAY_POUND TABLES IN_TAB STRUCTURE ITCSY
                              OUT_TAB STRUCTURE ITCSY.
      DATA: COUNT TYPE P VALUE 16.
      DATA: W_VALUE(17) TYPE C.        "defined as 7 chars to remove pence
      DATA: W_CHAR TYPE C.
      DATA: W_DUMMY TYPE C.
      DATA: W_CURR(3) TYPE C.
    *    Get first  parameter in input table.
      READ TABLE IN_TAB INDEX 1.
      WRITE IN_TAB-VALUE TO W_VALUE .
    * get second parameter in input table
      READ TABLE IN_TAB INDEX 2.
      MOVE IN_TAB-VALUE TO W_CURR.
      IF W_CURR = 'GBP'.
        W_CURR = '£'.
      ENDIF.
      W_LENGTH = STRLEN( W_CURR ).
    *    look for first space starting at right.
      WHILE COUNT > -1.
        W_CHAR = W_VALUE+COUNT(1).
    *  W_CHAR = IN_TAB-VALUE+COUNT(1).
        IF W_CHAR = ' '.
          COUNT = COUNT - W_LENGTH + 1.
          W_VALUE+COUNT(W_LENGTH) = W_CURR.
          COUNT = -1.
        ELSE.
    *     W_VALUE+COUNT(1) = W_CHAR.
          COUNT = COUNT - 1.
        ENDIF.
      ENDWHILE.
    * read only parameter in output table
      READ TABLE OUT_TAB INDEX 1.
      OUT_TAB-VALUE = W_VALUE.
      MODIFY OUT_TAB INDEX SY-TABIX.
    ENDFORM.
    Cheers
    VJ

  • Fedex webservice call from OOD env

    Hi all,
    I am trying to make fedex webservice call from OOD apps env.But i am getting below error.Same code with same data works fine from jdeveloper project.
    Is any setup requried to make to work from application.Is OOD is having any restrictions in calling webservice.
    Please suggest to fix this issue.
    Thanks,
    ashok
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.net.ConnectException: Connection timed out
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection timed out
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
         at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
         at java.net.Socket.connect(Socket.java:519)

    If your code works from JDeveloper and does not works when you deploy the code in an app server, and fails with connection timeout, the issue may be related to the way you have setup your proxy in JDeveloper, which need to be replicated in the JVM running your code in the middle tier.
    A good place to start is the proxy setting in JDeveloper, under Tools >> Prefernces >> Web Browser and Proxy.
    Best,
    - Eric

  • Webservice call from one application to another application

    Hi all,
    I am new in ADF and using jdeveloper version 11.1.1.0.0. Now I am working in an application where my steps are as follows,
    i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
    i am not understanding how i will do that.
    please give your useful comments.

    Hi,
    i have two application take as App1 and App2 .i want to make a webservice call from App1 to App2 . through this webservice call i will pull the data from App2 and populate the data inside a .jspx file.
    i am not understanding how i will do that.
    A service wont allow you to access the live instance of an application and instead create its own data session. So while you can query data that belongs to App2, you wont be able e.g. to access a users uncommitted data changes
    Frank

  • Session between multiple Webservice calls from PI7.0

    Hello XI SDNers,
    I am unable to overcome my Webservice session problem using SOAP (Axis) adapter. My scenario is as follows:
    I am calling a external Webservice deployed in Axis webservice engine from PI7.0, during my first call:  I call synchronous "Login" webservice and I became the response "User is Logged in"
    during my second synchronous call "GetItem", the webservice returns "The user doesn't have valid session". The two synchronous calls are executed from same scenario one after another!
    I lost my session after the "Login". Is there any way in PI 7.0 to maintain the session?
    Note: I tried the same scenario using XML SPY SOAP client, it is working!!!  it is maintaining the session between multiple webservice calls.
    Is there any suggestions to overcome this problem?
    Thanks and regards,
    Satish.

    Hi Satish,
       We are working on the same sort of scenarios, where we have to call more than one webservice in a sequential fashion using the same session id details.
        What we did was we built new xsds adding session details node using the webserive request and response xsds. And we are maintaining a sessions table which contains session id and  status fields in PI. So we send webservice request with the session id details. We wrote an UDF to get the session details from PI and set the status field as busy so that no other request uses the same session details.
       Webserive response again contains the sessions details which can be used for the next webservice request.
      Finally after all the calls set back the status to Active in PI table.
    Webservice Calls From a User Defined Function
    /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    Hope this helps.
    Thanks,
    Vijaya.

  • Web Service Call from SAP DS 4.2

    Hello all,
    Thank you for any insight you can provide:
    When calling a web service from a function call in SAP DS 4.2, it constantly provides an XML formatting error. We can call the web service fine through SOAPUI.
    Here is what SAP DS sends back as the error message:
    I believe the issue is highlighted
    Error importing XML Schema from file
    adapter_schema_in.xsd:
    XML parser failed: Error namespace 'http://businessobjects.com/service/RTJob_DMO_Address_Cleanse/input'
    is referenced without import declaration
    at line 11, Char 119 in
    xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:aw_RTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input="http://businessobjects.com/service/RTJob_DMO_Address_Cleanse/input"
    xmlns:diws="http://www.businessobjects.com/diwebservice" targetNamespace="http://www.businessobjects.com/diwebservice"
    xsd:import namespace='http://businessobjects.com/service/RTJob_DMO_Address_Cleanse/input'
    schemaLocation='C:\ProgramData\SAP BusinessObjects\Data Services\ext\webservice\DataServices_ServerRTJob_DMO_Address_CleanseRTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input0.xsd'
    xsd:element name="RTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input"
    xsd:complexType
    xsd:sequence
    xsd:element ref="aw_RTJob_DMO_Address_Cleanse_Input_Realtime_DMO_Address_Cleanse_Input:AddressCleanseRequest"
    /xsd:sequence
    /xsd:complexType
    /xsd:element
    /xsd:schema
    . Validate your XML Schema using external schema validators (found at w3.org).
    How do we get around that issue, it shouldn't be passing that.
    This happens when running the job from the Admin Console as well as the Designer
    Again, thank you for any help.
    Ryan

    Update:
    Still having the issue, now manifesting trying to create/reimport a nested schema.
    Local Error Message
    Citrix Error Message
    XML Files attached as text files
    Version of Designer: 14.2.2.446
    Version of Job Server: 14.2.2.527
    Version of Job Engine: 14.2.2.527

  • "Error attempting to read file" at Webservice call from Adobe Form.

    Hi Experts,
    We have designed a Webservice form a Function Module in ECC 6.0, In the soamanager transaction the webservice works fine. But at the time of call from the Adobe form, it gives an error stating that "Error attempting to read from file" and then the URL of the Webservice to be excuted.
    and if i attempt to open that file, it gives me this error:
    - <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
      <soap-env:Header />
    - <soap-env:Body>
    - <soap-env:Fault>
      <faultcode>soap-env:Server</faultcode>
      <faultstring xml:lang="en">SRT: Wrong Content-Type and empty HTTP-Body received</faultstring>
    - <detail>
    - <ns:SystemFault xmlns:ns="http://www.sap.com/webas/710/soap/runtime/abap/fault/system/">
      <Host>undefined</Host>
      <Component>COREMSG</Component>
    - <ChainedException>
      <Exception_Name>CX_SOAP_CORE</Exception_Name>
      <Exception_Text>SRT: Wrong Content-Type and empty HTTP-Body received</Exception_Text>
      </ChainedException>
      </ns:SystemFault>
      </detail>
      </soap-env:Fault>
      </soap-env:Body>
      </soap-env:Envelope>
    In case I give my user the "SAP_ALL" role, this all works fine, so i think it is somewhere related to a missing role to be assigned.
    any clues..??
    any help would be appreciated, Please help..
    Thanks,
    Amita

    Hi Juergen,
    I am using it as a WSDL based data connection.
    How do i check this WSDL through a web browser? I have checked it through SICF Transaction code, It gives the output in explorer as given in the first post of this thread..
    Please help me resolving this issue, i feel that this issue is somewhere related to the role assignment of the user as if i provide this user an authorization of SAP_ALL then everything starts working fine, but after removing SAP_ALL this error is encountered, do u hav any pin points on this??
    Thanks
    Amita

  • Webservice call from outlook

    Hi,
    I need your suggestions on web services call from outlook.
    I have a requirement like where user will send a mail from outlook and it should trigger web-service in SAP.
    Also i dont want this webservice to be exposed for internet since both exchange server and sap application server are on same network.
    Please suggest me is their is any way to get it done.
    Thanks,
    Rahul

    Hello Shridhar, I guess you can  use use different user for authentication and user data inside XML request.
    In MII, I have used MESYS for authentication and other user name inside the request XML. But you need to make sure user name inside XML has ME_Integrator role.
    <me:UserId>USERID</me:UserId>
    Hope this helps.
    Thanks
    Hari

Maybe you are looking for

  • MPLS TE equal or unequal load balancing doesn't work?

    Dear Sir! I've two MPLS TE tunnels from one PE to another PE. And there are traffic share count between them (as tunnel mpls traffic-eng load-share command define). But in real life all traffic from the same source to the same destination go through

  • External USB drive goes to sleep, iPhoto complains when it try's to access it and exits

    I moved my iPhoto to an external USB Harddrive and everything at first worked fine.  Now I get these errors sometimes "Your iPhoto Library is missing".  iPhoto will exit and when you start it again everything is fine.  What I think is happening is th

  • Trackpad erratic since upgrade

    Hello, Soon after I upgraded my mid-2010 macbook pro to Mavericks, the trakcpad started acting erratically. The cursor follows my commands for some time, but after the computer receives some load, it starts to drift towards either right or left of th

  • Photoshop CS5 update doesn't fix artifact problem in the menu bar !

    Hi to all, I've installed the new update (december 7) recommended by Adobe, but that doesn't fix the Artifact problems in the menu bar !!! More, with my Windows 7 Pro (French language), Photoshop CS5 video pilot create artifacts in the menu bar in se

  • Dev to QA

    We are having independent SLD for D,Q and Prod. Now I want to Transport the Business and Technical systems from D to Q. i.e  DEV_BS(DEV_TS) to QA_BS(QA_TS). What exactly I have to do? NO links or PDF's please Thanks