Util.Date in Web Services
Hello,
I have a JAXRPC web service that passes Javabeans. One of the Beans has an attribute of Util.Date but for some reason on the client it requests a Util.Calendar and so fails to compile, does any one know why this is happening?
The util.Date was deprecated and you should use util.Calendar instead.
Hope this helps
Gobellot
Similar Messages
-
Want to find out how much data a Web Service is sending to client (JWSDP)
Well, the subject line didn't fit what I was intended to say, so if you don't get what I am saying in the subject line, I am sorry.
My question is... I have a Web Service client that uses stub classes generated by wscompile in JWSDP. I am wondering, it there a way to find out how much data the Web Service is sending back to my client.
The reason I asked is this, I used WebLogic 7.0 workshop to create a Web Service and also used JWSDP to create the same Web Service which deploys to Tomcat. The generated WSDL files from WebLogic workshop and JWSDP that expose the same functionalities have differences. The WSDL from WebLogic workshop is 1.5 times the size of the WSDL from JWSDP. When I tested both with client programs, calling the Web Service in Tomcat (which uses JWSDP to built) is much quicker than calling the Web Service in WebLogic.
For this reason, I would liked find out if the Web Service from WebLogic is sending more data than the one created with JWSDP.
Thanks.I've used the TcpTunnelGui utility to see the HTTP flowing up and down the wire, that might help you.
-
Need help in design the scenario sending data to web service
Hello All,
I need to send data to web service and get the response back.
i want to use HTTP to soap Scenario.Please let me know the necessary steps in the scenario.
Thanks and Regards,
ChinnaHi Chinna,
> i want to use HTTP to soap Scenario.Please let me know the necessary steps in the scenario.
Split this into 2 scenarios
1. HTTP to SOAP (Request) treated as Asynchronous.
2. SOAP to HTTP (Responce) treated as Asynchronous.
For HTTP to SOAP synchronous scenario
Here the receiver side request and responce structures no need to create, the receiver client will provide you the XSD file, on that XSD file having the request and responce message structures, so you have to import that to XI server as External definition.
For sender HTTP you have to create 2 data types, 2 message types as well as 2 message interfaces, 2 message mappings for request and responce messages and 2 service/Message interfaces (HTTP is outbound and SOAP is inbound).
Configuration objects are same.
Regards
Ramesh -
How get data from Web Service with token?
Can I get data from Web Service made with Java?
This WS has a Token.
Any ideas o reference?
Regards!
Fran Díaz | twitter: @frandiaz_ | Blog: {geeks.ms/blogs/fdiaz/} | Communities: {onobanet.es} & {secondnug.com}We've now added this ability to Web.Contents. You can say something like
Web.Contents("http://my.web.service/1", [Headers=[#"The-Token"="0a0138ef2d"]])
and it will pass a header with the key "The-Token" and the value "0a0138ef2d" as part of the HTTP request. For security reasons, this will only work for anonymous web requests.
The December preview can be downloaded from
http://www.microsoft.com/en-us/download/details.aspx?id=39933&WT.mc_id=blog_PBI_Update_PowerQuery -
Don't show data from web service to Cross-Tab in xcelsius
Hi all visitors
I have created one web service and my web service will show data like this.
Group ___Floor ____Amount
Member__Floor 1__1000000
Member__Floor 2__1000000
Member__Floor 1__1000000
Member__Floor 2__1000000
Member__Floor 2__2200000
Member__Floor 1__ 1000000
Member__Floor 1__ 1000000
In my xcelsius, i have option to make it to cross-tab.
when i use that data( data above by manual) to excel spreadsheet. The data will change to
Group______________Floor1________________Floor2______________GrandTotal
Member____________5000000_____________ 3200000_____________8200000
GrandTotal__________5000000_____________ 3200000_____________8200000
But when i load the data from web service,It doesn't show anything.
(when i use list view to show data from web server, i see all data)
How can i load data from web service and show the data like manually?
Best Regards,Hi Tony,
As per your example i have used the SUMIF fucntion
have a glance at that and let me know if you need help
Data coming from webservice >> Concat Group Floor Amount
=C7&D7 Member Floor1 1000000
=C8&D8 Member Floor2 1000000
=C9&D9 Member Floor1 1000000
=C10&D10 Member Floor2 1000000
=C11&D11 Member Floor2 2200000
=C12&D12 Member Floor1 1000000
=C13&D13 Member Floor1 1000000
Cross Tab >>Group Floor1 Floor2
Member =SUMIF($B$7:$B$13,$H$7&I6,$E$7:$E$13) =SUMIF($B$7:$B$13,$H$7&J6,$E$7:$E$13)
Grand Total =SUM(I7) =SUM(J7)
Original data after
Group Floor1 Floor2
Member 4,000,000 4,200,000
Grand Total 4,000,000 4,200,000
Hope this may solve your issue.
Ley me know if you have any other issues.
Regards,
AnjaniKumar C.A. -
How to get data from web service in ADF mobile
I'm new to ADF mobile application development. I'm currently blocked in a scenario. I have a web service(from third party) which needs <wsse:Security> to retrieve data. In soapUI, the web service will retrieve the response only when there is this security tag. Otherwise it will give response as invalid security. The web service looks like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xx="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/" xmlns:get="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/get_login/">
<soapenv:Header>
<xx:SOAHeader>
<!--Optional:-->
<xx:Responsibility>XXX</xx:Responsibility>
<!--Optional:-->
<xx:RespApplication>XXX</xx:RespApplication>
<!--Optional:-->
<xx:SecurityGroup>XXX</xx:SecurityGroup>
<!--Optional:-->
<xx:NLSLanguage>XXX</xx:NLSLanguage>
<!--Optional:-->
<xx:Org_Id>XXX</xx:Org_Id>
</xx:SOAHeader>
<The portion which is excluded from the soap, but which is required for getting response>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-1">
<wsse:Username>XXX</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXX</wsse:Password>
<wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">XXX</wsse:Nonce>
<wsu:Created>2013-02-13T08:58:50.649Z</wsu:Created>
</wsse:UsernameToken>
</wsse:Security>
<The portion which is excluded from the soap, but which is required for getting response>
</soapenv:Header>
<soapenv:Body>
<get:InputParameters>
<!--Optional:-->
<get:P_USERNAME>XXX</get:P_USERNAME>
</get:InputParameters>
</soapenv:Body>
</soapenv:Envelope>
I tried the steps described in ADF mobile tutorial to get web service data. But I'm getting response code 500 from the server. I tried the steps for secured web service also. But I'm not sure which security policy has been implemented in the web service. I tried with oracle/wss_username_client_token_policy and some others but didn't succeed. Later I tried by creating web service client/proxy. But as Oracle ADF only supports java 1.4, I got errors in the generated code(errors on generics and annotation).
The WSDL for the web service is as follows:
<definitions xmlns:tns="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns1="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/get_login/" name="XX_FS_MOB_LOGIN" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/get_login/">
<include schemaLocation="http://27.251.157.211:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/APPS_XX_FS_MOB_LOGIN_GET_LOGIN.xsd"/>
</schema>
<schema xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/apps/csf/soaprovider/plsql/xx_fs_mob_login/">
<element name="SOAHeader">
<complexType>
<sequence>
<element name="Responsibility" minOccurs="0" type="string"/>
<element name="RespApplication" minOccurs="0" type="string"/>
<element name="SecurityGroup" minOccurs="0" type="string"/>
<element name="NLSLanguage" minOccurs="0" type="string"/>
<element name="Org_Id" minOccurs="0" type="string"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="GET_LOGIN_Input_Msg">
<part name="header" element="tns:SOAHeader"/>
<part name="body" element="tns1:InputParameters"/>
</message>
<message name="GET_LOGIN_Output_Msg">
<part name="body" element="tns1:OutputParameters"/>
</message>
<portType name="XX_FS_MOB_LOGIN_PortType">
<operation name="GET_LOGIN">
<input message="tns:GET_LOGIN_Input_Msg"/>
<output message="tns:GET_LOGIN_Output_Msg"/>
</operation>
</portType>
<binding name="XX_FS_MOB_LOGIN_Binding" type="tns:XX_FS_MOB_LOGIN_PortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="GET_LOGIN">
<soap:operation soapAction="http://XXX:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/"/>
<input>
<soap:header message="tns:GET_LOGIN_Input_Msg" part="header" use="literal"/>
<soap:body parts="body" use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="XX_FS_MOB_LOGIN_Service">
<port name="XX_FS_MOB_LOGIN_Port" binding="tns:XX_FS_MOB_LOGIN_Binding">
<soap:address location="http://XXX:8000/webservices/SOAProvider/plsql/xx_fs_mob_login/"/>
</port>
</service>
</definitions>
Please help me to figure out a solution for this.
Thanks in advance
Rinohow to store the data in the mobile which i fetched from the server using RMS. Can u give me a eg. code. here and send me a link to my email id. [email protected]
I am using Oravle10g as the database. It is installed in the server.
I made a connection in servlet using ODBC:JDBC.
I am able to see the data fetched from the server in my mobile.
Now, i am trying to save the data. But i dont know how to use the RMS to connect to the Oracle database or pass the string etc.
Do help me if you dont mind.
I kept reading and tried some codes but i failed.
Me still trying...........
Thanks in Advance. -
Presence data from web service
Hello,
i like to get presence data from the presenceconsumer web service. But everytime a call getUserPresence i get a PolicyException (POL0002): 'Privacy verification failed for address %1, request is refused'.
I use a web service proxy generated from the wsdl of the presenceconsumer web service. Authentication is made against the appregationproxy by setting username and password. Both users (the one i use for authentication and the one whose presence data i want to get) are registered in the timesten database.
The user whose presence data should be accessed is logged in the OracleCommunicator and has the other user on the allowed list for presence data.
All other operations of the presence web services work without any problem, so why not getUserPresence?
Thanks for helpHi,
I have found the problem and fixed it :)
If you see my code, I was checking for the pending subscriptions after publish() method. When I tried this check before publish() method, I got the expected results (All the pending subscriptions).
Also, I got an error (ServiceException) while dynamically retrieving the subscribed attributes for some reason. I have found an alternative solution, by manually allowing only the PresenceAttributeType.Activity (instead of all getSubscribedAttributes()).
Note: This code was working fine in my local machine because, I have already setup-ed the users (Buddy list) through Oracle communicator in my machine. I was not able to install OC in the VM for some reason though OS is same in both my machine and the VM (OS: Windows 2000 SP4).
thanks & regards,
S.Vasanth Kumar.
My latest code for your reference.
=======================================================
package presencedemo;
import java.net.URI;
import java.rmi.RemoteException;
import java.util.Calendar;
import org.csapi.schema.parlayx.common.v2_0.PolicyException;
import org.csapi.schema.parlayx.common.v2_0.ServiceException;
import org.csapi.schema.parlayx.common.v2_0.SimpleReference;
import org.csapi.schema.parlayx.presence.v2_0.ActivityValue;
import org.csapi.schema.parlayx.presence.v2_0.AttributeTypeAndValue;
import org.csapi.schema.parlayx.presence.v2_0.CommunicationMeans;
import org.csapi.schema.parlayx.presence.v2_0.CommunicationMeansType;
import org.csapi.schema.parlayx.presence.v2_0.CommunicationValue;
import org.csapi.schema.parlayx.presence.v2_0.OtherValue;
import org.csapi.schema.parlayx.presence.v2_0.PlaceValue;
import org.csapi.schema.parlayx.presence.v2_0.PresenceAttribute;
import org.csapi.schema.parlayx.presence.v2_0.PresenceAttributeType;
import org.csapi.schema.parlayx.presence.v2_0.PresencePermission;
import org.csapi.schema.parlayx.presence.v2_0.PrivacyValue;
import org.csapi.schema.parlayx.presence.v2_0.SphereValue;
import org.csapi.schema.parlayx.presence.v2_0.SubscriptionRequest;
import org.csapi.wsdl.parlayx.presence.consumer.v2_0.interface_.PresenceConsumerClient;
import org.csapi.wsdl.parlayx.presence.supplier.v2_0.interface_.PresenceSupplierClient;
/* PresenceDemoClient.java
* This class contains the primary functionality for
* connecting to the Presence Server and retreiving
* presence information for a set of buddies
public class PresenceDemoClient {
PresenceSupplierClient supplier;
PresenceConsumerClient consumer;
private String PresenceServer;
private String PresenceUsername;
private String PresencePassword;
private String PresenceRealm;
private String PresencePort;
URI BuddyList[];
PresenceAttributeType[] pat1;
// Constructor - creates a supplier and consumer presence client
// for publishing, subscribing to, and retrieving user presence.
public PresenceDemoClient(String server, String username, String password,
String realm, String port, URI[] buddies) {
try {
supplier = new PresenceSupplierClient();
consumer = new PresenceConsumerClient();
PresenceServer = server;
PresenceUsername = username;
PresencePassword = password;
PresenceRealm = realm;
PresencePort = port;
BuddyList = new URI[buddies.length];
BuddyList = (URI[])buddies.clone();
} catch (Exception e) {
System.out.println(e.toString());
// publishPresence - this method publishes presence on behalf of the
// current user. Allowed information includes and activityString and a note
public void publishPresence(String activityString, String note) {
try {
System.out.println("Publishing presence for " + PresenceUsername);
// create supplier web service endpoint
supplier.setEndpoint("http://" + PresenceServer + ":" +
PresencePort +
"/aggregationproxy/presencesupplierws/presencesupplier");
System.out.println("Supplier URL: " + "http://" + PresenceServer + ":" +
PresencePort +
"/aggregationproxy/presencesupplierws/presencesupplier");
supplier.setMaintainSession(true);
supplier.setUsername(PresenceUsername);
supplier.setPassword(PresencePassword);
ActivityValue activity = null;
String expires = "3600"; // default expiration of subscription
if (note == null || note.length() < 1)
note = "From Web Service Client";
if (activityString == null)
activity = ActivityValue.ActivityNone;
else if (activityString.equals("Available"))
activity = ActivityValue.Available;
else if (activityString.equals("Busy"))
activity = ActivityValue.Busy;
else if (activityString.equals("Meeting"))
activity = ActivityValue.Meeting;
else if (activityString.equals("Away"))
activity = ActivityValue.Away;
else
activity = ActivityValue.ActivityNone;
PresenceAttribute pa = new PresenceAttribute();
AttributeTypeAndValue typeValue = new AttributeTypeAndValue();
typeValue.setActivity(activity);
if (Integer.parseInt(expires) == 0)
typeValue.setUnionElement(PresenceAttributeType.Other);
else
typeValue.setUnionElement(PresenceAttributeType.Activity);
CommunicationMeans mean = new CommunicationMeans();
System.out.println(new URI("sip:" + PresenceUsername + "@" +
PresenceRealm));
mean.setContact(new URI("sip:" + PresenceUsername + "@" +
PresenceRealm));
mean.setPriority(1);
mean.setType(CommunicationMeansType.Chat);
CommunicationValue commValue = new CommunicationValue();
commValue.setMeans(new CommunicationMeans[] { mean });
typeValue.setCommunication(commValue);
OtherValue other = new OtherValue();
other.setName("Expires");
other.setValue(expires);
typeValue.setOther(other);
typeValue.setPrivacy(PrivacyValue.PrivacyNone);
typeValue.setPlace(PlaceValue.PlaceNone);
typeValue.setSphere(SphereValue.SphereNone);
pa.setTypeAndValue(typeValue);
pa.setNote(note);
//Allowing all pending subscriptions
SubscriptionRequest[] srArray = supplier.getOpenSubscriptions();
for (SubscriptionRequest sr:srArray) {
URI watcher = sr.getWatcher().normalize();
/*System.out.println("Blocking: " + watcher);
supplier.blockSubscription(watcher);*/
System.out.println("Allowing: " + watcher);
/*PresenceAttributeType patArray[] = supplier.getSubscribedAttributes(watcher.toString());
PresencePermission permissions[] = new PresencePermission[supplier.getSubscribedAttributes(watcher.toString()).length];
for(int i=0;i<patArray.length;i++){
PresenceAttributeType pat = patArray;
System.out.println("\tPermission: " + pat);
PresencePermission pp = new PresencePermission();
pp.setPresenceAttribute(pat); //You always pass in Activity
pp.setDecision(true); //Put the user on the allow list
permissions[i] = pp;
supplier.updateSubscriptionAuthorization(watcher,permissions);*/
PresenceAttributeType pat = PresenceAttributeType.Activity;
PresencePermission pp = new PresencePermission();
pp.setPresenceAttribute(pat); //You always pass in Activity
pp.setDecision(true); //Put the user on the allow list
supplier.updateSubscriptionAuthorization(watcher,new PresencePermission[]{pp});
Calendar dateTime = Calendar.getInstance();
pa.setLastChange(dateTime);
supplier.publish(new PresenceAttribute[] { pa });
System.out.println("Publish done: " + "sip:" + PresenceUsername + "@" +
PresenceRealm);
} catch (Exception e) {
System.out.println("Publish failed: " + e.toString());
e.printStackTrace();
// subscribePresence - this method subscribes to
// presence information of buddylist members
public void subscribePresence() {
try {
// create web services endpoint
consumer.setEndpoint("http://" + PresenceServer + ":" +
PresencePort +
"/aggregationproxy/presenceconsumerws/presenceconsumer");
System.out.println("Consumer URL: " + "http://" + PresenceServer + ":" +
PresencePort +
"/aggregationproxy/presenceconsumerws/presenceconsumer");
consumer.setMaintainSession(true);
consumer.setUsername(PresenceUsername);
consumer.setPassword(PresencePassword);
// Setting the attribute to activity.
PresenceAttributeType pa = PresenceAttributeType.Activity;
PresenceAttributeType[] pat = new PresenceAttributeType[] { pa };
// These input are required but not used.
SimpleReference sr = new SimpleReference();
sr.setCorrelator("unused_correlator");
sr.setInterfaceName("unused_interfacename");
sr.setEndpoint(new URI("http://unused.com"));
int counter = 0;
// Calling the subscribe web service with sip
// address of each buddy
for (counter = 0; counter < BuddyList.length; counter++) {
System.out.println("Subscribing presence for: " + BuddyList[counter]);
consumer.subscribePresence(BuddyList[counter], pat, "unused",
sr);
Thread.sleep(3000); // Give the backend enough time to get the subscription.
// Define Presence Activity types and attribute storage
PresenceAttributeType pa1 = PresenceAttributeType.Activity;
pat1 = new PresenceAttributeType[] { pa1 };
} catch (Exception e) {
System.out.println("Exception " + e.toString());
e.printStackTrace();
// getUserPresence - this method retuns the presence information
// of a particular buddy(user)
public PresenceAttribute getUserPresence(URI user) {
PresenceAttribute pa;
try {
System.out.println(consumer.getEndpoint() + "," + consumer.getUsername());
pa = consumer.getUserPresence(user, pat1)[0];
} catch (PolicyException pEx) {
pa = null;
System.out.println("PolicyException:getUserPresence: " + pEx.getMessageId() + ":" + pEx.getText());
String[] variables = pEx.getVariables();
for(String str:variables){
System.out.println(str);
} catch (ServiceException serEx) {
pa = null;
System.out.println("ServiceException:getUserPresence: " + serEx.toString());
} catch (RemoteException rEx) {
pa = null;
System.out.println("RemoteException:getUserPresence: " + rEx.toString());
return pa;
public static void main(String args[]) throws Exception{
URI[] buddy_list = {new URI("sip:[email protected]"),new URI("sip:[email protected]"),new URI("sip:[email protected]")};
PresenceDemoClient client = new PresenceDemoClient("192.168.111.222","employee1","welcome1","vitkovice","8888",buddy_list);
client.publishPresence("Available",":)");
client.subscribePresence();
URI[] buddy_list2 = {new URI("sip:[email protected]"),new URI("sip:[email protected]"),new URI("sip:[email protected]")};
PresenceDemoClient client2 = new PresenceDemoClient("192.168.111.222","employee2","welcome1","vitkovice","8888",buddy_list2);
client2.publishPresence("Available",":)");
client2.subscribePresence();
URI[] buddy_list3 = {new URI("sip:[email protected]"),new URI("sip:[email protected]"),new URI("sip:[email protected]")};
PresenceDemoClient client3 = new PresenceDemoClient("192.168.111.222","employee3","welcome1","vitkovice","8888",buddy_list3);
client3.publishPresence("Available",":)");
client3.subscribePresence();
URI[] buddy_list4 = {new URI("sip:[email protected]"),new URI("sip:[email protected]"),new URI("sip:[email protected]")};
PresenceDemoClient client4 = new PresenceDemoClient("192.168.111.222","employee4","welcome1","vitkovice","8888",buddy_list4);
client4.publishPresence("Available",":)");
client4.subscribePresence();
Thread.sleep(10000); //Allow some time for all the subscription notifications.
PresenceAttribute pa = client.getUserPresence(buddy_list[0]);
System.out.println(buddy_list[0] + ": " + pa.getTypeAndValue().getActivity() + " " + pa.getNote());
PresenceAttribute pa2 = client2.getUserPresence(buddy_list2[0]);
System.out.println(buddy_list2[0] + ": " + pa2.getTypeAndValue().getActivity() + " " + pa2.getNote());
PresenceAttribute pa3 = client2.getUserPresence(buddy_list3[0]);
System.out.println(buddy_list3[0] + ": " + pa3.getTypeAndValue().getActivity() + " " + pa3.getNote());
PresenceAttribute pa4 = client2.getUserPresence(buddy_list4[0]);
System.out.println(buddy_list4[0] + ": " + pa4.getTypeAndValue().getActivity() + " " + pa4.getNote()); -
Not Able To View Data in Web Service Model
Hi ,
I m trying to view a table using web service model.
When i write the same code for binding it to context , i m able to view its data.
But not so while using Web Service Model(not adaptive web service model).
The code is:
Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT object1 =new Request_ZMANAGE_MAKT_ZMANAGE_ZMAKT();
wdContext.nodeRequest_ZMANAGE_MAKT_ZMANAGE_ZMAKT().bind(object1);
object1.setResponse(new Response_ZMANAGE_MAKT_ZMANAGE_ZMAKT());
CAn anybody plz solve my problem.
Thanks..
Regards,
AnkitaHi,
I have no problem with item :P15_EV_LCL this is having a value my probem here is i am using java script to display the value in different color based on the condtion case
eg:
select
case
TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2)
= :P15_EV_LCL
then
span style="background-color:lightgreen"
|| TRUNC((
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
else
span style="background-color:yellow"
|| TRUNC(
( (NVL(Z."AEWP",0) - NVL(Z."BEWP_Final",0) ) / DECODE(Z."BEWP_Final",0,NULL,Z."BEWP_Final") ) * 100
),2) || '%' || /span
end "Effort"
from actuals Z
If i dont use this <Span style="Background-color:color"> i am able to generate data in excel sheet if i use this color coding i am not able to get data in spread sheet.
Please suggest
Thanks
Sudhir
Edited by: Sudhir_N on Mar 23, 2009 10:00 PM -
How to Retrieve Data From Web Service with Optional Arguments
This should be a simple one. I have a web service that
returns a list of books. There are 3 optional arguments that can be
passed to this (ex. book type, author, id) to filter this list. Do
I still need to use the <mx:request> tags if I am not going
to pass any parameters to the web service?
When I look at the services browser in Flex, it says "unable
to get meta data for CFC". However, if I remove the arguments from
the CFC and then call the service again, all my data now appears.
What's the best way to appoach this?
Thanks in advanceI have a similar application. What I have done is create one
argument in my CFC, with a type of "struct". Then, in the Flex
Application, I create an Object (Associative Array), and pass this
to the CFC as that one argument.
Here is the ActionScript:
// Create the variable to be passed to the WebService
[Bindable]
private var object:Object = new Object();
Then in another function, you create the Object, based on
specified values - perhaps from ComboBox selections:
object.bookType = comboBox1.selectedItem["bookType"];
object.author = comboBox2.selectedItem["author"];
object.id = comboBox3.selectedItem["id"];
Then you pass that one argument in your <mx:request>:
<mx:WebService id="getBooks" wsdl"
http://server.com/service.wsdl"
showBusyCursor="true"
fault="alert(event.fault.faultstring)">
<mx:operation name="sBooks">
<mx:request>
<args>{object}</args>
</mx:request>
</mx:operation>
</mx:WebService>
Your CFC might look like this:
<cfcomponent>
<cffunction method="sBooks">
<cfargument name="args" type="struct">
</cffunction>
</cfcomponent>
Then you can worry about validating the values passed to the
CFC in the CFC function. That way, you could send an empty struct
if you wanted, and the CFC would not throw an exception.
Hope that helps. -
I have read many posts and alot of documentation and would
just like to confirm that it is NOT possible to pass what you could
consider "complex" data to a web service. Data that is in an array,
ArrayCollection, or even a actionscript class, that I need to pass
to a .net web service (c# or vb.net) does not come out on the other
side. I have tried making the .net web service parameter an object,
array, arraylist, byte array, xml node, etc -- nothing happens.
Am I wrong? If so, could anyone provide some code (on both
the Flex 2.0 and .net web service side) that shows how to take the
complex data sent from Flex to the web service and actually
properly read the data in the web service. The intent would
obviously to update a SQL Server database.
Currently, my Flex web service calls have many many parameter
tags under the <mx:request> tag - each one corresponding to
the input parameter of the .net web service. My intent is to
simplify the input parameters on both sides.
Again, am I waiting for Flex 3.0 or am I just a little
slow?Thank you for your reply. However, I have no problem getting
data into Flex from .net (web service). It is getting data from
Flex back into .net (web service) that I have an issue with. I can
pass simple strings, numbers, bool, etc but it is when I try to
pass ArrayCollections, actionscript classes , etc from Flex to .net
that I can not seem to get it to work. Any help in this area would
be greatly appreciated.
Steve -
I have an infopath form that is getting the error when opening an existing form or creating a new form:-
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
Hide error details
An error occurred while trying to connect to a Web service.
Correlation ID:7ab6be2c-60e1-4025-be1e-1a2fbe00acd3
So I know its a permission issue because full control users have no problem. I have found a suggestion here suggesting making sure the group has "Who can View Membership to the Group" but that didn't work for me - and
my test user is only a member of one group -
http://sharepoint.stackexchange.com/questions/109488/usergroup-asmx-returns-unauthorized-for-some-groups
How can I get around this without provding users Full Control?So I fixed this with exactly what I mentioned above by adding "everyone" "Who can View Membership to the Group" permission. My error initially was that I was looking at the incorrect security group.
-
BAM data cache web service - single thread?
Hi all,
I have 2 load-balanced BPEL servers trying to push data to the same BAM server via the BPEL-to-BAM web service interface. In the logs, on one of the BPEL servers, I get this following error quite frequently:
<WARN> <default.collaxa.cube.sensor> BAM exception: java.io.IOException message: Authentication Failed for Basic realm="diaaihbamtst01.dia.dnvr" BAM domain: DIAAIHBAMTST01 BAM user: BAM BAM basic auth: DIAAIHBAMTST01/BAM BAM URL: http://DIAAIHBAMTST01.dia.dnvr:80/OracleBAM/Services/DataObject/DataObjectOperations.asmx
I suspect that the BAM web service is busy dealing with data from the other server - which results in it throwing this error/warning. If I stop the other server, I see this message in the log for the machine that was getting the above messages:
BAM endpoint http://DIAAIHBAMTST01.dia.dnvr:80/OracleBAM is back online
- and then I don't get any more errors.
Does anyone know if there's a setting that would allow 2 incoming web service ADC calls to occur simultaneously from 2 separate BPEL servers?
Thanks,
LonWe are using 10.1.3.3 and we did update patch MLR-15 for some other cause with 11i. We are experiencing same issue in our production. Please let us know, if you have any good input. I really appreciate your help.
Rama K -
Where is the wscompile utility for Java Web Services Developer Pack 2.0?
Hi. I am running Ubuntu Linux 7.04. I downloaded and installed tomcat 5.0 for WSDP and then WSDP 2.0. I did so because I am trying to use the wscompile utility to generate the WSDL and JAX-RPC mapping files so that I can create a simple example web service. (It doesn't seem like I should need the tomcat container for this, but the installation was prompting for a web container, so I supplied one).
My problem is that there is no wscompile file anywhere in the installation. I have read some other posts, and it seems as though the utility should be there. I looked inside the /jsdp-shared/bin directory of the installation, but there is nothing there.
I ran locate wscompile and find wscompile*, but nothing shows up. What am I doing wrong?
Thanks so much.Just to clarify, when I said there is nothing in the /jsdp-shared/bin directory, I just meant that the wscompile utility that I am looking for is not there. There are multiple scripts in this directory. I also encountered no problems when I installed WSDP 2.0 via the gui screen.
Thanks. -
How to make link between xcelsius components with sap data using Web servic
Hi all,
I have a doubt regarding connection between Xcelsius components and SAP data.
I created one Web service using Function module and made a connection between xcelsius and that web service using binding URL. It shows imput and output parameters perfectly.
But I cant get any idea as to how to connect Xcelsius components with these parameters.
Can anybody help me out..
please its urgent.
Thanks,
SimadriHave you bound your output parameters to ranges of cells? Select the item, then click the icon to the right of the Insert In: box and select the cells.
Add a spreadsheet component to your chart and bind it to the cells, then preview the model. Do you see the data coming through?
If you do, then you can click File > Snapshot > Export Excel Data. Then close Preview mode, and import data from spreadsheet and select the sheet you just exported. This gives you real data to work with when designing the dashboard.
Hope that helps. -
Data Integrator Web Service Job State
I would like to know if there's any way, through DI's web services to know if a job is running on the job server or not. I am building a .NET application that will allow a user to manually launch a job, but I need to prevent the users from launching the job if it's already running.
I am using Data Integrator 7.2
Thanksyou can check the following post with similar discussions
Re: Extracting JOB_ID for WebClient via webservice
Extracting JOB_ID within the DS Job
Maybe you are looking for
-
I am looking for a calendar template in Photoshop for 2013.
-
Truncated variable names in solver
when many variables are created in the solver , upon entering the numeric mode are not displayed correctly , only 1 character and then three points is read, making it impossible to identify which variable it is , for example if more than one starts w
-
Genius only works on some songs? WHy - there doesn't seem to be any rhyme or reason. Decemberists yes, Lana del Rey no. Ideas?
-
Where is the source for com.sun.media.rtp?
Is the source for com.sun.media.rtp available for download? I downloaded the JMF source code, but, it's not there. I have downloaded the source for J2SE and it's not there. Where is it? Greg Silverman NGC San Jose, CA
-
Zen X-Fi 2----PLEASE HELP STUCK ON ZEN SCREEN
my player is stuck on the ZEN screen and I cant do anything----any suggestions