How to pass the dynamic URL of web services in JAVASCRIPT in ADOBE
Hi,
In the below scenario how do i pass the URL dynamically from context's importing parameters instead of hard coding.
var cURL = "http://................" ;
var service = SOAP.connect(cURL);
xfa.connectionSet.connectionname.execute(0);
B'coz the URL is going to be different in Dev, Test, Prod system. In this case i can't hardcode the URL as explained in previous treads. Or please provide the possible alternatives.
Any help is highly appreciated.
Regards,
Sathish
Hi,
Got the solution for
var cURL = "http://................" ;
var service = SOAP.connect(cURL);
xfa.connectionSet.connectionname.execute(0);
I tried with
var cURL = xfa.form.data.PAGE2.SubFormPage.IM_URL.rawValue ;
var service = SOAP.connect(cURL);
xfa.connectionSet.connectionname.execute(0);
xfa - Root Node
form - Model
data - Form Design Root Node
PAGE2 - Page Name
SubFormPage - Sub Form inside the page
IM_URL.rawValue - Importing field to Adobe{ which i dragged from Data view into sub form(SubFormPage) & set the field as invisible so that it won't be available to user}
Working as expected.
Thanks,
Sathish
Similar Messages
-
Please help how to pass the dynamic value to VO -- Urgent.
Hi,
I have an Oracle Standard VO( SQL Query). As per my requriemnt i extended standard VO with one new feild.Now i want to query the new VO dynamically.
How to pass the dynamic values to new query?
for refence i am giving my old query.
select
secondary_inventory_name as SubInventoryName,
description as Description,
from mtl_secondary_inventories
my new Query is like this:
select
secondary_inventory_name,
description,
Item
from mtl_secondary_inventories
where item='123456'
I want to pass this "where item="123456" as dynamically. please help where i will do the change's.
Thanks,
Sekhar.Hi,
thanks pratap for quick response...but i am extending VO from Standard VO.
I have a Standard VO which contains a bind variable suppose :1.
I have extended this above standard VO and i want to add another bind variable say :2 to the custom VO.
Please tell me how will i pass bind parameter value to the bind variable in runtime ?
what are files i want to change?
Thanks,
Sekhar. -
Hello Expert,
I wanted to know is there any way through which we can dynamically pass the table name in IMPORT condition.
For e.g.
DATA : PCLT TYPE DD03L-TABNAME.
DATA: SET_RELID TYPE T52RELID-RELID.
DATA: key TYPE PCLKEY.
DATA: text_version TYPE PVRSN.
DATA: BEGIN OF ptext OCCURS 132.
DATA: line(132).
DATA: END OF ptext.
SET_RELID = 'TX'.
PCLT = 'PCL1'.
KEY = '00001000004005 9999123119960101000'.
TEXT_VERSION = '01'.
IMPORT TEXT_VERSION PTEXT FROM DATABASE <PCLT>(<SET_RELID>) ID KEY.
If i use this then it gives me error message "The Dictionary structure or table "<PCLT>" is either not active or does not exist."
Kindly help me in this matter.
Thanks
SrikanthHi Srikanth
I dont know if there is another solution, but this is what i did using a dynamic subroutine, please check it
just add this lines to your code
DATA: prog TYPE c LENGTH 8,
mess TYPE string,
sid TYPE string,
wrd TYPE string,
dir TYPE trdir,
OFF(3).
DATA: lt_code TYPE TABLE OF rssource-line.
DATA: ls_code TYPE rssource-line.
perform call_import using pclt set_relid key.
form call_import USING p_pclt p_set_relid p_key.
ls_code = 'PROGRAM SUBPOOL.'.
append ls_code to lt_code.
ls_code = 'form get_text tables ptext using p_key changing text_version.'.
append ls_code to lt_code.
ls_code = 'IMPORT text_version ptext from database'.
append ls_code to lt_code.
concatenate p_pclt '(' p_set_relid ')' into ls_code.
append ls_code to lt_code.
ls_code = 'id p_key.'.
append ls_code to lt_code.
ls_code = 'endform.'.
append ls_code to lt_code.
generate subroutine pool lt_code
name prog
message mess
SHORTDUMP-ID sid
WORD WRD
OFFSET OFF.
IF SY-SUBRC EQ 0.
perform GET_TEXT IN PROGRAM (prog) tables ptext
USING p_key
CHANGING text_version .
ENDIF.
endform.
Hope this help
Regards
MC -
Hello All,
I created a WSDL for Framework folder service FLD_PROPAGATE and FLD_PROPAGATE service has following two required request parameter:
$fieldName:isSelected: Set to 1 to propagate the specified field.
$fieldName: The value of the field to propagate
So, I am facing issue in passing the parameter $fieldName:isSelected.
I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
<csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
<csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
<csx:fSecurityGroup>Public</csx:fSecurityGroup>
Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
Here is the complete service definition:
FLD_PROPAGATE
Service that propagates metadata down through the folder structure in Folders.
Service Class: intradoc.folders.FoldersService
Location: IdcHomeDir/resources/frameworkfolders_service.htm
Required Service Parameters
$fieldName:isSelected: Set to 1 to propagate the specified field.
$fieldName: The value of the field to propagateHello All,
I created a WSDL for Framework folder service FLD_PROPAGATE and FLD_PROPAGATE service has following two required request parameter:
$fieldName:isSelected: Set to 1 to propagate the specified field.
$fieldName: The value of the field to propagate
So, I am facing issue in passing the parameter $fieldName:isSelected.
I tried to pass the request parameter as mentioned below in SOAP UI request payload but still this is not working and error message is: "Unable to propagate. Please select at least one field to propagate"
<csx:fSecurityGroup:IsSelected>1</csx:fSecurityGroup:IsSelected>
<csx:fFolderGUID>C7F5CBB4E54A790E21E18CE378B16EEB</csx:fFolderGUID>
<csx:fSecurityGroup>Public</csx:fSecurityGroup>
Could you please suggest for the correct way to pass these parameter values? If anyone have sample WSDL for this service please share?
Here is the complete service definition:
FLD_PROPAGATE
Service that propagates metadata down through the folder structure in Folders.
Service Class: intradoc.folders.FoldersService
Location: IdcHomeDir/resources/frameworkfolders_service.htm
Required Service Parameters
$fieldName:isSelected: Set to 1 to propagate the specified field.
$fieldName: The value of the field to propagate -
How to pass preprocessing information to a web service report?
Post Author: rmsky
CA Forum: Crystal Reports
Does anyone know how a web service client can provide information to the constructor for a Crystal Reports web service report so that it can preload a non-trivial dataset prior to running a report. For example, if I want to load a dataset based on a user ID prior to calling SetDataSource, how do I get that user ID to the web service report constructor? If I pass a parameter into the report via the CrystalReportsViewer, is there any way to get access to that parameter at the web service? Thanks.SSZ wrote:
Yes.But couldn't understand where to start.In that case use the magic wand.
Ask specific questions, Many of your posts have an underlying tone , that of you not having read any documentation of bothered to research anything yourself I havent got the time to tell you how if you havent got the time to tell me what you have read , what you grasp and what you do not grasp. -
How to delete the Webservice entry from Web service navigator?
Hi,
My current issue is that, developers have created many webserivces and these web services are visible in web service navigator that i access by following link
http://<host>:<port>/wsnavigator
But now we have to remove the unwanted webservices i.e. i want that unwanted webservices should not be visible to anyone when we access WSNAVIGATOR.
How should i go about it?
Am i required to undeploy the web services that is deployed from SDM GUI?
Please pour in your valuable inputs.
Any help would be highly appreciated.
Regards,
AmeyaI had to revove the entry from VA. Removing this entry also removes the web service from ws navigator.
-
How to pass username/password to BPEL web service from java proxy?
Hi all,
Environment : SOA Suite 11g
I am using basic http authentication in my SOA services using "oracle/wss_http_token_client_policy" policy. Now i need to invoke these SOA web services from a java proxy.
Please let me know how this can be done.
Thanks in advanceHave you tried the below posts ?
BPEL to invoke Webservice secured with HTTP Basic authentication
Invoke a BPEL process using HTTP Basic Authentication
http://docs.oracle.com/cd/E21764_01/web.1111/e13713/owsm_appendix.htm#CHDBAHBI
Thanks,
Vijay -
How to pass XMLNode to JAX-RPc web service
I am new to web services using JAX-RPC.
Here is my problem. I need to pass Node object from org.w2c.dom.Node to webservice (using JAX-RPC) and return canonicalBytes back to client.
I know I cannot pass Node directly as a parameter to the method (checked Java Language Typed supported by JAX-RPC).
So to cheat the system, I put in this Node object into a vector and then passed this vector to web service.
Here is the exception:-
java.rmi.RemoteException: serialization error: no serializer is registered for (class oracle.xml.parser.v2.XMLElement, null); nested exception is:
serialization error: no serializer is registered for (class oracle.xml.parser.v2.XMLElement, null)
at com.peppercoin.webservice.security.ISignatureVerification_Stub.getCanonicalBytes(ISignatureVerification_Stub.java:77)
at HelloClient.main(HelloClient.java:29)
Caused by: serialization error: no serializer is registered for (class oracle.xml.parser.v2.XMLElement, null)
at com.sun.xml.rpc.encoding.DynamicSerializer.getSerializerForObject(DynamicSerializer.java:69)
at com.sun.xml.rpc.encoding.DynamicSerializer.serialize(DynamicSerializer.java:52)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.serialize(ReferenceableSerializerImpl.java:59)
at com.sun.xml.rpc.encoding.soap.CollectionSerializer.serializeArrayElements(CollectionSerializer.java:72)
at com.sun.xml.rpc.encoding.soap.CollectionSerializer.serializeArrayInstance(CollectionSerializer.java:55)
at com.sun.xml.rpc.encoding.soap.CollectionSerializerBase.serialize(CollectionSerializerBase.java:98)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.serialize(ReferenceableSerializerImpl.java:59)
at com.peppercoin.webservice.security.ISignatureVerification_getCanonicalBytes_RequestStruct_SOAPSerializer.doSerializeInstance(ISignatureVerification_getCanonicalBytes_RequestStruct_SOAPSerializer.java:62)
at com.sun.xml.rpc.encoding.ObjectSerializerBase.serialize(ObjectSerializerBase.java:100)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.serialize(ReferenceableSerializerImpl.java:59)
at com.sun.xml.rpc.client.StreamingSender._writeRequest(StreamingSender.java:441)
at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:63)
at com.peppercoin.webservice.security.ISignatureVerification_Stub.getCanonicalBytes(ISignatureVerification_Stub.java:60)
... 1 more
Every works great as long as i put in strings in Vector.
Is there a work around or did i miss anything, Please help
I am using Oracle Parser
Thanks
Sagar MalisettiYou can't "cheat the system" this way. The serializer for Vector is trying to find a serializer for the elements in the Vector instance that it received. So, it is trying to find a serializer for whatever is the the runtime type of your org.w3c.dom.Node. When it can't find such a serializer in the TypeMappingRegistry, it throws the exception.
-
How to implement the odata model with web service
hi dear all,
i am trying to expose the web service as odata service in gwpa (not the NW Gateway) and i want to deploy it into smp 3.0
but cannot find any helpful materials on it.
could you give me some guide?
thank you very much
best regards
lawrenceHi Lawrence,
There are plenty blogs available. You can check either
Marvin Hoffmann
How to use Integration Gateway with SMP 3.0 (Part 1)
Let me know if you face any issues.
Rgrds,
Jitendra -
How to retrieve the HttpSession from Axis Web Service
hello,
How can I get the HttpSession in Web Service ???
EricHi,
I have generated the java classes from a WSDL using WSDL2Java using the following command line options.
java -classpath .;%AXISCLASSPATH%;%CLASSPATH% org.apache.axis.wsdl.WSDL2Java -s -S true -d Session -Nhttp://localhost:
7001/axis=samples.grapha -a samples\grapha\grapha.wsdl
I need to retrieve HTTPSession in the generated GraphASOAPBindingImpl class. Can you help me?
Thanks,
vc -
How to get the cookie from a web service using Axis
I used the AXIS wizard to consume a WSDL and create a bunch of boiler plate code. It works great in that I can talk to the web service and submit requests.
The problem is that I need to retrieve the cookie from the login request and use it when making subsequent requests. I have been unable to find the cookie and would appreciate a point in the right direction.
Currently I'm trying something like this
String cookie = (String)((Stub)service)._getCall().getMessageContext().getProperty(HTTPConstants.HEADER_COOKIE);
Thanks in advance.Answered on my own:
Just have to use
x_result = http_client->response->get_data( ).
instead of
x_result = http_client->response->to_xstring( ).
Just don't knwo why the filesize is wrong also - but I can work with this image! -
How to pass credentials to an external web service from BPEL in 11g
Hi All,
I am using JDev,SOA 11.1.1.2.0.
In our process we are calling siebel service which is a secured one and it does not use wsse security headers.
In siebel service i am passing username and password through soap headers.
What we need to do apart from this?
In 10g we have done this by passing these values through invoke activity.
In 11g i did not find any thing like this.
Please help me out.
Regards
PavanKumar.Mgo to composite
Right click on the external reference service and select “Configure WS policies” :done
Under the security tab, click add button and select “oracle/ wss_username_token_client_policy :done
6. Now Open the property Inspector window and click the add button under “Binding properties” tab. :done
7. Include the “oracle.webservices.auth.username--> :done
value-->password :done
8. Include the “oracle.webservices.auth.password”-->name :done
value-->password :done
Thanks -
How to get the list of values for a dynamic parameter using Web Services SDK?
<p>I am struggling to get the list of values for a dynamic parameter of a report.</p><p>I am using Java Web Services SDK ... I tried to use PromptInfo.getLOV().getValues() method but it does not work.</p><p>First of all ... is this possible (to get the list of values for a dynamic param) using Web Services?</p><p>Second of all, if this is possible, how should I do it ... it seems it works fine when running the report from CMC. It asks for DB logon info and after that it provides a list of values.</p><p>Thx </p>
<p>Your assumption is correct. We are trying to get the LOVs from the Crystal Report. I was not aware that this is not supported by Web Services SDK.</p><p>We used Web Services SDK to integrated the Crystal Reports in our web application. We implemented some basic actions for reports: schedule, view instances, run ad-hoc reports.</p><p>We encountered this problem when trying to run/schedule reports with dynamic parameters (a list of values from DB). We were unable to get the LOVs.</p><p>Please let me know if you can think of an alternative to look at.</p><p>Thanks a lot,</p><p>Catalin </p>
-
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM
Maybe you are looking for
-
Creation of Sales order from Purchase Order ( reversal of SO-to-PO)
Dera friends My client has two companies ( two company codes.EPC & EPM) EPC- Gives PO to EPM EPM will supply the goods. So EPM will accept the PO and send the SO to EPC Both the companies are in same client ( 100) My client requirement is : Once they
-
How can i get my itunes to recognize itunes on an external drive
My itunes for some reason doesn't recognize my external drive It has done so for years and NOW it doesn't ... I need help. Greg
-
Home sharing will load on PC but not Mac
I'm transferring music from my old computer (PC) to my new one (MacBook Pro) and I can see my Mac's library on my PC but not vice versa. Help?
-
I had written the below qery : its showing error that:for pooled tble,cluster tble,projection veiws join is not allowd : 'CDPOS'. SELECT ekkoebeln cdhdrudate cdhdrtcode cdhdrtabname INTO CORRESPONDING FIELDS OF TABLE it_cdhdr FROM ( ( ekko AS ekk
-
Migration Assistant password woes w/ Mountain Lion
Having a bag of hurt trying to migrate from an old iMac to a new Retina Display MacBook Pro. Using Carbon Copy CLoner, I cloned my iMac's drive to a USB external, to simplify/automate migrating the data to the MBP. The transfer went normally, but the