Web Service prompt value
Hi
i creates a web service through rich client BI services
i imported it to Xcelsius
in the input values i have a prompt value which is durected to a specific cell
this cell is updated from an input value or a flash variable or just typing it
the problem is that the web service refreshed on load or activated by a connection button does not take the value for the prompt
what am doing wrong ?
10x
Hello,
We have a known issue with prompts in BI Services XI 3.1 SP2 that prevents input values to be correctly matched with query prompts during BI Service runtime / consumption, when prompt labels (names) include special characters (like spaces, dash, question marks, etc. that are escaped with underscores '_').
Besides avoiding to expose prompts in BI Services, workaround is to simplify query prompt names in WebI document query so they do not include any special characters.
Fix for this issue will be delivered with FP2 (XI 3.1 SP2.2).
Hope that helps,
David.
Similar Messages
-
BI Web services - Prompts with 'OR' condition are not working
Hi Gurus
I am using BIWS to build my Xcelsius dashboards . When i building a webservice from webi report having two data providers named fact & dim and i merging two data providers and the result i am using in a report.
The Fact data providers contains a query filters with 'OR' conditions applied in it.
when i test this webservice with the values it always displaying the last refreshed instance of report even i purge the data before building web service.
Could you please let me know is any one faced this issue. I am using Webi rich client 12.3.1 version
Note *: The web service works fine if i am using query filters with 'AND' condition.
Kindly check this do the needful
Cheers
KarunHai
Check this
Re: Web Intelligence BI Web Services and Xcelsius
http://everythingxcelsius.com/xcelsius-training/xcelsius-and-business-intelligence-web-services-biws/3642
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00536d65-f9cf-2e10-0eaa-f3346306dc1a
http://www.asug.com/CalendarEventDetails/tabid/150/eventid/2509/Default.aspx
http://www.forumtopics.com/busobj/viewtopic.php?p=819152 -
Web service Task - Value pair as variable issue
firstly .. I not an .net Developer.
We have scenario in which I have a execute SQL task which sends a set of rows with two columns as an variable (object) to a for each loop container.The for each loop container has the web service task and each time it runs.
The web service task accepts allows/accepts a single variable but I need to provide the above two columns as pair to this complex type.....any help is appriciated....3rd ssis variable should be string.
The input variables have to be specified in the ReadOnlyVariables property. The output result variable has to be specified in the ReadWriteVariables property.
inside the script task
Dts.Variables("variable3").Value = Dts.Variables("variable1").Value.ostring() +Dts.Variables("variable2").Value.tostring();
Make sure before you are concatenating, both the values in the variable1 and variable2 should be string.
Thanks,
Anilkumar -
I have a web service and I'm cfdumping the return variable, but I don't know how to get the value out. This is what it is giving me.
1
object of com.nextaxiom.www.soapservice.xsd1.APApprovalList
Class Name
com.nextaxiom.www.soapservice.xsd1.APApprovalList
Methods
Method
Return Type
equals(java.lang.Object)
boolean
getAlertDate()
java.lang.String
getDescription()
java.lang.String
getDeserializer(java.lang.String, java.lang.Class, javax.xml.namespace.QName)
org.apache.axis.encoding.Deserializer
getInvoiceAmount()
java.lang.Double
getPaymentReferenceNumber()
java.lang.String
getSerializer(java.lang.String, java.lang.Class, javax.xml.namespace.QName)
org.apache.axis.encoding.Serializer
getTypeDesc()
org.apache.axis.description.TypeDesc
getUserName()
java.lang.String
getVendorName()
java.lang.String
hashCode()
int
setAlertDate(java.lang.String)
void
setDescription(java.lang.String)
void
setInvoiceAmount(java.lang.Double)
void
setPaymentReferenceNumber(java.lang.String)
void
setUserName(java.lang.String)
void
setVendorName(java.lang.String)
void
So some of this is the fields I want, but I want the value: description, alert date, invoice amt, etc. Can anyone help me. What do I need to do next to get the values?
Here is my CF statement and the WSDL file.
thanks for the help,
BJ
Invoke statement
<cfinvoke
webservice="http://127.0.0.1:8500/APApproval/GetAPApprovalList.wsdl"
method="GetAPApprovalList" refreshwsdl="true"
returnvariable="response">
<cfinvokeargument name="UserName" value="DAVBRY"/>
</cfinvoke>
<cfoutput>#response#</cfoutput>
WSDL FILE
<?xml version="1.0"?>
<!--Automatically generated 10/07/2011 by Hyperservice Business Platform, NextAxiom Technology, Inc.-->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
name="BSAPrototype.APApproval.GetAPApprovalList"
targetNamespace="http://www.nextaxiom.com/soapservice/BSAPrototype.APApproval.GetAPApprovalList/wsdl"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.nextaxiom.com/soapservice/BSAPrototype.APApproval.GetAPApprovalList/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd1="http://www.nextaxiom.com/soapservice/xsd1">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" targetNamespace="http://www.nextaxiom.com/soapservice/xsd1">
<element name="GetAPApprovalList">
<complexType>
<sequence>
<element name="UserName" type="string"/>
</sequence>
</complexType>
</element>
<element name="GetAPApprovalListResult">
<complexType>
<sequence>
<element maxOccurs="unbounded"
name="APApprovalList" type="xsd1:APApprovalList"/>
</sequence>
</complexType>
</element>
<complexType name="APApprovalList">
<sequence>
<element minOccurs="0" name="UserName" type="string"/>
<element minOccurs="0" name="AlertDate" type="string"/>
<element minOccurs="0" name="Description" type="string"/>
<element minOccurs="0" name="PaymentReferenceNumber" type="string"/>
<element minOccurs="0" name="InvoiceAmount" type="double"/>
<element minOccurs="0" name="VendorName" type="string"/>
</sequence>
</complexType>
</schema>
</types>
<message name="GetAPApprovalListRequest">
<part element="xsd1:GetAPApprovalList" name="GetAPApprovalList"/>
</message>
<message name="GetAPApprovalListResponse">
<part element="xsd1:GetAPApprovalListResult" name="GetAPApprovalListResult"/>
</message>
<portType name="BSAPrototype.APApproval.GetAPApprovalListSoapPort">
<operation name="GetAPApprovalList">
<input message="tns:GetAPApprovalListRequest"/>
<output message="tns:GetAPApprovalListResponse"/>
</operation>
</portType>
<binding name="BSAPrototype.APApproval.GetAPApprovalListSoapBinding" type="tns:BSAPrototype.APApproval.GetAPApprovalListSoapPort">
<soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GetAPApprovalList">
<soap:operation
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" soapAction="urn:doc?in=GetAPApprovalList?out=GetAPApprovalListResult?path=BSAPrototype.AP Approval.GetAPApprovalList"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="BSAPrototype.APApproval.GetAPApprovalList">
<port
binding="tns:BSAPrototype.APApproval.GetAPApprovalListSoapBinding" name="BSAPrototype.APApproval.GetAPApprovalListPort">
<soap:address
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="http://nextaxb:7777/NXAServer/NextAxiomServer"/>
</port>
</service>
</definitions>Getting complex objects back from web service calls are always tricky - especially when they've been desearialized as an object. We've found its a lot easier to deal with the Raw SOAP messages so at least we're working with an XML document, rather than a series of Getter functions, any of which that may return a NULL value (which does really unpleasant things to a CF variable).
When you absolutely have to deal with a complex non-CF originating object in CF, we've found that you can actually use the underlying Java classes to identify and automatically execute the getter functions to effective dump out the variables. We've rolled it up into a custom tag. The base code for the logic is below:
<cfset objVar = VARIABLE_CONTAINING_OBJECT_FROM_WEB_SERVICE>
<cfset arrMethods = objVar.getClass().getMethods()>
<cfoutput>
<cfif isDefined("arrMethods") AND isArray(arrMethods) AND ArrayLen(arrMethods) gt 0>
<table border="1" cellspacing="0" cellpadding="5" style="border-collapse:collapse;border:1px solid black;">
<tr>
<td colspan="3" style="background-color:##CCCCCC;">RESULT</td>
</tr>
<tr>
<td>Method</td>
<td>Class</td>
<td>Return Value</td>
</tr>
<cfset sComplexMethods = "">
<cfloop from="1" to="#ArrayLen(arrMethods)#" index="iMethod">
<cfset sReturnType = arrMethods[iMethod].getReturnType().toString()>
<cfif ListFindNoCase("int,java.lang.String,class java.lang.String,double,float,char", sReturnType)>
<tr>
<td>#arrMethods[iMethod].getName()#</td>
<td>#sReturnType#</td>
<cfset sReturnValue = EVALUATE("objVar." & arrMethods[iMethod].getName() & "()")>
<td><cfif isDefined("sReturnValue") AND sReturnValue neq "">#sReturnValue#<cfelse> </cfif></td>
</tr>
</cfif>
#sComplexMethods#
</cfloop>
</table>
</cfif>
</cfoutput> -
How to retrieve web services return value
I am using htmldb 2.0 and have created up the webservice reference. It's a simple web services, it will only return the string that I typed in one text area. Now my problem is that how can I print the string into my report area. In my webservice process, i just define the output of the webservices stored in one item in that page. Shall I write the value of that item to report region? Any ideas??
Regards,
Ke LinDid you have any luck with this.
I am having the same problem, I think, can set up the web service and it tests ok but when I run the process nothing happens, no values are passed back. Have checked the session state and nothing is there.
Andrew -
Build web service with value types
Hi,
I am trying to build a web service that uses a value type as a parameter.
I am using wscompile and wsdeploy to build the service.
But I don't know how to include the value type in my service.
This is what I do:
First I compile all the java files and put them in my build directory (incuding the value type class)
Then I use wscompile -define -d build -nd build -classpath build config-interface.xml -model build/model.gz
Then I create the war file that contains the class files, model.gz, web.xml and jaxrpc-ri.xml.
Then I run wsdeploy -o dist/generic-serv.war dist/generic-service.war
How do I get my value type class included in the wsdl file? and does it need to be in the model.gz file aswell?Sorry I was a bit wrong describing my problem.
I am trying to use an ArrayList containing value types as a parameter. -
BIWS - Publish block as a web service - prompt selection missing
Hello,
we are running sap Bo 4.0 sp 2 pach 6.
I have encountered a strange problem with Publish as a Web Service Wizzard.
I created a simple webi report with a vertical table based on Bex Query, the bex query has 2 mandatory prompts date: and company code:
Webi pics up these prompts and asks for them every time i do a refresh, as you would expect.
Now i want to publish my vertical table as a web service. I can`t, because the Publish content wizard does not see these prompts, so every time i refresh i get an error.
I tried a different approach:
Created the same webi report only this time going through an old universe (.unv) based on the same Bex query.
This time Publish as a Web Service Wizard works fine, it picks up the mandatory prompts and allows a normal refresh.
This seems like a bug, has anyone else encountered this? Maybe there is a SAP note for this? I can`t seem to find it though.I have the same problem.
The only workaround I tried is to remove the prompt entirely, and add the date and company code as a free characteristic. When you build webi query, you can find date and company code on your object browser and add them into query filter. BIWS will capture the prompt.
May not work if you have restricted key figure with prompt. And I am not sure about the performance as well though, it may bring everythign and filtering is being done in BO side. But I think BW is smart enough to fire up query to only bring selected result. -
Multiple selection in value help with Web service
Hi All,
I want to get data from web service and store in data base. I created input form with set of inputfields. For some input filds in that input form, I want to get value from web service.So I have used value help wizard. I followed below link to create value help wizard for web service.
Value help wizard working with java web service ?
While creating value help, it is only showing 'single selection' option. It does not showing any other options. Here I want to get multiple values from value help. How can I acheive this?.
Thanks,
Venkatesh RHi Venkat,
Try the below links for value help in visual composer.
Visual Composer: Value Help Data Service
Choosing Multiple Values within Visual Composer
http://help.sap.com/saphelp_nw04s/helpdata/en/50/91db4238bbf140e10000000a1550b0/frameset.htm
Regards
Basheer -
I have a Web Service that outputs just one value 'Sales Force' When I create a Data Store off of it I don't see the field as available to put into the store.
Any Ideas! Help!Hi Kenneth,
Lets see if this helps...
You have your ABAP web service in your storyboard. Drag a Data Store in you storyboard now. Configure the Data Store by adding a field of the same data type as that of the output field of your web service. Now connect the output port of your web service to the port of the Data Store. Click on the line connecting these two ports, and do the mapping, i.e. change the Assigned Value from the drop down and set it as the output parameter of the web service whose value you want to store in the Data Store.
Bye
Ankur
Do reward points if it helps!! -
Web services graphics plotting
Hi, How can i show a graph using Web Services, when values are frequently change.
Hi,
You can do this with ajax.
You can see this link on other forum.
Regards
Aurélien J.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Du 30 juin au 25 août, embarquez pour 2 mois de vidéo-t'chat ! Prenez place pour un voyage au coe... -
Dropdown List binding from web-service storing the reference not the value
Hi,
In my human task form, I have a dropdown field who's value list has to be derived from a web-service exposing a table holding the list of values.
It works perfectly fine for the end-user, as in when a user selects a value, say 'XYZ' in step-1 the next user in step-2 is able to see the value as 'XYZ'.
However, when I check the payload of the the composite instance in enterprise manager after the instance has left step-1, I do not see the value 'XYZ' in the payload XML; instead I see a string oracle.jbo.Key[2 0 ]. It seems like BPM is storing some sort of a reference to that value that it resolves at run-time thus displaying 'XYZ'. As the user changes the value from the list, the array seem to be changing like [3 0],[1 0],etc.
Is this how it is expected to behave ? Doesn't seem to be right to me as for all other fields it promptly stores the actual value in the payload and not any sort of reference
Here's what I did:
1. Added a Data Control of type web-service and provided the wsdl link for the same. The wizard asks for the operations which in my case is a simple 'select'
2. From the data control corresponding to the human-task data model, I dragged the field and selected Single Choice>ADF Select One Choice control
3. Edit binding page opens where the data-control of the web-service is enabled and has the option for providing the input for the web-service
4. Click ok and the next screen displays 'edit list binding' for the field dragged from the human task payload. Here I add the data control's output object (iterator). Then I provide the data mapping where I define the ID field identifying the value user would select. The display attribute has description of the id.
Regards,
Sudripta
Edited by: Sudripta on Apr 2, 2013 8:44 PMTry this -
http://adfwithejb.blogspot.com/2012/03/how-to-programmatically-create-select.html -
How to schedule Webi Documents with Prompts with RESTful Web Services
Hello,
I am trying to schedule Webi Documents with Prompts using RESTful Web Services with prompts. I am using Simple Rest Client app provided by Google Chrome. We have Business Objects SP6 Patch 1.
However the documentation for RESTful Web Services has only examples for the following
1. Schedule Documents without any Prompts to various destinations and recurrences.
2. Refresh Documents with Prompts.
Is there any example for scheduling documents with prompts? Please advise
Thanks in advanceHi Peter,
With Rest Client, on BI4.0 SP6, you can schedule Webi documents with prompts using the following:
URL: http://<servername>:6405/biprws/raylight/v1/documents/<docid>/schedules
Method:POST
Request Body:
<schedule>
<name>Enter values for City:</name>
<format type="webi"/>
<destination>
<inbox/>
</destination>
<once retriesAllowed="2" retryIntervalInSeconds="60">
<startdate>2013-08-26T15:58:51.000+02:00</startdate>
<enddate>2013-08-27T15:58:51.000+02:00</enddate>
</once>
<parameters>
<parameter optional="false" type="prompt" dpId="DP0">
<id>0</id>
<technicalName>Enter values for City:</technicalName>
<answer constrained="false" type="Text">
<values>
<value>Austin</value>
</values>
</answer>
</parameter>
</parameters>
</schedule>
Using the above request you can schedule the Webi document with prompts to inbox destination and set for once.
The schedule can be sent in different formats to several destinations and set just for once, daily,
hourly or monthly.
You can also check the example for this on page 275 of SAP Webi RESTful SDK user guide for BI4.0 SP6 below:
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_webi_restful_ws_en.pdf
Regards,
Swati
Message was edited by: Swati Ikhe -
Can we set prompts value in Webi to schedule thru JAVA SDK 4.0
Hi,
I need to schedule webi report which has prompts. Can we have schedule webi report with prompts in 4.0.
I was able set values for prompts and refresh the webi report using documentInstance object. I think we can't use this object for scheduling right?
Also, I would like set values from LOV.
Could you please help to find solution.
Thanks
VenkatHello Venkat,
Unfortunately the feature of scheculing a webi reports with prompts have been deprecated from the
version 4.0 using the enterprise java sdks.
In XI 3.1, promtsutil class was used for setting prompts while scheduling a webi report using java sdks, which have been deprectaed from 4.0 and there is no replacement for the same in enterprise java sdks.
However, this feature was re-implemented in the new Restful web services and is availble for BI 4.0 SP6 onwards as far as I am aware of.
Please refer to the below document for better understanding.
http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp6_webi_restful_ws_en.pdf
Also please refer to the forum http://scn.sap.com/community/restful-sdk for any queries related to Restful webservices sdks.
Thanks,
Prithvi -
Unable to capture return values in web services api
At the time of login to web services if my server is down ,
it returns following error :
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
I want to capture this error so that i can try another server to login. how do i capture this error
Another place where i want to capture the return Value is when i look for a report on the server
rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
"@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
oInfoObjects = rh.getInfoObjects();
CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
Here if the report is not there on the server , it returns a null handler exception.
but if i try catching it by checking my responsehandler is null like rh == null it does not catch it.
Any help will be appreciated
thanks
Rakesh GuptaTed : i have two cases
1) server = server_st.nextToken();
providerURL = "http://"server"/dswsbobje/services";
sessConnURL = new URL(providerURL + "/session");
Connection boConnection = new Connection(sessConnURL);
Session boSession = new Session(boConnection);
EnterpriseCredential boEnterpriseCredential = new EnterpriseCredential();
boEnterpriseCredential.setLogin(userid);
boEnterpriseCredential.setPassword(pwd);
boEnterpriseCredential.setAuthType(auth);
SessionInfo boSI = boSession.login(boEnterpriseCredential);
I have got a list of servers running web servcies stored in my tokens. when i pass the first server name say " test:8080" and that server is down , i want to catch somewhere in the code above that it did not get the connection so that i can loop back and try with the second server say test1:8080
This is for failover purposes.
at present when i was trying to capture return value of boSI it breaks giving the error
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1438)
at java.lang.String.substring(String.java:1411)
2nd case :
I am geeting reports from the server and scheduling them:
i run the following code which works fine if reports is there
rh = boBIPlatform.get("path://InfoObjects/Root Folder/"src_folder"/" + reportName +
"@SI_SCHEDULEINFO,SI_PROCESSINFO" ,oGetOptions);
oInfoObjects = rh.getInfoObjects();
CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
Here if the report is not there on the server then i should be able to catch from the response handle rh that it has got a null value.
but rh does not return a null value
the code ultimately throws a null handle at the following line
CrystalReport = (CrystalReport)oInfoObjects.getInfoObject(0);
i am not able to catch the null value there also.
hope you got my issue. -
Entering values in Web Services ID and Description, for External Catalog
Hi,
I am trying to connect to an external Vendor Catalog from ERP. Pl note that we just have ERP ECC 6.0 and no SRM. I went to SPRO and followed menu path 'Materials Management >> Purchasing >> Web Services: ID and Description'. I am not sure what to enter in 1) Seq. Number 2) Name of Parameter for Web Service and 3) Call Structure COLUMNS.
I have URL from Vendor, User Name and Password. I need to know what values are mandatory here so I can successfully connect to external Catalog. If someone can give me sample values, I can try.
Any help is appreciated,
NiranjanUpdate on 08/23/2011.
We are able to connect to Vendor Catalog, select items in Cart. When I press 'Place Order' button, I see all items populated in SAP PO ME21N screen. We can then add other information and create PO. This is working great. We have another question. Heard that with ERP ECC 6.0, we can only connect 1 vendor catalog. But with SRM, we can connect more than 1 vendor catalog. Is there a BAPI or change SAP code to connect more than 1 vendor catalog from ECC 6.0 ?
Maybe you are looking for
-
ADF Faces & BC: PPR and refresh condition on pagedef executables.
Hi all, I'm running into some problems on my page when a command button is pressed. It's partialSubmit attribute is set to true, it seems that iterators/invokeActions within my pageDef are re-executed and thus resetting the index iterator cursor to i
-
Persisting kernel panics with mountain lion (clean install)
hi, I could really have some help on recent kernel panics I am experiecing on my 2009 MacBook Pro with Mountain lion installed. Here and there I have been doing some reading but I am not a techy, most of it I do not understand. Last kernel panic occu
-
How to "Open iTunes automatically when iPod is connected"....
...without having them sync automatically? I'm able to do this on my MBP just fine. The solution on my MBP is to uncheck "prevent ipods, ipads, iphones from syncing automatically" under Devices Preferences. Then I'm able to check "Open iTunes when
-
Sending Master data - differentiate full and discrepancies
Hi experts, we need to send master data from SAP, and for materials and customers data, we have the following requirement : - send full data to some legacies - send discrepancies to others. Is there a way to handle that in PI or with partner profiles
-
Activation failed: CBS Server Error...Please help
Hello All, I get this error while activating a DC/activity: <i><b>Activation failed: CBS Server Error: The user does not have the authorization for the requested operation( internal code: USR_MISSING_PRIVILEGE)</b></i> I have setup the required User