Reg : Webservice

Hi Experts,
I need to call a RFC in R/3.But the problem is if Req parameter is 'A' i need to send back response from RFC and If Req is 'B' it updated some entried in R/3 using same RFC.
Currently i have designed like SOAP--XI(server proxy).But how i can determine whether service interface is sysnchrnous or asynchrnous.Please advice me about design for this object
Thanks in Advance
Dinesh

You can not dynamically decide if a interface has to be synch or asynch.
What you can do is design it as a synch interface. Call the Proxy in either case. In the prxy decide what you want to do based on the Req A or B and then send a response. In case of B send a empty response  and you can ask the Sender system to ignore this response. It should be quite easy for the sending application to handle an empty response.

Similar Messages

  • Reg: webservices  error  in  xi

    Hi ,
    Iam new to xi and  had developed a http to web service scenario and the response i got an error
    Result:  
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: invalid content type for SOAP: TEXT/HTML</SAP:AdditionalText></SAP:Error>
    so in the receiver soap adapter  in module tab  i have given
    Module name - localejbs/AF_Modules/MessageTranspormationBean
    Type - Local Enterprise Bean Module - This is defined by the user, but the same name should be given in the module configuration for passing the parameters. In this case “transform” In the module configuration ,
    Module key - In this case “transform”
    Parameter name - TransformContenType
    Parameter Value - text/xml;charset=utf-8
    I got an error
    Result:  
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: local bean not found: localejbs/AF_Modules/MessageTranspormationBean</SAP:AdditionalText></SAP:Error>
    the websevice is
    http://www.webservicex.net/SendSMS.asmx?op=SendSMSToIndia
    Could any one help me out.
    Thanks & Regards,
    Gangadhar.S

    Hi Gangadhar
    If you are  new to SAP XI , then its better to read TIBIT. Below are the links of TIBIT which are very helpful in understanding the End-to-end process of XI. And you can even do some exercies here which are very helpful.
    TBIT40:
    https://websmp109.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT40
    TBIT41:
    https://websmp201.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT41&LANGUAGE=
    TBIT42:
    https://websmp206.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT42&LANGUAGE=
    TBIT43:
    http://www50.sap.com/useducation/curriculum/course.asp?cid=60161651
    TBIT44:
    https://websmp102.sap-ag.de/~form/ehandler?_APP=00200682500000001337&_EVENT=DISPLAY&COURSE=TBIT44
    later you can follow this link which contains step by step blogs for http to webservices
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=httptoweb+service&adv=false&sortby=cm_rnd_rankvalue
    Thanks
    sandeep
    PS: if helpful plz reward points

  • Reg: Webservice consumption on JEE 5

    Hi
    I have a webservice provider (ABAP) and I call the WebService from a WS Client in Java (JEE 5 SAP CE). I have generated Proxies using the WSDL Url (WS Client Generator on NDS CE 710). Now I would like to use HTTP Destination, can some one please tell me how? How should I configure it on NWA and then how should I change my client code? Thanks.
    regards
    Lakshminarayanan.V
    PS: I have posted the same question on JEE 5 forum but I find it relevant on this forum as well, excuse me if its wrong!!

    Hi,
    For maintaining HTTP destinations you can follow the steps below:
    1.Go to NetWeaver Administrator.
    2.Choose Role SOA Management  -->  Destination Template Mangement
    3. Choose the Service Client
    5.Select Edit required parameters and Save.
    Programmatically:
    InitialContext ctx = new InitialContext();
    Service reqSrv = new Service();
    Request req = (Request) reqSrv.getRequestPort();
    Map propsMap = ((BindingProvider)req).getRequestContext();
    propsMap.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "URL");
    propsMap.put(BindingProvider.USERNAME_PROPERTY, "UserName");
    propsMap.put(BindingProvider.PASSWORD_PROPERTY, "PASSWORD");
    Regards,
    Alka.
    Edited by: Alka Panday on May 6, 2008 10:02 AM

  • Reg: webservice - authority check failed

    hi friends
    i have created a Webservice for FM- BAPI_COMPANYCODE_GETLIST  . after creating that i have tested in the case then i found a error that
    "An error has occurred. Maybe the request is not accepted by the server :  Authority check failed "
    what are the necessary authority checks has to be done.
    Thanks & Regards
    suman

    Hi,
    Which WAS should it be the I configured. The ESA or our own?
    I have configured our own WAS as described in the tutorial. Here I tried to set up the username and password and I was able to send the request.
    But I'm just accessing the test system and it is there I get the error.

  • Reg WebServices In IDM

    Hi,
    We have planned to develop a web interface for provisioning request. So the users will raise request through this web interface which in turn would connect to IDM.
    Can any one please list out the web services that can be implemented between the web interface and IDM.
    Thanks in Advance.
    Regards,
    Pricy

    Mary,
    The idea behind IDM is that you use the NW IDM interface via Portal (Portal/PHP in 7.0).  However if you need a separate interface for some reason you could do something with SPML, but you'll need to put VDS in front of IDM.
    Matt

  • Reg File- Webservice Async-Sync bridge

    Hi,
    I have File -WS async-Sync scenario.
    I have configured the RequestResponseBean-CallSAP-ResponseOnewayBean in my sender CC
    When i execute the scenario, the sender channel is throwing Error: java.lang.NullPointerException
    When i check the sender channel log, the SOAP call is executing, then
    MP: processing local module localejbs/AF_Modules/ResponseOnewayBean,
    MP: processing local module localejbs/AF_Modules/ResponseOnewayBean,
    MP: exception caught with cause java.lang.NullPointerException,
    File processing failed with java.lang.NullPointerException.
    Is there any thing specific to be configured while using File adapter.
    Thanks in advance.

    Hi,
       How is the WebService sync-Async implemented are you using any aysnc-sync bridge...
    is that process returning the response back in the correct format.. ?
    Rajesh

  • REG:After the transport of the DC to QA Server for PI  Webservices.

    Dear All,
    Currently we are working on a project where we connect to the DB through PI Webservices ,we have used the "Import through Webservice model" to create the models and then we have Developed the DC and transported it to the QA but, even after the transport it points to the Dev PI and not to the QA PI as the url in the Traget link holds the destination of the DEV server .How can we make the DC point to the QA server after transport without changing any thing at the application level.
    Request you to help us at the earliest.
    Thanks in Advance
    Regards,
    Nishita Salver

    You can try using SDM substitution variables.

  • REG:http to webservice

    Hi ,
    Iam new to XI and had developed a http to webservice scenario.when I send the request through http adapter Ian getting the response as an error
    <SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category><SAP:Code>MESSAGE.GENERAL</SAP:Code><SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Connection refused: connect</SAP:AdditionalText></SAP:Error>
    Could any one help me out.
    Thanks & Regards,
    Gangadhar.S

    Hi Rao,
                One of the solution could be restart your Java Engine in the Transaction "SMICM"...
    And also test the host wether it is reachable or not in the transaction
    SM49----->Ping--
    >Additinal Parameters (give u r host name here and excute)
    Hope this wil solve u r problem
    Reward with points if helpful
    Regards
    Sai Ganesh

  • Reg@ Dynamic invocation of Webservices using an Single Invoke

    Hi ,
    I am trying to implement Dynamic invocation of webservices using a single Invoke .
    Say , i have three webservices = WebA,WebB and Webc .Based on Logic , i need to invoke either of the webservice with an single Invoke .
    In [  ws-addressing.xsd ] there are different elements ,"Address" is for endpoint URL.PortType??ServiceName ?? .
    If i need to make use of this XSD can any one help me to map the WSDL components to this XSD Or lease suggest options if any ??
    Regards ,
    Naga

    http://blogs.oracle.com/dasoa/2010/09/11g_dynamic_partnerlink_example.html
    see the article he's refering too
    eventually you need something like :
    <assign>
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
    <Address>http://localhost:9700/orabpel/default/UnitedLoan</Address>
    <ServiceName
    xmlns:ns1="http://services.otn.com">ns1:UnitedLoan</ServiceName>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    </assign>

  • Reg: Outside In Webservice

    Hi
    I created a Outside in WS from a wsdl (ABAP WS) and chose generate java skeleton option on the wsdl. It creates a Stateless session bean as impl bean. Since it does not have a webservice annotation I chose to generate a WS out of it. Then i wanted to call the same WS ( to which the wsdl belongs to) I generated a WS Client out of the same wsdl in the same project. Now I have a proxy and a service in the same project for the same wsdl. When I deploy I dont see the proxy but I see the service. Any ideas why? I need the proxy to set up HTTP destination. Thank you.
    Regards
    Lakshminarayanan.V

    Hi all
    This problem was resolved with an internal message. The solution is as follows:
    1. I can not create a proxy and generate a java bean skeleton on the same project.
    2. You must create them in separate projects ( you will find the other is not necessary later) and the proxy
        project must have a bean using the proxy to allow proxy definition to be intialised.
    e.g use a @webserviceref("proxy name"). Only then you will see it in NWA under WS administration
           proxy definitons.
    3. So create a bean to use the proxy defintion (intialisation!!) or to have the same interface as the underlying webservice, in the other project create the Java skeleton. Copy the bean into your proxy project. Force it to have the annotation that uses the proxy for reasons in step 2.
    4. U can now create webservice out of the copied bean in the proxy project. The other java baean skeleton project is not needed as indicated in step 1.
    And it works.
    HTH
    Regards
    LNV
    Edited by: vln on Aug 14, 2008 6:04 PM
    Edited by: vln on Aug 14, 2008 6:05 PM
    Edited by: vln on Aug 14, 2008 6:06 PM
    Edited by: vln on Aug 14, 2008 6:06 PM

  • Reg:Normal Webservice call TIME OUT(SocketTimedOut Exception)

    Hi All,
       I am using a normal WebService Model to access TIBCO Webservcie. when Services are DOWN, i am getting Exceptions and showing that Servcie is down.
    if a request is not completed for long time we are Getting "SocketTimedOut Exception"
    for this is there any place to set increase or decrease the TIME.
    Please help me
    Thanks
    Nagaraju

    Hi Nagaraju,
    Try the InvocationModifier below. It worked for Adaptative Web Service Models.
    import com.sap.tc.webdynpro.model.webservice.api.IWDWSInvocationModifier;
    YourModel yourModel = new YourModel();
    //Request structure
    request_GetTransfers = new Request_GetTransfers(yourModel );
    //Change request's default socketTimeout to the value you want to (in miliseconds).
    request_GetTransfers.wdSetInvocationModifier(new IWDWSInvocationModifier() {
         public void doModifyInvocation(Object port) {
              HTTPControlInterface httpItf = HTTPControlFactory.getInterface(port);
              httpItf.setSocketTimeout(180000);
         public void doModifyAfterInvocation(){}
    Regards,
    Douglas Frankenberger

  • Reg: MDM webservice

    Hi,
    I need to implement MDM standard search webservice in webdynpro using model. Kindly suggest me how to proceed.
    Thanks,
    Prasanthi

    Hi,
       Do you already have the MDM web services installed? You will need the "MDMSearchRecords" web service for searching records. Go through [this|http://help.sap.com/saphelp_mdm550/helpdata/en/45/018c03166a0486e10000000a155369/frameset.htm] to know how to install MDM web services.
       Once you have got the web services installed you will need to create an adaptive web services model in WD and use it accordingly.
    Regards,
    Satyajit

  • Reg:OPM invoking Webservice

    Dear team,
    We have a requirement where in which OPM has to invoke BPEL process and BPEl process will invoke third party system webservice and returns back the response from thrd party system to OPM. How can we acheive this functionality.
    How OPM will trigger the BPEL process?Do we need to configure the OPM to invoke the third party system.
    Pls help

    Please provide more specifics on the scenario/business processes in which OPM (the desktop application where policies are written/managed) needs to invoke another system.
    Typically, the only integration that occurs during authoring and managing policies/rules in rule documents is with a source/document control system to check-in/out changes. OPM already supports integration with source control systems OOTB.

  • Reg:pojo datacontrol not functioning wehn exposed as proxy for webservice.

    Hi ,
    I have a class which sets the request and header part and for this data control is created and hence works fine when worked by dragging to page.
    Sample :
    Class1{
    function setheader (){  ....  }
    function setrequest() { .... }
    function invokeservice(){
    Class1 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    } ----------- this works fine.
    But when I use setters in different class, that works through normal run(executingjava class). But not functioning when exposed as data control.
    Class1{
    function invokeservice(){
    Class2 objClass = new Class();
    objClass .setheader();
    objClass .setrequest();
    Class2{
    function setheader (){  ....  }
    function setrequest() { .... }
    This doesnt function. I want to know the reason for not working, because by this only we can edit the validations of data control attributes , which is not possible in the earlier one.
    Regards,
    Dinesh Vishnu Kumar C.

    I didn't clearly understand the question. If the question is , both Class1 and Class2 are exposed as data control and used in a page, and then you want to update Class2 properties from Class1 then the approach you took is wrong
    You cannot instantiate data control instance of Class2 as you are trying, rather you may need to use binding API to set the value or to get hold of the instnace. See the code snippet given here http://biemond.blogspot.in/2009/03/some-handy-code-for-backing-beans-adf.html
    If you have some method to initialize the properties and this method is added page def as method action ,then following will work
    // get the binding container
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    // get an Action or MethodAction
    OperationBinding method = bindings.getOperationBinding("someMethodAction");
    Map paramsMap = method.getParamsMap();
    paramsMap.put("param1","value1") ;
    paramsMap.put("param2","value2") ;
    method.execute();

  • Reg:Accessing webservices in BSP

    Hi All,
    I have imported a web service into my bsp application and I am using one of its methods.I am able to send input to the model method but unable to get back the response from the model i.e after execution.
    Can anyone help me in this issue.Points will be rewarded for the helpful answer.
    Thanks in advance.

    Hi DurgaRao,
    Your application might be giving an exception while determining the business system.
    U can catch that exception by using the classes CX_AI_SYSTEM_FAULT and CX_AI_APPLICATION_FAULT.
    Some times it may raise the exception GET_BUSINESS_SYSTEM_ERROR An error occurred when determining the business system (SLD_API_EXCEPTION)
    so please try first by putting that catch.
    the following links contains some useful information which may solve ur problem.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649747d
    Consume web service in ABAP proxy with SOAP header
    Thanks,
    Bhavyasri.

Maybe you are looking for

  • Order import open interface program

    hi i m working on changes to item quantity through order import open interface program the orders are already imported through order import i have to make changes to the item quantity i m passing the details like orig_sys_document_ref,orig_sys_line,

  • Issues with mp4 in Acrobat X...

    Hi guys, I'm trying to play a .mp4 video that has been imbedded into a pdf. There are other videos embedded as well, and they seem to work fine; it's only the mp4 that doesn't want to work. I've tried updating codecs (the file is H.264 codec), I've t

  • Is there a bug in Automator filter finder items?

    I'm trying to do a batch processing script and there seems to be a bug with items created earlier in the script.  For example, the 2brokegirls.jpg file was created earlier in the script and added to the main folder whose contents can be seen in the g

  • Ftp to windows in CRLF mode

    Hi, i wanted to send a file to windows server in CRLF mode. sorce is UNIX and target is WINDOWS. i have done following In BPEL , created a adapter to send the file in ASCII mode FTP adapter server type property is set to windows, But still the file i

  • Does OATS support recording for Globalization and Localization?

    We are looking to automate an EBS application that support 30 different languages and also has localization for some countries. Can we use OATS for regression automation? Does OATS support Globalization and Localization?