Parsing from Request to response interface using UDF
Hi,
Need your assistance on a scenario.
1. User searches for a Business Partner ID.
2. We have the Request and Response Interface. The Business Partner ID exists on the Request interface however not on the Response interface.
3. The requirement is that the Business Partner ID needs to be returned on the response interface.
Uisng standard CRM interfaces: BusinessPartnerCRMElementsByElementsQuery_sync
Is there a way using user defined functions to parse the Business Partner ID from the Request Interface to the Response interface?
Kind Regards
R
> Is there a way using user defined functions to parse the Business Partner ID from the Request Interface to the Response interface?
No, this is not possible. You have no access to request message when you do mapping for response message.
Similar Messages
-
How to retrieve SOAP Original Header from request and response
Hi,
Does anyone know how to retrieve SOAP original header from SOAP request and response? I surfed but I'm able to see only the retrieval of SOAP custom headers via BPM mediator. Can anyone please help me regarding this? Also Please tell me how to check the headers in the Enterprise Manager.HI Chandra,
Thanks for your suggestions.
But i think in my case we do not want to get the complete list. We still want to get only 100 items initially and then if the user would scroll down he/she would see more items. But we already need to know the total number of items for the purpose of showing a message to the user. For e.g. Total issues (515), but the table would initially show only 100 and then another 100 after scroll. So setting the size litmit to max would not help.
And to be able to use the $count you mentioned, we have to still make another oData service call which we do not want.
But as i mentioned there is already a property named "__count" in the response of the bindItems() method call and i see that it has correct count but not sure how to retrieve it inside the controller. Thanks.
Regards,
Ashish -
How to get promoted properties from Request to Response in two way send port scenario.
I have a requirement to access the promotes properties in response pipeline, these promoted properties are promoted in Orchestration and they are available in Send pipeline, but not available in Receive pipeline. Please help us if we have any solution for
this issue.
Thanks
RamachandraHi Ramachandra,
Obviously from above responses you would have got the point that this can’t be done out-of-box and you need to do custom. Also when you say “Get the message
from DB along with context properties.”, you do agree with this point.
One of the possible custom solutions is (Obviously in bespoken process, you can achieve it in many ways),
When send the message out to a solicit-response port, store those promoted properties in db along with the “correlation key” which you can get from the context of the request message like
“Correlation Token” and “SPID”. So when the response comes back, you can either in the “inbound map” or in the receive pipeline (using custom component) populate/constructs the message by populating data from db, where will retrieve the
“Correlation Token” and “SPID” values of the response message (it will have the same correlation value as in the request message), so you can use the value of correlation sets to get the values from db.
Regards,
M.R.Ashwin Prabhu
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Use Sign.xml and Encrypt.xml for both request AND response within WSDL?
Hi,
ALSB: 2.6
I was wandering if it's possible to use abstract outof the box WS-Policy file within WSDL file to specify encryption
(Encrypt.xml) and digital signature(Sign.xml) with X509 for both request and response???
So far, it only works for either request or response BUT not both. i.e. within WSDL file
<!-- following WSDL works for encrypting and signing request with X509 in test console -->.....
<wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="Message">
<soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
<wsdl:input>
<!-- WS-Policy file applied here -->
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
<wsp:PolicyReference URI="policy:Encrypt.xml"/>
</wsp:Policy>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
Or
<!-- following WSDL works for encrypting and signing response with X509 in test console -->
<wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="Message">
<soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<!-- WS-Policy file applied here -->
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
<wsp:PolicyReference URI="policy:Encrypt.xml"/>
</wsp:Policy>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
But not both
<!-- following WSDL doesn't work for encrypting and signing both response and request with X509 in test console -->
<wsdl:binding name="DexService2Soap" type="tns:DexService2Soap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<wsdl:operation name="Message">
<soap:operation soapAction="urn:moe:dex:dexservice:2.0.0/Message" style="document" />
<wsdl:input>
<!-- WS-Policy file applied here -->
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
<wsp:PolicyReference URI="policy:Encrypt.xml"/>
</wsp:Policy>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<!-- WS-Policy file applied here -->
<wsp:Policy>
<wsp:PolicyReference URI="policy:Sign.xml"/>
<wsp:PolicyReference URI="policy:Encrypt.xml"/>
</wsp:Policy>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
... Instead, I got error message like
<15/01/2008 10:15:04 AM NZDT> <Error> <ALSB Security> <BEA-387023> <An error ocurred during web service security inbound response processing [error-code: Fault
, message-id: 3917705281899426819-4368b1eb.117762cff6e.-7fdb, proxy: DexServiceX509-Stub/Proxy Services/DexServiceX509-ProxyService, operation: Message]
--- Error message:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode>
<faultstring>Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</faultstring></soapenv:Fa
ult></soapenv:Body></soapenv:Envelope>
weblogic.xml.crypto.wss.WSSecurityException: Failed to get token for tokenType: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#
X509v3
at weblogic.xml.crypto.wss.SecurityBuilderImpl.addEncryption(SecurityBuilderImpl.java:308)
at weblogic.wsee.security.wss.SecurityPolicyDriver.processConfidentiality(SecurityPolicyDriver.java:280)
at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:75)
at weblogic.wsee.security.wss.SecurityPolicyDriver.processOutbound(SecurityPolicyDriver.java:64)
at weblogic.wsee.security.WssServerHandler.processOutbound(WssServerHandler.java:86)
Truncated. see log file for complete stacktrace
>
<15/01/2008 10:15:24 AM NZDT> <Error> <com.bea.weblogic.kernel> <000000> <Failed to build CertPath
java.security.cert.CertPathBuilderException: [Security:090603]The certificate chain is invalid because it could not be completed. The trusted CAs did not inclu
de CN=x509,OU=x509,O=x509,L=Wellington,ST=Wellington,C=NZ.
at weblogic.security.providers.pk.WebLogicCertPathProviderRuntimeImpl$JDKCertPathBuilder.engineBuild(WebLogicCertPathProviderRuntimeImpl.java:669)
at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
at com.bea.common.security.internal.legacy.service.CertPathBuilderImpl$CertPathBuilderProviderImpl.build(CertPathBuilderImpl.java:67)
at com.bea.common.security.internal.service.CertPathBuilderServiceImpl.build(CertPathBuilderServiceImpl.java:86)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
Truncated. see log file for complete stacktrace
>
<15/01/2008 10:15:24 AM NZDT> <Error> <ALSB Security> <BEA-387022> <An error ocurred during web service security inbound request processing [error-code: Fault,
message-id: 3917705281899426819-4368b1eb.117762cff6e.-7fd8, proxy: DexServiceX509-Stub/Proxy Services/DexServiceX509-ProxyService, operation: null]
--- Error message:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><soapenv:Fault xmlns:wsse="http://docs.oasis-open.or
g/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><faultcode>wsse:InvalidSecurityToken</faultcode><faultstring>Security token failed to validate. weblo
gic.xml.crypto.wss.SecurityTokenValidateResult@3c5347b[status: false][msg [
Version: V1
Subject: CN=x509, OU=x509, O=x509, L=Wellington, ST=Wellington, C=NZ
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: Sun RSA public key, 1024 bits
modulus: 13052787793731294943682394984664645854838424340012907077330623....
The 'System Error Handler' from 'Invocation Trace' in ALSB test console is something like
[pre]
$fault:
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-386201</con:errorCode>
<con:reason>
A web service security fault
occurred[{http://schemas.xmlsoap.org/soap/envelope/}Server][Failed
to get token for tokenType:
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3]
</con:reason>
<con:details>
<err:WebServiceSecurityFault
xmlns:err="http://www.bea.com/wli/sb/errors">
<err:faultcode
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
soapenv:Server
</err:faultcode>
<err:faultstring>
Failed to get token for tokenType:
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3
</err:faultstring>
</err:WebServiceSecurityFault>
</con:details>
<con:location>
<con:path>response-pipeline</con:path>
</con:location>
</con:fault>
So is this a feature not supported in ALSB 2.6 yet or am I missing something dead simple?
Thanks in advance
SamInstead of specifying policies for input and output separately you could place the policy reference only once in the operation element. Maybe will this solve your problem...
http://e-docs.bea.com/alsb/docs26/security/ws_policy.html#wp1061166 -
Hi
In my scenario,we are sending plain request to web service using receiver sender adapter and PI will receive response as excel attachment. What are standard module required to achieve this and sequence? or checking Keep attachment box will help us to achieve this?
is it possible to receive excel sheet as attachment from receiver soap adapter ?
Thanks in AdvanceHi,
This issue might be due to the invalid .pem certificate file.
Make sure to include the beginning and end tags on each certificate.
The result should look like this:
-----BEGIN CERTIFICATE-----
(Your Primary SSL certificate: your_domain_name.crt)
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
(Your Intermediate certificate: DigiCertCA.crt)
-----END CERTIFICATE-----
For more detailed information, you could refer to:
https://www.digicert.com/ssl-support/pem-ssl-creation.htm
Regards -
Request and response using Ajax...
Hi' does anyone know how to get 2 or more response if using ajax? (let's say that it's more than 1 response).
cos XMLHttpRequest only can retrieve for one response at time. does anyone know how to solve this?
Thanks a lot....what i mean like this, i have a multiply function in my jsp, code like this :
<%
String a = request.getParameter("a");
String b = request.getParameter("b");
total = ( (Integer.parseInt(a))*(Integer.parseInt(b)) );
out.println(total);
out.println("hello");
%>it prints total and hello.
How to handle it in my javascript? ajax just handle the response with xmlHttp.responseText. So all the output are handle in only in xmlHttp.responseText). how to make my ajax can receive 2 output from server seperately?
Thanks...
Btw this is my ajax source :
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<html>
<head>
<title>Ajax Multiply Example</title>
<script language="Javascript">
xmlHttp = null;
function postRequest(strURL){
if(window.XMLHttpRequest){ // For Mozilla, Safari, ...
xmlHttp = new XMLHttpRequest();
else if(window.ActiveXObject){ // For Internet Explorer
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlHttp.open('POST', strURL, true);
xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttp.onreadystatechange = function(){
if (xmlHttp.readyState == 4){
//alert(xmlHttp.responseText);
updatepage(xmlHttp.responseText);
xmlHttp.send(strURL);
function updatepage(str){
//i don't know how to modify in this.can anyone help?
document.getElementById('result').value = str;
document.getElementById('helloField').value = str;
function callMultiply(){
var a = parseInt(document.f1.a.value);
var b = parseInt(document.f1.b.value);
var url = "multiply.jsp?a=" + a + "&b=" + b + "";
postRequest(url);
</script>
</head>
<body>
<h1 align="center"><font color="#000080">Ajax Example</font></h1>
<form name="f1">
<input name="a" id="a" value="">
<input name="b" id="b" value="">
<input name="result" type="text" id="result">
<input name="helloField" type="text" id="helloField">
<input type="button" value="Multiply" onClick="callMultiply()" name="showmultiply">
</form>
</body>
</html> -
Response status has number of values different from request
Hi,
I'm getting the following message when I try to refresh a worksheet from a workbook.
"Response status has number of values different from request"
Has anyone encountered this message? what does this mean?
I'm using SmartView 11.1.2.1.103 on HFM 11.1.2.1.103 environment.
Thanks in advance,
RamTry removing external calculations (/$C$1) and see if the error message changes.
-
Response times using BEX/Web vs. BEX /Excel user interface
Our customer in Sweden is currently rolling out SAP BW to local sales offices around the globe and they are having huge response time problems with the BEX/Excel interface running from Australia towards the BW servers in Sweden. If running the Web interface the response time is acceptable.
Question: Is this problem caused purely by bandwidth limitations or is it the distance itself that is the problem. If they double their bandwidth capacity, will the response times using the BEx web interface be reduced by 50% or will it remain unchanged?
/Fredrik Osterstrom, Capgemini,Hi,
It is generally much slower to display queries using Excel than the HTML version because of the way they display data and the way they are designed/engineered.
But generally of course, it should also be on an acceptable basis.
If you still could not figure out the problem, I advice you to display the query using HTML version via Browser and then download to Excel aftewards. It is normally fast. This is just a work around till you figure out the probable cause. There are many factors that contribute to this.
Try isolation technique.
1.) Is the query slow on displaying using Excel on all desktop computers or only selected computers?
2.) Is the desktop computer fast enough w/ ample memory to handle the processing?
3.) Are there any programs running/installed on the computer which directly affects Excel processing?
Hope I have helped, and if I did, please grant points!
--Jkyle -
How to get useful data from request?
Hello.
I am looking for creating a management tool for a web site. All I want is that is there any ready to use API or package or open source project for retrieving user�s information? I just mean that is there any easy to use way in java to get useful data from a client (for example location, his or her system configuration and information �).
Thanks.If you dump all the data from request (see the javadoc, and especially the "header methods" ) you'll see the data you can get are quite simple.
The only thing you can try to rely on are ;
- the IP address from the sender (when reversed to DNS, you can sometime use the tld to locate the country it comes from. Yet, you'll get many .com name, so it's not that significant. it may also give you the IAP used). Note that if the user is using a proxy, it's the proxy IP that you'll collect
- the User-Agent header : from this, you can guess the OS and the browser used
- the Referer header : usefull to get where your user comes from (where they found a link to your site)
- the Cookie header : if you're using a servlet container with session id stored in cookie, you should see the Cookie header appear on the second request to your site. That helps finding out wether your user accep cookie or not (from a server point).
Besides these, i don't think you can get any other useful data without asking your users on a form. Note that it's the client that decides to send Referer, User-Agent or Cookie headers. Those are not mandatory to the Http Protocole and some browser allow their user to fool their content (butmore than 90% of the widespread browsers don't) -
How to push a perticular request from PSA to Data target using DTP in BI
Hello all.
I have mulitple requests in PSA & wanted to move only perticular requests (Randomly, say first request & last request ) to data target using DTP in BI 7.0. How can we do this.. ? Is there any option in DTP (BI 7.0)for selective loading of requests from PSA to Data Target..
Thanks in advance..
Cheers,
sami.Hi,
It is possible by using 'zero fetch' in DTP
If you want only the recent req to be loaded.
1. In PSA, change the status of the recent request to red
2. Do a zero fetch
that is processing mode - No data transfer; delta status in source: fetched
With this processing mode you execute a delta without transferring data.
3. change the particular request status back to green
4. Run a delta load
Regards,
Priya.D -
When I send a text message from my iPhone response only comes back to my iPhone . If I send from iPad, response only comes back to iPad. Whichever I used last is where response comes. Responses are not coming to both anymore!
On both devices when you go to settings>messages>send and recieve how are poeple contacting you on each device?. e.g. email or mobile number.
-
Same file name from sender to receiver file adapter with out using UDF
Hi All,
I am working on FILE TO FILE. My requirement is same file name from sender to receiver file adapter. Is it possible to do using only Adapter Specific message properties? i mean with out using UDF.
Thanks
KarthikHi,
>>>Is it possible to do using only Adapter Specific message properties?
yes
just enable Adapter Specific message properties in sender and receiver channel for file name
and you're done
Regards,
Michal Krawczyk -
Sliding Flash Interface - Using Links from an XML file Problem
Hi All,
Working on a new site for the company i've recently started
working for... fairly new to flash but wanted to try this sliding
interface for the graphic banner at the top of the page...
have a look here at an early version of the site - sliding
graphic interface at the top with coloured rollover buttons (a lot
of work still to do! feel free to post constructive criticism)
(am I allowed to post links??)
here is the unfinished version with no links in the flash bit
http://www.westfieldhealth.com/website/index.asp
The Problem:
I am pulling in a 'heading' 'text' and 'image' into the
sliding graphic interface from the following xml file... (there are
4 different xml files for 4 different slides)
<?xml version="1.0" encoding="iso-8859-1"?>
<content>
<dialogue>
<heading>Interested in selling our health
plans?</heading>
<text>Click here to learn more...</text>
<img>home_window/intSmall.jpg</img>
</dialogue>
</content>
I want to add a link to the xml that would be specific to
each instance of the window...
eg
<link>contact-us/index.asp</link>
But my limited knowledge of flash means I have no idea how to
pull the link through from the xml file to use in the flash...
Perhaps I need link text to pull as well
eg
<link-text>click here to contact us</link-text>
Here is the function that pulls in the img, heading and txt
public function onComplete(event:Event):void {
var loader:URLLoader = event.target as URLLoader;
if (loader != null) {
externalXML = new XML(loader.data);
mover_mc.heading_txt.htmlText =
externalXML.dialogue[0].heading;
mover_mc.myText_txt.htmlText = externalXML.dialogue[0].text;
var url:URLRequest = new
URLRequest(externalXML.dialogue[0].img);
myLoader.load(url);
} else {
trace("loader is not a URLLoader!");
Can anyone help me on how to pull in the link from the xml
and use it to navigate to a different page on the site
Thanks very much
Hans
link to
my unfinished flash file...What is the exact error you get (what db version also), could you post a simplified version of the SQL which fails also? I have splitter based maps that successfully read from file via the XMLType(bfilename....) style code and insert into multiple targets, I did this on 11g though.
Cheers
David -
How to retrieve generated sql query from interface using groovy
Hi All,
I'm new to odi and i need the generated sql query code from the interface using groovy.Hi All,
I'm new to odi and i need the generated sql query code from the interface using groovy. -
Using UDFs from gloabl library
Hi Experts,
I have used in my mapping some UDFs which I have referred from the local namespace (like local UDF Library) , now I want to use the same UDF from a Global Namespace . And suppose this UDF is used more than once in my target message fields in different context, so in that case shall I need to change all of this mapping where the local.UDF is used to Global.UDF manually? is there any short way to change this quickly?
for e.g---
Source field- Name
Target Filed- Detail name
UDF- check
Name--> Local.check--
> Detail name
now this needs to be changed as Global.check for the target filed.
P.S I am concern with changing the UDF location, in both of the location (Local and Global ) same UDFs are written.
Thanks
Sugata BYou have to change it manually at each of the places it were used...
As an alternative, you can export the mapping file to .mte & change it the references appropraitely & re-import the mapping file...
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID1882863550DB10579689604655727888End?blog=/pub/wlg/3129
If it is only at 5-6 places, i will do it manually. But for more than 7 i will export inot .mte & then import it..
Regards,
Siva Maranani
Maybe you are looking for
-
How to multiple layers in the MAP web item?
Hi experts, I'm working on a demo with BWGIS. I encounter several problems with the MAP web item. My demo: QA results visualized on global (region object - e.g. Europe, Asia), country (country object) and plant level. Use geo-drilldown to navigate in
-
I AM A PASSIONATE APPLE USER. Please don't get me wrong. I love every Apple product we have. I am just a bit discouraged that as a person living and working overseas, I do not have the same opportunity to build my Mac to my specifications. I am bound
-
How can this be fixed?
-
Multiprovider Mapping Issue # Values in the query output
Q . I am getting # values for the free chars and no values for some of the KPIs I have created this report on top of a multiprovider which has a huge number of cubes ( exceeding 10 ) , four DSOs and a couple of infosets , and the query which i am cre
-
TELUS is our Internet provider at home and they called to inform us that they have detected a Flasback virus from our apple MacBook Pro with Retina display is this possible and can you please help us on how we can fix this problem..I just bought my M