Passing form attributes to web service
Hi all,
We have a client requirement to provide provisioning to one of their resource for which connector is not available. We have written a web service for the same. Everything is working fine. We have defined a dummy resource object, Form and process definition for the same. Under process definition we are calling the web service on create user task. This resource provisioning actually takes 38 attributes and for now we are passing all the attributes to the adapter (defined all the variables in adapter and passing them in the task). In the OOTB connector i have checked and found that oracle is not passing the attributes directly but passing the configuration data. I also want to do the same but couldn't able to find out how to pass the attributes from Process form to adapter by some referrence instead of mapping all the attributes in the task. Can anyone please help me in this portion? Thanks a lot...
we have added multiple elments to the node
like
..wdContext.nodeItem_37().addElement(i,element);
and the fm is executed.
sequence is
wdContext.currentRequest_ZfmBomtemp1Element().modelObject().execute();
return (IPrivateBOMandRecipe.IRequest_ZfmBomtemp1Node) getChildNode(gen_delegate.infoRequest_ZfmBomtemp1);
return (IPrivateBOMandRecipe.IRequest_ZfmBomtemp1Element) nodeRequest_ZfmBomtemp1().getCurrentElement();
This way only the current element is passed.
Similar Messages
-
Pass form data through web service to session bean
Hello,
i want to create an insert in a database table using a web dynpros that call my method createEntry i a sessionbean. The sessionbean is ok, it worked with a jsp.
My Problem:
The inputfields of my form are blocked so that i cannot insert the values. This problem only occurs if i bind the inputfields to the attributes of my web service in the view context.
What i already did:
I defined a web service in my EJB Module Project.
I imported this model into my web dynpro.
I bound the elements of the web service into the custom controller.
I bound the elements from the custom controller to my view context.
I did not bind the result of the web service in any way because i do not need it.
Did i miss something i had to do?
Thanks for help or any advices, it is my first time using a web service and i already tried to get along with the CarRental and the Email example.
AndréHi,
I think you problem is not a Web Service but the fact that Model Context Elements are not created automatically.
>I bound the elements of the web service into the custom >controller.
You made a binding but here you should <b>create</b> the elemnts itself wich means:
1. Create the instance of the element for you cotext node.
2. Call wdContext.node<You Context Name>.bind(<instance created in previous step>
This step is the same as for RFC Model so if you fill that my explanation is not clear enought go to Adptive RFC Model tutorial (calling BAPI_FLIGHT_GET_LIST) and see the code in wdDoInit() method.
Hope it helps.
Victor -
How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection
How to retrieve the multiple rows data on PDF form in a web service method using WSDL DataConnection.
I have a multiple rows on PDF form. All rows have 4 textfields. I want to submit the multiple rows data to a method defiened in webservice.
Unable to retrieve the data in multiple rows within webservice method.Hi Paul,
I'm now able to save the retrieved xml in a hidden text field and create dynamic table, and I'm able to fill this table from the XML, but the problem is that I could not find the correct way to loop on the xml, what I'm trying to say, the table will have number of rows with the data of the first row only, so can you tell me the right way to loop on the xml!
this is my code
TextField1.rawValue=xmlData.document.rawValue;
xfa.datasets.data.loadXML(TextField1.rawValue, true, false);
for(var i=0; i<count; i++)
xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Num").rawValue = xfa.datasets.data.record.num.value;
xfa.form.resolveNode("form1.P1.Table1.Row1["+i+"].Name").rawValue = xfa.datasets.data.record.name.value;
Table1.Row1.instanceManager.addInstance(true);
Thanks
Hussam -
Adobe Interactive Forms by using Web Service
Hi Experts,
Can we create adobe forms by using web service????...
Please give me the steps to achieve this.
Please help me out on this.
Thanks in Advance,
PraveenHi Praveen Kumar ,
Check the following websites which contain examples on Adobe Interactive Forms by using Web Service:
https://www.sdn.sap.com/irj/sdn/adobe
Improving the Performance of Adobe® LiveCycleu2122 Designer Forms(scripting)
http://www.adobe.com/devnet/livecycle/articles/lc_designer_perf_guidelines.pdf
Interactive Forms Based on Adobe Software: Overview
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e635e290-0201-0010-a9be-9e8e4ce04770
Adobe Interactive Forms
http://www.saplounge.be/Files/media/pdf/Huberland-Interactive-Forms-2007.10.10.pdf
Taking interactive forms to next level
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8c103c36-0301-0010-cda8-f6b381bedb6e
Introduction to Adobe PDF Library SDK(PDFL SDK)(Simply scroll the document)
http://partners.adobe.com/public/developer/en/webseminars/PDFL_WebSeminar.pdf
Creating Interactive forms in webdynpro for java
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f27e290-0201-0010-ff82-c21557572da1
PDF-Based Print Forms/SAP Interactive Forms by Adobe
http://help.sap.com/saphelp_nw04s/helpdata/en/c8/4adf7ba13c4ac1b4600d4df15f8b84/frameset.htm
Date Objects in Adobe Designer
http://help.sap.com/saphelp_nw04/helpdata/en/dd/60694fddb74ad88cdb7d2a094f3dd2/frameset.htm
Checking and Testing a PDF-Based Print Form
http://help.sap.com/saphelp_nw04s/helpdata/en/c2/1fe9aa4d7b413e8515f90b73729e97/frameset.htm
Architecture
http://help.sap.com/saphelp_nw04/helpdata/en/f2/21021b911f4c0cae11459a4ce0bc62/frameset.htm
http://www.nl4b.com/Adobe/Invitation_SAPBrussels_Q407.pdf
cheers!
gyanaraj
****Pls reward points if u find this helpful -
How to instantiate a DOM Element in Forms to call Web Service?
Hi All,
I need to call a Java Class that has been converted into PL/SQL in order to run a Web Service.
The PL/SQL function looks like this:
-- Method: GetPIValue (Lorg/w3c/dom/Element;)Ljava/util/Vector;
FUNCTION GetPIValue(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT IS
BEGIN
cls := JNI.GET_CLASS('oracle/forms/demos/webservice/ConnectToPI');
mid := JNI.GET_METHOD(FALSE, cls, 'GetPIValue', '(Lorg/w3c/dom/Element;)Ljava/util/Vector;');
args := JNI.CREATE_ARG_LIST(1);
JNI.ADD_OBJECT_ARG(args, a0, JNI.GET_CLASS('org/w3c/dom/Element'));
RETURN JNI.CALL_OBJECT_METHOD(obj, mid, args);
END;
where "a0" is of org.w3c.dom.Element argument that is passed into the function as an obj_java.jobject.
How can I create an ELEMENT object and call this function by passing this Element and its related Attributes. I have tried the following so far but I am getting this ERROR "Unable to call out to Java, Argument 1 can not be null.
Element.setAttribute(param_1,
'piTAG',
'A3TI006.pv');
It seems to be Complaining about "param_1" and it CANNOT BE NULL. How can I initialize or Create such an Object in Oracle Forms?
Does any one have a Sample on how to Create an Element Object in PL/SQL?
Your help is much appreciated.
Regards,
BazHello,
I am sure that Jan is certainely THE expert. It would be so great if he would find time to blog a litttle bit on this topic, that generates, in fact, a lot of questions ;D
Francois -
Designer beginner's question: How to populate form with XML web service output?
sorry, here is yet another Adobe Designer beginners question: <br /><br />My form uses a webservice data connection which returns <br />an xml-string like this: <br /><br /><?xml version="1.0" encoding="utf-16"?> <br /><CurrentWeather> <br /> <Location>Sion, Switzerland (LSGS) 46-13N 007-20E 481M</Location> <br /> <Time>Apr 26, 2007 - 09:50 AM EDT / 2007.04.26 1350 UTC</Time> <br /> <Wind> from the WSW (240 degrees) at 15 MPH (13 KT):0</Wind> <br /> <Visibility> greater than 7 mile(s):0</Visibility> <br /> <SkyConditions> partly cloudy</SkyConditions> <br /> <Temperature> 80 F (27 C)</Temperature> <br /> <DewPoint> 46 F (8 C) </DewPoint> <br /> <RelativeHumidity> 30%</RelativeHumidity> <br /> <Pressure> 29.88 in. Hg (1012 hPa)</Pressure> <br /> <Status>Success</Status> <br /></CurrentWeather> <br /><br />What is the simplest and recommended way to extract the <br />element fields to my form? <br /><br />Thank you very much an kind regards, <br />Hans Grund
The question is still unanswered!
Let me give some details and break up the problem
in more specific questions:
- In Designer 8.1 I click new data binding --> wsdl -->
http://www.webservicex.net/globalweather.asmx?wsdl
A message box comes up and says "cannot load wsdl file"
==> 1. Question:
Why maybe refuses Designer to load the http-wsdl,
although this option is explicitly allowed?
- When I save the wsdl to a file, Designer loads it
without any problems. The web service uses two input parameters
(CountryName and CityName) and returns an xml-string GetWeatherResult)
like the one in my first posting. I drag these fields from the binding view to my form, and it runs ok!
- THE PROBLEM IS, THAT I NEET TO EXTRACT THE ELEMENT FIELDS
FROM THE RESULT XML-STRING!
==> 2. Question:
How to extract xml element fields from wsdl output into a form?
- I tried with eclipse and XmlSpy to build a modified wsdl file
with structured output definition, so that the specific element fields
show up in the data binding view and are usable to my form,
and the modified wsdl maps consistently to the web service result string.
So far without success: In the PDF -preview or Reader-
when the wsdl-binding is executed and the web service output
should show up in the result fields, just nothing happens.
==> 3. Question:
Can this strategy to provide a "modified wsdl" possibly succeed,
and how?
==> 4. Question:
Is is possible -and how?- to check whether an xml string
is valid as web service output against the wsdl-definition?
==> 5. Question:
How to debug a web service connection with Designer?
- Finally I tried to find a way to load the result xml-string
into a local var in the script editor and parse it, much like:
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.load(DataSet.MyForm.GetWeatherResult.rawValue);
==> 6. Question:
Is it possible -and how?- to use a framework like dotnet?
How to utilize SAX or DOM in Designer?
Many thanks and appreciations for your help!! -
Passing Soap Header in Web Service
Hi Team,
In our application, we have used web service through webservice proxy wizard using the WSDL file. Now due to security reasons we need to pass Soap Header in the webservice call. Can you please help on how to pass soap header in the webservice call ?
Please find the below webservice code/
Long ll_ret
edpmdata ll_ReturnVal
edpmreq lnv_Request_data
//filter lnv_filter
Datawindowchild dwc_child
str_pass l_str_pass
long l_l_row_count, l_l_row
String l_s_code, l_s_modify, l_l_ret
String str_proxy_name = "sohedpmservice"
String l_s_delivery_pref, l_s_email
String ls_url, l_s_ini_file
l_s_ini_file = g_nv_ini.fnv_get_name ()
ls_url = ProfileString(l_s_ini_file,"External", "EDPM_URL", "")
Soapconnection lsc_Conn
sohedpmservice lproxy_obj
lsc_Conn = create Soapconnection
SetPointer (Hourglass!)
Try
ll_ret = lsc_Conn.CreateInstance(lproxy_obj, str_proxy_name, ls_url)
Catch (SoapException e )
Error.fnv_error("0001", This, "ue_process_fields","Error Creating Instance","",FALSE,1,0)
Message.ReturnValue = -1
RETURN -1
end try
IF ll_ret <> 0 THEN
Error.fnv_error("0001", This, "ue_process_fields","Error Creating Instance","",FALSE,1,0)
Message.ReturnValue = -1
RETURN -1
END IF
Try
lnv_Request_data = create edpmreq
lnv_Request_data.value = l_s_party_key
ll_ReturnVal = lproxy_obj.getcommpref(lnv_Request_data)
If ll_ReturnVal.ws_serviceresult.resultcode = '5' Then
Error.fnv_error("0001", This, "ue_process_fields",String(ll_returnval.ws_serviceresult.ws_resultinfo) ,"Error Response ", FALSE, 1,0)
Message.ReturnValue = -1
RETURN -1
End if
l_s_delivery_pref = ll_ReturnVal.deliverymethod
l_s_email = ll_ReturnVal.emailaddr
i_str_pass.s[86] = l_s_delivery_pref
i_str_pass.s[87] = l_s_email
i_str_pass.s[88] = l_s_party_key
Catch ( SoapException a )
Error.fnv_error("0001", This, "ue_process_fields","Error Response","Error Response",FALSE,1,0)
Message.ReturnValue = -1
RETURN -1
end try
Destroy lsc_Conn
Return 1What version of PowerBuilder?
PB.Net or Classic?
Are you using the SOAP or .Net Engine (if using Classic)?
What kind of header?
There is limited support for passing custom headers in the .Net engine in Classic. The header would need to be defined in the WSDL for the service.
Anything beyond that (e.g., WS-Security) would need to be handled in a WCF client in PB.Net. -
Processing of a Form when a WEB Service is not available
Has anyone else noticed this or has a work-around suggestion? Note I am very new to this product. Background: We tied a WEB service call to a button on our PDF Form. When the user started the process they filled in the form but did not use the button to access the service to verify the data on the form. When they clicked on Complete it appeared that the process started but it never arrived at the first operation in the workflow. Upon investigation it was found that the workflow never started. It was as if when the workflow engine saw that the WEB Service was offline it threw the request away. When we loaded the form into WorkBench we did get an alert box telling us the server was unavailable and that the WSDL could not be loaded for the Data Connection. As the first user interaction is not coded in the workflow we are not sure how to trap this incident and prevent the user form thinking their process was accepted by LiveCycle for action. Thank you for your help in advance.
Hi Steph
I very much doubt that not calling the web service could have caused any problems directly.
Does the workflow start correctly if you completely remove the web service invocation?
How do you know that the process didn't start?
Is the process long-lived?
Do you have an xfa-form as an input variable of your process?
Have you added the correct Workflow fields to your form, or just a single submit button?
Howard
http://www.avoka.com -
Sending controller context value attributes to web service model
Hi,
I have put some parameters (value Attributes) in controller context and mapped to different views. Is there any way by which i can send the values to the web service model , each time the web service is called? like through header or some thing like that??Hi Sujesh,
Read those value attributes in your controller using following code:
wdcontext.currentContextElement().get<attribute>();
and then set these value in your web service model.
<model name> model = new <model name>();
model.set<attribute>(<value>);
wdcontext.node<nodename of your web service model>().bind(model);
wdcontext.current<nodename of your web service model>element().modelobject().execute();
Regards,
Bhavik -
SAML assertion attributes and Web Services
Just want to clarify for myself something about SAML token within Web Services Security.
As I understand SAML attribute assertions cannot be used within Web Service business logic tier because all security header information are unavailable within Web Service implementation context. And the only one reason for sender to submit attributes along with SAML authentication assertion is to allow SecurityEnvironmentHandler more information about trusted identity. Is it right?Hi finally I get it (thank you Gautam!!!),
public class CustomWlsPrincipal extends WLSAbstractPrincipal implements WLSUser {
public CustomWlsPrincipal(String name) {
super();
// Feed the WLSAbstractPrincipal.name. Mandatory
this.setName(name);
}So you need to invoke the parent class setName(String) method. If not you will get a NullPointerException.
Implementing the equals and hashCode is also convenient.
Hope it helps,
Luis -
Adobe Interactive Form call XI Web Service
Hi,
it 's possible to call a XI Web Service from an Adobe Interactive Form? if yes, how can I do it?
Thanks,Hi,
http://my.execpc.com/~gopalan/dotnet/webservices/webservice_csharp_client.html
http://staff.washington.edu/fox/notes/ws_client_cs.shtml -
"Relevant Only" attributes in web service decision report
Is there a way to only get "Relevant Only" attributes evaluation in a web service decision report especially leveraging the Siebel Connector. I noticed that whether we could "Base" or "Full" the decision report contains more items than we would notice in the OPM debugger.
Is there a way to trim it down?As of OPA 10.4.0, the assess service will now only return relevant attributes in the decision report for an unknown attribute. For backwards compatibility, all assess services prior to 10.4 will continue to include all related attributes in the decision report.
-
Viewing binary attributes via web services
Hello,
We have an application that renders a link to view a binary attribute via the oracle web services. It works fine, but the users would like for the file to be served with a specific naming convention. There is a http param for setting the file extension on the served file, but I'm not sure about one for the file name. Here's the URL for viewing a binary attribute- does any one have any info on what additional parameters might be supported for formating the file name:
/identity/oblix/apps/common/bin/common.cgi?program=streamBinary&uid=myID&attribute=myAttribute&mime_type=application%2Foctet-stream&file_ext=myExtension&tab_id=myTab&appName=userservcenterHello,
We have an application that renders a link to view a binary attribute via the oracle web services. It works fine, but the users would like for the file to be served with a specific naming convention. There is a http param for setting the file extension on the served file, but I'm not sure about one for the file name. Here's the URL for viewing a binary attribute- does any one have any info on what additional parameters might be supported for formating the file name:
/identity/oblix/apps/common/bin/common.cgi?program=streamBinary&uid=myID&attribute=myAttribute&mime_type=application%2Foctet-stream&file_ext=myExtension&tab_id=myTab&appName=userservcenter -
Forms 9i and Web Services.
Hello,
We are currently evaluating an integration architecture that is based on consuming complex web services through Oracle Forms 9i (9.0.2) / 9iAS (9.0.2) / RDBMS 9i (9.0.2....)
The current group of WS exposes up to 23 methods which would be required to be displayed on the form. Call-outs to the Web Service have been minimised through navigation to a single form making the call and then storing the information locally.
I have read a number of articles related to the Java Importer that advises against consuming EJB's or PJC on the oracle form - written in 2001/2.
The question then is, does the bottleneck in between Forms C code and the JNI bridge still hold true - or have Oracle improved the issue since early 2002?
The alternative is to create Java Stored Procedures to call-out to the Web Service, or again alternatively to use the native UTL_HTTP in the database to make the calls (but this last option seems messy - even with prior understanding of the java client).
Does anybody have any experience with evaluating these two methods for integration or experiences that indicate one method over the other.
The early phase will only have a usage of 15 - 20 clients, but near term is 500.Hi,
the current impact that runtime processes have when calling out to the Java importer is that you implicitly launch one VM per user on the server which has a price in terms of memory required.
This gets addressed ion the first patch set of the upcoming OracleAS Forms Services 10g release where different Forms runtime processes can be configured to share the same VM thus reducing the memory requirement.
I suggest to use the Java Importer and then later move to OracleAS Forms Services when it gets available. All you need to do then, beside of configuring the shared VMs, is to reimport the Java classes used in the form.
check
http://otn.oracle.com/products/forms/pdf/formsj2ee_business.pdf
The Forms9i demos contain a Webservices example using teh Java Importer
http://download.oracle.com/otn/other/general/forms9iDemos9_0_0_1.zip
Fran -
View form based on web service response
Hi all,
I have created a web service with a result table and a return table. I want make a flow dission based on the value in the return table. can someone tell how I can do this in VC.
Kind regards,
RichardVeniamin,
I really don't have any issues with your approach; in fact, I quite like it.
I somewhat disagree that it would be more loosely-coupled (the XSLT would be just as tight a coupling as a generated bean IMHO); however, your approach would be easier in permitting multiple versions of a WS (just have multiple XSLT's).
If I were doing something one-off, I would probably go with Steve's approach; if I were building something bigger and more pervasive, your approach seems nice. I personally am not very good with XSLT, so maybe it's just my laziness ;)
Do let us know how it goes.
john
Maybe you are looking for
-
Netscape Messaging Server 4.15p7 deferred mail question.
How long does mail stay in the active queue before it is deferred. Is this configurable?
-
Why does cnn or other links open in desktop view?
Every browser I've used (chrome, opera, dolphin,etc.) will open www.cnn.com in a readable, single-column, format. How come Firefox opens in a full desktop view - which is unreadable without zoom?
-
Thunderbolt monitor wont start up.
I have a brand new macbook pro to a new 27 in monitor that is connected via thunderbolt. The monitor will start first thing in the morning for about 10 minutes and then shutdown I can't reboot the screen no matter how many times I restart my laptop
-
Help Needed on Table View Control
Hi Abapers In Table View Control which property or system variable keeps the user selected row's row id. Situation is that user enters many records into sales details table view. Table view contains the fields, productid product no qty discount and r
-
OEBS. Don't show menu file-export
Hello. Could anybody help. In one of the custom form (OEBS) is not active menu item File-Export In all other custom forms is active. Thanks