Retrieve data from a web service.
Hi,
I need to retrieve the data from Oracle CRM On Demand therefore I downloaded the web service "CustomObject15" from Oracle CRM On Demand then used the netbeans Tool to generate XML files then call Web Service "CustomObject15" then I created small java code to retrieve the data through a web service but the data did not retrieved.
Only retrieved "CustomObject15Data.CustomObject15Data@1be0799a"
Kindly, Can you help me and provide me small java code to the data through a web service "CustomObject15".
Best Regards.
Hi,
just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
Frank
Similar Messages
-
How to retrieve data from a web service
Hi
i am at very beginner level about web services.
I am searching for a simple example of retrieving data from a web services, but cant find.
How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
Can somebody point out or give an example?
Thanks in advanceHi,
just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
Frank -
Error retrieving data from the web server in Excel fo BPC
Hello Everybody,
I'm working with BPC v7.5 , i created some reports with the EVDRE formula and they were working perfectly.
The problem started when i created new users, that in fact have the same access profile and task profile as my user.
i started to test these new users in excel and every time i expand the report this legend appears: " EVDRE Retrying... EVDRE encountered an error retrieving data from the Web Server. Retrying in (X) Seconds...". After waiting a while a push cancel, then appears a window with the legend: Ev4excel Addin, Errors found retriening data.
The funny thing is that when i login back to my user everything works fine again, any idea what could be the problem? the other user have the same permissions.
Thanks a lot in advance!!
Nidia Olguívery strange. Normally the member access profile must be diifferent. So it is not important the task profile but the member access profile. Can you please double check ?
If you are doing a simple EVDRE with users having problems is it working or you still have problems?
Regards
Sorin Radulescu -
EVDRE encountered an error retrieving data from the Web Server
Hi,
I'm working on a presales AppSet "Demo5b".
When I create a brand-new EVDRE report on FINANCE app, there is no problem.
However, after changing to ICMATCHING app, when I type =EVDRE() on a blank sheet and press Refresh, the following message pops up.
EVDRE encountered an error retrieving data from the Web Server
Retrying in (??) seconds
Any idea why this happens and how it can be solved?
Thanks!
SunnyHi Joost,
I have the same problem. When I try to retrieve data on an input schedule is launched that error.
I am working on an VM on MS BPC.
I am not working with cubes so the solution is not the same.
If i process all my dimensions this error does not appear any more?
Best regards,
Vitor -
Get xml data from a web service into Forms?
Hello folks! I am reading active directory info from a web service into forms via imported java classes. I can read from functions that return strings just fine, but I have to get the output from getGroupUsers which returns an XmlDataDocument. How do I read this in and parse it in Forms?
I will be grateful if y'all could point me to an example.
Thank you,
Gary
P.S. Here is a snippet of how I get the full name by passing an ID:
DECLARE
jo ora_java.jobject;
rv varchar2(100);
BEGIN
jo := ADSoapClient.new;
rv := ADSoapClient.getUserName(jo, 'user_ID');
:block3.fullname := rv;Hello,
Since you are already dealing with server-side JAVA, I would suggest you create a method that would do the parsing server-side and what your PL/SQL will be dealing with is just the return string.
Here is a method I use to read an XML file (actually, it is an Oracle Reports file converted to XML) and from the string version, I will do search, replace and other things.
So, from getGroupUsers which returns an XmlDataDocument, you can adapt this method to get your data server-side and let the form module read the output data.
<blockquote>
private String processFileXml(String fileName, int iFile) throws ParserConfigurationException, SAXException,
IOException, XPathExpressionException{
try{
DocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();
domFactory.setNamespaceAware(true);
InputStream inputStream = new FileInputStream(new File(fileName));
DocumentBuilder builder = domFactory.newDocumentBuilder();
Document doc = builder.parse(inputStream);
StringWriter stw = new StringWriter();
Transformer serializer = TransformerFactory.newInstance().newTransformer();
serializer.transform(new DOMSource(doc), new StreamResult(stw));
return stw.toString();
catch (Exception e){
System.err.println(e);
System.exit(0);
return "OK";
</blockquote>
Let me know if this is of nay help.
Thanks. -
How to create XML data source/ and load data from a web service to BI
All,
I m trying to find a 'how to' document (or any document) that shows how to create an XML data source to load data directly from a web service or from an XML file.
I appreciate any help.Hi Mike,
Two more for you:----
/thread/111488 [original link is broken]
http://help.sap.com/saphelp_nw70/helpdata/en/e6/1dd53bb90cbb1ae10000000a11402f/content.htm
Regards,
Suman -
Loading data from a web service to BW
Hi
I have a web service from a company we work with,
It looks like http://xxxx.info/CustomerMissions.asmx
I want to take the data that the web service returns and upload it into SAP BW.
We are in BW 70105.
I've read about the soamanager transaction and I want to know if that's the way to go.
I've managed to run the transaction and started configuring it, but I couldn't find a good guide.
Any suggestions?
ShlomiHi Sholmi,
Have a look at this link.
[http://www.****************/Tutorials/BI/WebService/Index.htm]
Thanks,
Vishall. -
kindly suggest me the php parsing script so that i can fetch the data from a web page.....
suppose we have a url.........
http://abc.com/news/companydetails.aspx?sskicode=x&Exchange=y
and the page contains the various fields.........like
xyz 10
xyz1 20
xyz2 30 etc...
then we have to retrive data from this page trough php script and insert it into database.....
value of xyz , xyz1 n xyz2 should be retrived and further inserted into database.......
thanx ......Should be nice..
But its not working i think.. -
Converting string data from a web service respons into XML structure of XI
Hi,
We receive a string structure from a web service.
The string structure has an xml type format, that is all the tags and its content are in one line .
The WSDL file of the webservice defines its response structure as a string type.
How do i convert this string into proper XML structure (predefined by me in Integration repository).
OR how do i make XI understand this string as an XML structure for further processing.
Later i have to map this XML message type into IDoc.
HimaniHi Himani,
Please find the code for ur requirement -
String need to parse -<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>
Below mentioned code will convert it to -<MT_DATA><FROMDATE>20080202</FROMDATE><TODATE>20080101</TODATE></MT_DATA>
Create a Message type and map it like this using java mapping ( no need to use Graphical mapping).
Use MT_DATA as source and map it to your target structure .
import java.io.FileInputStream;
import java.io.IOException;
import java.io.StringReader;
import java.util.HashMap;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.transform.TransformerFactoryConfigurationError;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class XMLParser {
private Map param = null;
public static void main(String[] args) {
try {
XMLParser wdb = new XMLParser();
wdb.parse();
} catch (Exception e) {
e.printStackTrace();
public void setParameter(Map param) {
this.param = param;
if (param == null) {
this.param = new HashMap();
public void parse() {
String document = "<response_webservice><from_date>20080101</from_date><to_date>20080202</to_date></response_webservice>";
try {
Document sdoc;
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
// Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
// parse using builder to get DOM representation of the XML file
sdoc = db.parse(new InputSource(new StringReader(document)));
Element docEle = sdoc.getDocumentElement();
NodeList nl = docEle.getElementsByTagName("from_date");
Element lstElmnt = (Element) nl.item(0);
NodeList nl1 = docEle.getElementsByTagName("to_date");
Element fstElmnt = (Element) nl1.item(0);
System.out.println(fstElmnt.getFirstChild().getNodeValue());
System.out.println(lstElmnt.getFirstChild().getNodeValue());
Document tdoc = db.newDocument();
Element structure = createElement("MT_DATA", null, tdoc);
tdoc.appendChild(structure);
Element statement = createElement("FROMDATE", fstElmnt.getFirstChild().getNodeValue(), tdoc);
structure.appendChild(statement);
Element statement2 = createElement("TODATE", lstElmnt.getFirstChild().getNodeValue(), tdoc);
structure.appendChild(statement2);
System.out.println("Struct is :::"+tdoc.getDocumentElement().toString());
} catch (DOMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (FactoryConfigurationError e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (TransformerFactoryConfigurationError e) {
// TODO Auto-generated catch block
e.printStackTrace();
static Element createElement(String elementName, String content,
Document document) {
Element returnElement;
returnElement = document.createElement(elementName);
if (content != null) {
Text T = document.createTextNode(content);
returnElement.appendChild(T);
return returnElement;
static Element createElement(String elementName, String content,
String attributeName, String attributeValue, Document document) {
Element returnElement = createElement(elementName, content, document);
returnElement.setAttribute(attributeName, attributeValue);
return returnElement;
Regards,
Kishore -
How to add "Prepare Data" from a web service to the form
Hello,
Can any one please advise on how to add the "Prepare Data" process from the existing web service and have the form to pre-populate the data from this "Prepare Data" process instead of using schema xsd. I heard that this is an alternative or may be a better way to pre-populate data in ES2/ES3 to avoiding creating a data source in Form Designer. I try to find a sample on Adobe site but could not find one, most of them are using schema.
Any guidance or URL to the sample would be helpful.
Thanks,
HDThanks
-
XML data from a Web Service sometimes missing fields I need, any ideas on a trap?
I get reports from our ERP via a web service to SSRS. Just got asked to make a tweak in a report and find that the WebService only sends data that is needed for this transaction. My issue is our entire system is based around EACH item we make.
New Trading Partner got Case Price. We put two of our items together in a box for them is all that happened.
Need to identify package column that had "ea" hard coded.
When I get a cs item there are more elements that identify conversion factor UOM etc. They are only sent down for CASE items. How do I trap for a column not being there 99.98555% of the time?
_conv = conversion factor. I only receive it with a 2,4,6 in it whe4n the item is not an each.
=iif(Len(Fields!tcibd003_conv.Value) >0 , Fields!inh4470_qshp.Value / Fields!tcibd003_conv.Value , Fields!inh4470_qshp.Value )
How do I trap for this? I tried Fields!tcibd003_conv.IsMissing but that didn't seem to work as expected.
TIAHello,
Sorry, I cannot get your requirment and report design structure currently. Can you post the following information to us ? It is benefite us for further analysis.
1. The fields in your dataset. You can post the dataset with sample data if it is convenient.
2. The Report design structure: Table or Matrix and Group inforamation
3. It seems that you want to filter the report data based on a expression, please post more details about the filter logic and expected result.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
How to update data from a web service
Hi all,
I have a webservice that returns some data as e4x type. I
pull the data i need and put it into an object. I manipulate that
data, then I want to write it back with another webservice. I get
serialization errors when I call the update method. I must be doing
something wrong here. Can anyone help?
Webservice Methods:
<mx:operation name="FetchfrmContact" resultFormat="e4x"
result = "fetchfrmContactResultHandler()">
<mx:request/>
</mx:operation>
<mx:operation name="updatefrmContactCampaigns"
resultFormat="e4x"
result="updatefrmContactCampaignsResultHandler()">
<mx:request/>
</mx:operation>
Below is what .lastResult looks like from the fetch method of
the webservice. I update the different campaign fields by adding or
removing them in an object called contactData.
<FetchfrmContactResponse xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns="urn:DefaultNamespace" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<FetchfrmContactReturn>
<campaignsOptedOut>
"BP - 411"
</campaignsOptedOut>
<campaignsOptedOut>
"200700 - Avnet Leads"
</campaignsOptedOut>
<campaignsOptedOut>
"200700 - BP-AdHoc"
</campaignsOptedOut>
<campaignsReceived>
"BP - 411"
</campaignsReceived>
<campaignsSubscribed>
"200700 - Avnet Leads"
</campaignsSubscribed>
<campaignsSubscribed>
"200700 - BP-AdHoc"
</campaignsSubscribed>
<campaignsSubscribed>
"200700 - BP - BCS"
</campaignsSubscribed>
<campaignsSubscribed>
"200700 - BP - Extracomm"
</campaignsSubscribed>
<campaignsSubscribed>
"200700 - BP - IBM"
</campaignsSubscribed>
<campaignsSubscribed>
"BP - 411"
</campaignsSubscribed>
<companyDocID>
"CMDPDN-65HTAK"
</companyDocID>
<companyName>
"Provena Hospitals"
</companyName>
<contactDocID>
"CTGSCG-6AHLWW"
</contactDocID>
<contactEmail>
"[email protected]"
</contactEmail>
<contactFirst>
"Steve"
</contactFirst>
<contactLast>
"Rieger"
</contactLast>
<docID xsi:nil="true"/>
<fetchBy>
"email"
</fetchBy>
<form xsi:nil="true"/>
<locationDocID/>
</FetchfrmContactReturn>
</FetchfrmContactResponse>
The fetch method returns an object of type FrmContactType and
the update method takes an object of type FrmContactType as it's
parameter
package com.psc.components
import mx.collections.ArrayCollection;
import mx.collections.XMLListCollection;
[Bindable]
public class FrmContactType
// field variables
public var contactDocID : String;
public var companyDocID : String;
public var locationDocID : String;
public var campaignsOptedOut : XMLListCollection; //
SFProfileField_70
public var campaignsReceived : XMLListCollection; //
SFProfileField_68
public var campaignsSubscribed : XMLListCollection; //
SFProfileField_69
public var contactEmail : String = "";
public var fetchBy : String;
public var docID : String;
public var form : String;
public var contactFirst : String = "";
public var contactLast : String = "";
public var companyName : String = "";
Here is the result handler of the fetch method
private function fetchfrmContactResultHandler() : void
contactData.contactFirst =
wsfrmContactLookup.FetchfrmContact.lastResult..contactFirst;
contactData.contactLast =
wsfrmContactLookup.FetchfrmContact.lastResult..contactLast;
contactData.companyName =
wsfrmContactLookup.FetchfrmContact.lastResult..companyName;
contactData.contactDocID =
wsfrmContactLookup.FetchfrmContact.lastResult..contactDocID;
if( wsfrmContactLookup.FetchfrmContact.lastResult )
contactData.campaignsReceived = new XMLListCollection(
wsfrmContactLookup.FetchfrmContact.lastResult..campaignsReceived );
contactData.campaignsSubscribed = new XMLListCollection(
wsfrmContactLookup.FetchfrmContact.lastResult..campaignsSubscribed
contactData.campaignsOptedOut = new XMLListCollection(
wsfrmContactLookup.FetchfrmContact.lastResult..campaignsOptedOut );
if( contactData.campaignsSubscribed.length > 0 )
for( var index : int = 0; index <
checkBoxSubscribed.length; index++ )
checkBoxSubscribed[index].selected = true;
if( contactData.campaignsOptedOut.length > 0 )
for( index = 0; index < checkBoxOptedOut.length; index++
checkBoxOptedOut[index].selected = true;
In my code I update the contactData object, then call the
update method passing contactData as it's parameter and it barks at
me. Any ideas why I'd be getting the error message shown below?
<soapenv:Fault xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance">
<faultcode>
"soapenv:Server.generalException"
</faultcode>
<faultstring>
"org.xml.sax.SAXException: SimpleDeserializer encountered a
child element, which is NOT expected, in something it was trying to
deserialize."
</faultstring>
<detail/>
</soapenv:Fault>Hi,
just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
Frank -
Showing data from a web service in a DataGrid
My web service returns a complex XML document (ie. not a
"flat" one). I'm able to consume the web service and create an
XMLList and XMLListCollection based on the return value. If I make
parts of the XML simple ("flat") I'm also able to bind values into
a DataGrid row. However, I haven't succeeded in trying to display
XML attribute values in this same DataGrid or values from elements
in other XML branches of the XML.
So, I have an XML structure
<root>
<element1>
<se1>A</se1>
<se2>B</se2>
</element1>
<element2>
<se3 value="1"/>
<se4 id="2">C</se4>
</element2>
</root>
I can easily display (A,B) in a DataGrid, but how about (A,
B, 1, 2, C) in a single row?
I can find a bit similar examples in the internet, but for
some reason I can't make it work. I'm using web services from
ActionScript with a handler, I imported WSDL into the project, I
don't have any MXML WebService components (would they make a
difference?), I haven't specified E4X anywhere (should I ?). I can
display single attribute values in a normal text field.
Could someone please tell me the trick or point some
directions to look at. Thanks.Hi Sholmi,
Have a look at this link.
[http://www.****************/Tutorials/BI/WebService/Index.htm]
Thanks,
Vishall. -
Stacked Bar Chart with data from a Web Service
Hi,
I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
With a Year in input, my webservice gives an Amount per Cities and Products
Data retrieved look like this (Sheet1) :
Paris Tablets 45
Paris Laptops 12
Paris Cellulars 89
New-York Tablets 56
New-York Laptops 36
New-York Cellulars 1
Londres Tablets 150
Londres Laptops 3
Londres Cellulars 45
Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
Tablets Laptops Cellulars
Paris 45 12 89
New-York 56 36 1
Londres 150 3 45
The chart is a Stacked Bar Chart plugged on the previous Pivot Table
I create 3 series (one per Product), values (X) are set with Amount
Category labels (Y) are set with Cities
The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
Thx a lot !
Nicolas
Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PMhi
First thing , bad news if you are using .Net framework 1,
just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
good news, if you want to use webservices, you'll have to make an
array of objects on .Net Side and send it as objects to flex, i saw
an example on the net but i can't seem to remember where, on the
other hand,if you want to simply use, like i do, HTTPSERVICE its a
very nice way to talk with .Net and you can see my example here
http://flex1-for-dummies.blogspot.com
By the way, in your code, you have a request tag , but you
aren't requesting anything, because if you were you would have to
make like this
<mx:request>
<Artist>{yourinputtext.text}</Artist>
</mx:request>
So if you don't have an input text, you don't need a request
tag, only the operation. -
SP 2013 Designer Workflow problems retrieving data from Web Service
Hi all,
I am creating a SharePoint 2013 Designer Workflow, and I am having trouble retrieving data from a web service. The web service URL is
http://services.odata.org/V2/Northwind/Northwind.svc/Customers and the problem I am having is with the SharePoint Designer Workflow “Call HTTP Web Service” action URL. The URL I am
having problems with is shown below:
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$format=json&$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,PostalCode,Country,Phone,Fax
or
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$select=CustomerID,CompanyName,ContactName,ContactTitle,Address,City,PostalCode,Country,Phone,Fax&$format=json
The SharePoint 2013 Designer workflow works OK if I try to retrieve two items like "CompanyName" and "ContactName", but when I try to retrieve three or more items the workflow doesn’t work it just pauses
with no error message. The URL that works OK is shown below:
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$format=json&$select=CompanyName,ContactName
or
http://services.odata.org/V2/Northwind/Northwind.svc/Customers('[%Current Item:Customer ID%]')?$select=CompanyName,ContactName&$format=json
Does anyone know why I cannot retrieve more than two items from a web server? Am I making a mistake with the URL?
I hope you can
ColinHi Amit,
According to your description, my understanding is that you want to approve workflow task using web service in SharePoint 2013.
For troubleshooting this issue, please provide the more detailed code.
Here are some similar posts, please check if they are useful:
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b999a417-dce3-4590-9173-89aea91f23a3/complete-workflow-after-approving-all-tasks?forum=sharepointdevelopment
http://www.sharepointblog.in/2013/07/programmatically-approvereject-task-in.html
http://aarebrot.net/blog/2011/10/how-sloppiness-and-spworkflowtask-altertask-could-inadvertantly-lock-your-workflow-task/
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support
Maybe you are looking for
-
Hello blackberry! first off, just wanted to tell you how much i support you guys. I've had numerous blackberries throughout the years and i've even got others to support you haha. This latest release of the blackberry z10 is absolutely amazing! i lov
-
I use iTunes Match and purchase most music through iTunes. Whenever I go to my music and look at my music is almost always doesn't contain recently purchase music or playlists I have added. Often for days it doesn't update. Sometimes powering off
-
HUM ADG DYS (NIA, SIM, TRC, TRX) SMALL BRANDS (LUP, KAL,CRN,LPP,SYN) MON TUE WED THURS FRI MON TUE WED THURS FRI MON TUE WED THURS FRI MON TUE WED THURS FRI VENDOR INT QUAN STER LASH OSP HIB PROD I'd like to put together a query to populate the table
-
Converting (,) from a field
In atable I have a field called Address which contains addresses like 1234 c dr, la, 00000 want to remove all the coma(,) with blank please advice me how to do it I'm new for sql BR
-
Sales Productions error!!
Guys did you know on the App Store, Numbers is in the Top Free categories BUT you still have to pay for it.... Apple are not advertising their products to the true value. They should give it to us for FREE if it in the Top Free categories!!