Synchronous call to webservice for retrieving values
Hi
I am making webservice synchronous call from bpm,I want to retrieve data doing lookup in webservice,
Can uplease tell me how we will achieve this.SOAP Lookup we can use?
Thanks
Best Regards,
Harleen Kaur Chadha
Hi,
check this links
Webservice Calls From a User Defined Function.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
regards
srinivas
Similar Messages
-
Function module for retrieving values of the Characteristics?
Hi,
is there a function module for retrieving values of the Characteristics?
will reward,
regards,
M.Hello,
Check this.
L_OBJECT = G_T_STPO-IDNRK.
*--- Merkmale incl. Bewertung zum Objekt/Klassenart lesen ----------*
CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS'
EXPORTING
CLASSTEXT = 'X'
CLASSTYPE = '300'
FEATURES = 'X'
LANGUAGE = SY-LANGU
OBJECT = L_OBJECT
INITIAL_CHARACT = ' ' "keine unbewertete M.
OBJECTTABLE = 'MARA'
KEY_DATE = SY-DATUM
* NO_VALUE_DESCRIPT =
CHANGE_SERVICE_CLF = 'X'
INHERITED_CHAR = 'X'
TABLES
T_CLASS = H_CLASS
T_OBJECTDATA = H_CLOBJDAT
EXCEPTIONS
NO_CLASSIFICATION = 1
NO_CLASSTYPES = 2
INVALID_CLASS_TYPE = 3
OTHERS = 4.
Regards,
Vasanth -
ABAP Proxy synchronous call to webservices
Hi,
I have the following synchronous scenario.
SAP R/3 outbound proxy <-> SAP XI <--> Webservices.
When I try to execute the proxy Execute synchronous,I am getting the following exception caught.
CX_AI_SYSTEM_FAULT.
What could be the possible reason for the exception to be thrown?
Thanks,
LeoHi,
This exception is thrown when there is an error in XI in a sync call.
What does your message display show in SXMB_MONI in XI ?
Kind regards
Colin. -
Calling the webservice twice - Duplicate entries
Hi Experts,
Scenario : SOAP Client -> Call Microsoft webservice -> XI JDBC Sync call-> Call Microsoft webservice.
BPM Steps:
1. Receive Step -> Get the SOAP Client request (Open S/A Bridge)
2. Send Step -> Async call to Microsoft webservice to update the log status.
3. Send Step -> Sync call to JDBC
5. Send Step -> Close the S/A bridge
6. Send Step -> Call the Microsoft webservice to update the log status.
Receiver Determination Steps
1. SOAP Sender to BPM
2. BPM(Async request) to 2 Log Business Service. I have mentioned the both business service under Configured Receivers section in Receiver Determination.
3. BPM(Sync request) to JDBC
Issue : The JDBC part works fine. Only problem with the Microsoft webservice. Twice it update the log table. ie. Twice it calls the Microsoft's each webservice.
Please help me out, how to stop the second retry and let me know the above approach is correct or not.
Thanks & Regards
SaraHi Sara,
As per your info, Earlier you was trying to call both logging updates under one Sync/Async Bridge. But on Webservice side it will give you two responses and you will handling only one.
In later case also you are handling only 1st response of Webservice call, but the another call is still open.
Actually you are trying to built two Sync/Async Birdges. Which is not at all possible under one BPM.
SAP have not recommended for it.
Refer
http://help.sap.com/saphelp_nw04/helpdata/en/43/65d4dab39b0398e10000000a1553f6/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/83/d2a84028c9e469e10000000a1550b0/content.htm
You need to create two seperate interfaces for this.
For e.g.
1st will call the Webservice before updating the JDBC tables.
2nd After updating the JDBC table you can again call the Webservice for updated logging status.
Thanks
Swarup
Edited by: Swarup Sawant on Jun 2, 2008 8:50 AM -
Calling SAP Webservice from JAVA ME bad response time
Hello together,
I'm calling a SAP RFC as a Webservice from JAVA ME (Netbeans 6.8). The stub classes I've generated with the Sun Wireless Toolkit. The RFC function stores entries in a SAP database table. The call of the websevice with transmitting the data and the database update in SAP works fine, but I got the response message from SAP with a delay of 40 seconds.
Does anyone know why there is so a long delay in the response and how to fix it?hi,
is this reproducible or was it just the first call to that service?
it usually occurs that once you call a webservice for the first time, some of the programs (be it your application programs or the even the SOAP runtime itself) required have not been compiled until that and so they are compiled during the webservice call.
This leads to slow response times even time-outs. The effect vanishes once all sources are compiled (i.e. depending on the complexity of your calls after one to a few calls to that service).
So, if the slow response times persist, you should turn on debugging in SICF and see where time is spent...
my 2 cents,
anton -
Sender adapter request response bean not working for calling a webservice
Hi All,
In PI 7.31, My scenario : SOAP sender Asynch-> PI -> HTTP Receiver Sync ->take response to call another webservice (SOAP)
I have configured request response bean and response one way bean in the sender adapter to make this work.
Attached the screenshot of the module config in the sender soap adapter. The final response from HTTP has to be used to call another webservice (not sender webservice)
This giving an error "couldn't retrieve binding values for sender to receiver etc etc ----------"
Has anyone configured response one way bean to call a webservice to submit? If so, please share the configuration details. And let me know if I am doing anything wrong
thx
mikeHi Michael,
I think the adapter type is for the receiver channel looking at the documentation SAP Library - SAP Exchange Infrastructure
Have you checked your receiver channel doesn't belong to a party?
I havent tried this bridge with the http_aae but looks to be problematic according with Michal comment here http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/01/28/generic-pi-async-sync-bridge-configuration-for-any-adapters#comment-454463
Regards. -
Hi
I have a web service which return the response based on the request key.
I need to save the key and the response value in cache for around 30mins
to reduce the web service calls for better performance.
Appreciate if any once can share a sample codeusing System.Runtime.Caching;
public List<string> cachingwebserviceresponse()
{//Create a cache key
string strParameters = "1234";//Create a cache value holding object
List<string> results = new List<string>();//Create a cache
ObjectCache cache = MemoryCache.Default;//Assign key for the cache
string cacheKey = strParameters;//Check whether the key exists in the cache//If exists assign the values from the cache instead of calling the webservice//else call the web service and add the response to the cache
if (cache.Contains(cacheKey))
results = cache.Get(cacheKey);
else
{ //calling the web service client
using (service.webservice fd = new service.webserviceContractClient())
{ //Call the web service function to get the results
results = fd.DataSearch(strParameters);
} //Create the cache expiration policy. I have created for 30 minutes.
CacheItemPolicy cacheItemPolicy = new CacheItemPolicy();
cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddMinutes(30); //Add the response to the cache based on the key
cache.Add(cacheKey, results, cacheItemPolicy);
return results; -
Reg : "Error multiple Receivers are not allowed for Synchronous calls"
Hi All,
Can somebody tell me why I am getting this error "Error multiple Receivers are not allowed for Synchronous calls" when I am using Synchronous Soap Request to WebService and the response from webservice is being sent to multiple receivers which are Business services based on Receiver determination condition(Services W/o Party).Hi , If you are simply looking up data (and not updating tables ) using RFC you can use RFC Lookup APIs to create a java mapping
The source message has to be a RFC request message interface and target should be RFC response message interface.
Also you can use three step mappings in a single interface mapping.
1. from your request message to RFC request message mapping
2. java mapping which will do the lookup and give you rfc response back
3.rfc response to your target response mapping.
PS: RFC lookup can be used if there are not may hierarchy in the RFC Response structure. (i.e. may be 3 or 4 level nesting permitted)
To help you further
The following is a link which gives you access to a ready made source code. you just need to compile it and create a jar and import the mapping in imported archive
http://knowhowsapxi.synthasite.com/rfc-loolup.php
Edited by: Progirl Progirl on Oct 31, 2008 1:33 PM -
How to call webservice for each record in a table using ODI
Hi
I am new to ODI and Webservice. I want to invoke a scenario in ODI using web service. I hava a weblogic application server with axis 2 deployed.
But I want call webservice for each record in a table
For eg: "EMP" table have 50 records, for each record web service should invoke
Can any one help me on it.
Thanks,
phani
Edited by: user12774166 on Jun 6, 2010 11:16 PMIf your goal is "call" a web service, Jason's Straub's [flex-ws-api|https://flex-ws-api.samplecode.oracle.com/] is by far the best I've seen. You might want read more about it on [his blog|http://jastraub.blogspot.com/search?q=+flex_ws_api+].
Tyler Muth
http://tylermuth.wordpress.com
[Applied Oracle Security: Developing Secure Database and Middleware Environments|http://sn.im/aos.book] -
Call Web Browser for WebService..
Hi all.
I have a problem.
There are a communication between SAP and WebService.
In background, SAP must call WebService periodically.
It calls the function 'CALL_BROWSER' with WebService URL in background and then raises a exception.
The Job log is
2006.03.16 16:49:28 Job started
2006.03.16 16:49:28 Step 001 started (program ZMMB040, variant &0000000000001, user name SCM032)
2006.03.16 16:49:28 No browser call is supported for your frontend
2006.03.16 16:49:29 ABAP/4 processor: RAISE_EXCEPTION
2006.03.16 16:49:29 Job cancelled
Please, Let me know how to call the WebService in background..
Thank you in advance.
Best regards.
Kil-Nam.Hi,
Why don't you call web services as described in Thomas' weblog:
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
Eddy -
Call a webservice and get back a value within an ESB...
Hi!
I'd like to call a webservice and get back a value from it within an ESB. But I don't know how.
I think, I must create a routing service, then a SOAP service, but how can I get back the value from the webservice, which I called in the SOAP service?
Or it is not possible to realize this within an ESB?
Thank You very much!
ViktorWhen you take a look at the Soa Orderbooking example you can see how it works. You create a webservice that accepts certain parameters and these are bundled into an object. This object, in case of the Soa Orderbooking example a 'PurchaseOrder', is described using an Xml Schema. The XML Schema is used to create the ESB with. Using this xsd the ESB knows which object it can expect and this object can be used inside your ESB or inside a bpel process.
-
Select statement for retrieving infotype 1005 values w,r,t payscale
Hi All,
could you pls help me for the below requirement
"select statement for retrieving infotype 1005 values with respect to the pay scale level.
because pay scale level is having range of values in the infotype"
Thanks in advance
Prasad
Please try it yourself first.
Edited by: Suresh Datti on Aug 9, 2009 4:52 PMHi,
Code which you have written is correct when the R_DATE is having LOW and HIGH values, if the R_DATE is having only LOW value then this will be wrong, becuse if the R_DATE is having only LOW then OPTION value is not BT is should be EQ
Regards
Sudheer -
How to buid a jar in Jdeveloper, for a class that calls a webservice???
Hello
I have a project with a main class which calls a webservice,
I deployed it in a jar file and add all necessary jars in the CONTRIBUTORS node in JAR Deplyment Profile wizard
when I tried to run the jar in command window using the command : c:\java -cp ruba.jar mypackage.Main
the following error results :
javax.xml.rpc.JAXRPCException: javax.xml.soap.SOAPException: Unable to create SO
AP Factory: Provider com.sun.xml.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl n
ot found
PLZ HELP it is URGENTTHE PROBLEM IS SOLVED , i USED ECLIPSE INSTEAD OF JDEVELOPER AND THE JAR WORKED , IT IS A JDEVELOPER BUG, I AM NEVER GONE USE IT AGAIN :@
-
Escape special charter in WSDL url for calling a webservice
I am trying to call a webservice which has "&" in the WSDL url.
http://server:8080/asd?id=123gh3&wsdl=1
It is throwing "The refernece to entity must end with the ';' delimeter." error
How can I excape it or encode this specail character in WSDL url
ThanksIs this a compiler error? If so, replace & with &
If it is a runtime error, there is a top-level escape() function. -
What is the url for calling a webservice which takes boolean input
Hi
Can anyone help me out to know how to call a webservice which takes boolean as input? Here my webservice is developed in Java.
RegardsI'm not sure what your context is, but you can test out your new Web Service by using soapui (www.soapui.org). Assuming your using a literal format, the encoding information will not be required in the XML elements. Therefore your message could be:
<element>true</element>
Maybe you are looking for
-
Airplay will not recognize a second AppleTV unit that I just purchased.
I just purchased a second AppleTV unit and have set it up in our familyroom. The setup went well and all the connections and home sharing of two iTunes libraries have been completed and are working as they should. The only problem is with Airplay. In
-
Gift download freezes, very frustrating some help please...
I gifted a few videos to my brother for his birthday. The first couple worked fine however when he tried to download the Patrice O'Neal comedy central video I gifted it froze halfway through. He cancelled it and tried again but it froze it the same s
-
FCPX export error when exporting
When I try to export a project it gets to a certain point,then stops with a message,ERROR-1. It indicates a bad frame
-
Hi, Does anyone know if there are any version compatibility constraints developing Java WebDynpro applications on an NWDI (WAS6.40) for deployment on a WAS7.00 instance (e.g. JDK's)? I've yet to find a general recommendation similar to that seen for
-
Make firefox start with one tab using mozilla.cfg
i create new package for fire fox when start firefox it is open two tabs for same link i need it to start with one tab i use the this in my mozilla.cfg : <pre><nowiki>defaultPref("startup.homepage_welcome_url", "https://portal.field.weightwatchers.ca