Adding paging to Azure Mobile Web Service Query
Hi all,
I need to add paging to my Mobile Web Service, and in referencing this page it has a link stating "For more information, see
Add paging to your queries."
https://msdn.microsoft.com/en-us/library/azure/jj677199.aspx
However, the link takes me to "Windows Store Samples". Does anyone know or have the correct reference for adding paging?
Thanks,
K.
Personal Blog: http://thebitsthatbyte.com
Hello Kelly,
Let me know if this
MSDN blog on paging results from Mobile Services helps.
Abdulwahab Suleiman
Similar Messages
-
Power Query to consume Azure ML Web Service
I've been struggling with creating a Power Query to consume an Azure ML web service and believe it's probably time for help from the community.
The Azure ML web service needs the following:
OData Endpoint Address
API Key
JSON formatted body
JSON formatted response
Chris Webb's post (http://cwebbbi.wordpress.com/2014/04/19/web-services-and-post-requests-in-power-query/) gets most of the way there, but I'm missing something.
My sample Azure ML Web Service API: https://ussouthcentral.services.azureml.net/workspaces/ca45b0a19ee14a95aecde329dcb6c2b9/services/71d0c6db78214e63b63e335e07f1dd7d/score/help
Any thoughts or examples that could be provided would be appreciated.
Anthony Martin | www.pragmaticworks.comHi Curt, and how do I pass input parameters to a ML web service? I need to pass some parameters to an experiment I created and I´m trying to use the code below...
How do I need to change the code below to pass along 6 input parameters? Many thanks, Daniel
let
Source = Json.Document(Web.Contents("https://ussouthcentral.services.azureml.net/odata/workspaces/3a1d1f26c7de4ab2984b017cfed66a07/services/28fecca0a77d484bbe76e2e266ee9100/score",
[Headers=
[#"Authorization"= "Bearer h8EMTuSgrg3nWj6KGLw0qFKhpy1xYPOcdpjnFnOzuVOxQZWcSMP4H1O19JhsN0UwKoT2kcL7sNZsVA70F2I68w==",
#"Content-Type"= "application/json"]]
in
Source -
Can a web service query a database at set intervals?
Can someone verify if this is feasible?
I need to display live data via browsers . I would like to have the query to the database executed server side and have the web service provide the data to the browsers.
Here is what I propose :
I would like to have a web service run on a web server for an intranet.
Have the web service query a database every 20 seconds and update the data into a table or an array variable.
On the browser side I want the browser to refresh every 20 seconds with the updated data from the web service.
Any other recommendations would be greatly appreciated.
Thank you.
Chris W.Hi ChrisTW1,
Thank you for posting in MSDN forum.
Based on your issue, I suggest you can try to use the JS to call the web service to set the intervals. For more information about how to use the JS to call the web service to set the intervals, please see:
http://www.codeproject.com/Tips/647322/Calling-ASP-NET-Webservice-using-JavaScript-on-Reg
In addition, since
this forum is to discuss: Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor. If you have any issues about the set the
intervals for the web service, I suggest you can post this issue directly to the WCF forum:https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf, maybe
you will get more help.
Hope it help you!
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to Specify Metadata When Adding Content Using iTunes U Web Service?
I've been developing Java applications using iTunes U Web service and uploaded content to iTunes U site using iTunes U Web service without problem. Now I want to add metadata fields (name, artist name, album name, etc.) for the tracks I uploaded. It seems to me that "AddTrack" will do. So I tested it but it neither adds a track under the specified group nor updates metadata fields for an existing track. It turned out "MergeTrack" actually updates metadata fields for an existing track. So is there any way to specify metadata at the time of adding content using iTunes U Web service? And what exactly does AddTrack do? This is all about contents hosted by iTunes U site and no RSS is involved.
I'm referring to the "AddTrack" method in iTunes U Web service:
http://deimos.apple.com/rsrc/doc/iTunesUAdministrationGuide/iTunesUWebServices/c hapter18_section_21.html#//appleref/doc/uid/AdminGuide-CH13-SW26Thanks for all the replies. My question is whether there is any way to specify metadata WHEN adding content using iTunes U Web service. Specifying metadata AFTER adding content can be achieved by MergeTrack (weird naming) and it does work.
As for setting track level meta-data in the media file and then upload it, there're several reasons against that, among which are:
1. Some track metadata are context-dependent. A video about buildings on Michigan Ave in Chicago can be track #2 in a history course and described as "historic view of the Magnificent Mile", but the same media can also be track #5 in a landscape design course and described as something like "contemporary architecture". Setting these metadata in the media file itself is not the preferred way to do it since it implies maintaining a version of the same media for any course/group it gets uploaded to.
2. Setting metadata in a location separate from the media file helps track the metadata change and search for media without digging into the media itself.
3. If MergeTrack "updates" metadata, there got to be some other method that "creates" metadata - that's what a well-designed API should look like. And setting metadata in the media file is not an equivalent to a "create metadata" method call. In rickwolf's term, that implicit AddTrack should actually be made explicit so the party uploading content can explicitly specify metadata instead of having iTunes U extract metadata from the media.
It is still not clear what "AddTrack" does exactly, maybe rickwolf is right - it's only relevant to tracks created through RSS.
So it seems to me there is no other way to specify metadata WHEN adding content using iTunes U Web service than setting metadata in the media file. To me it is more like a design flaw.
Message was edited by: Stone Xiang
Message was edited by: Stone Xiang
Message was edited by: Stone Xiang -
Mobile web service fails today
Hi.
I can not send an SMS using the mobile web service today. I am getting an "OTN Authentication Failure". It was working yesterday. What is happening?
Regards,
LuisYou may be running into a limitation on the service - you are only allowed to send 10 messages per month. That is correct: 10. The reason it is so limited is we have had abuses of the service where people have been programmatically sending messages using the service. If you desparately need it for demo, one way is to have another account (perhaps a colleague) available.
Mike. -
OTN Mobile Web Service and Cingular Wireless
Has anybody gotten the SMS message service to work with Cingular Wireless? It doesn't seem to work for me. Cingular's format is "[email protected]" and messages are received fine if I email to this address. Doesn't the OTN Web Service need to be updated on the server side, Oracle?
OTN Mobile web service is down due to some security concerns. It will be brought back later sometimes.
check this posting
OTN Mobile Web Services - Live Web Services on OTN
Chandar -
Siebel CRM Web services query limit 100 rows
Hi everyone,
A have an little problem here.
I need get accounts, contacts and oportunitys from Siebel CRM in clound using SIEBEL web service query methods BUT this web service allow me only 100 rows per query and I need more because at this moment I am using ODI interfaces for load XML response file into database tables and ODI don´t have an loop and so on...
My question is:
Is possible eliminate this limitation in administrative painel or something like?
Thanks in advice..
José Rodrigo
Edited by: user7286844 on 27/09/2011 14:07What version of Siebel are you using? There was a bug in some versions when session management was used but it worked okay in other scenarios, e.g., when the user id and password were passed in the URL. This bug (id 12-1KXYCJ7 and 12-1KXYCJ7) has been fixed (more than once by the look of it). I have not noticed the same in 8.1.1.1.
-
Is the mobile web service (9iasmobile) down?
It was working in the early morning when I tested the mobile web servic. And then around 11 am it failed
with "Authentication Failure":
Version = 9.0.2.2.0
OTN Authentication Failure
Could this be that I was not allowed to use the mobile
web service anymore? I only tested somewhere like 8 or 9
times.The limit is 10 times a month due to folks abusing it. Unfortunatlely, 99.9% of people don't. But to isolate out the people that do a limit has been put on it. The trick around getting another 10, as ugly as it seems, is simply to create another valid OTN account to get your 10 per month.
Mike. -
SOAP web service: query parameter?
Hi guys,
I'm a newbie when it comes to web services and I've hit a problem that I didn't expect. I've exposed several SOAP services using the JAX-WS and WebLogic which are working fine. I've tried implementing an access key security mechanism such as Amazon does by adding a filter in front of the service's handling servlet to check for an access key sent as an HTTP query parameter. So basically, the service that was exposed at the following URL:
http://localhost/company/service
must now be accessed using the following URL:
http://localhost/company/service?accessKey=123
The filter checks the accessKey parameter and short-circuits the request if the wrong access key is sent.
While this approach works well with JAX-RS web services, it doesn't seem to be working as well with JAX-WS web services: adding the parameter makes WebLogic return a 404 error instead of processing the request. I'm convinced I've seen web services being called with query parameters and that this can be done, but I don't see how. Any ideas anyone?
Cheers!It seems that the servlet generated by Workshop doesn't handle extra parameters too well. I've managed to get it working by tweaking the filter so that it lets WSDL retrieval requests pass through but still filters the other requests. Everything is working fine.
-
Mobile: Web Service data control doesn't refresh data when revisiting page
Hi all,
I have an ADF Mobile AMX page which shows data returned by a Web Service. The page is pretty simple and contains a listView which iteraters over my WS Data Control's binding, as well as some GUI components to make it possible to use amx:listView while still having a lot of data visible for each listview item.
Here's what it looks like:
<?xml version="1.0" encoding="UTF-8" ?>
<amx:view xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amx="http://xmlns.oracle.com/adf/mf/amx"
xmlns:dvtm="http://xmlns.oracle.com/adf/mf/amx/dvt">
<amx:panelPage id="pp1">
<amx:facet name="header">
<amx:outputText value="Overview of requests" id="ot1"/>
</amx:facet>
<amx:listView var="row" value="#{bindings.travelRequest2.collectionModel}"
fetchSize="#{bindings.travelRequest2.rangeSize}" id="lv1">
<amx:listItem id="li1" action="toDetails">
<amx:tableLayout width="100%" id="tl1">
<amx:rowLayout id="rl1">
<amx:cellFormat width="40px" halign="center" rowSpan="2" id="cf1">
<amx:image source="../images/plane_icon.png" shortDesc="TODO" id="i1"
inlineStyle="height:5%; width:40%;"/>
</amx:cellFormat>
<amx:cellFormat width="100%" height="28px" id="cf2">
<amx:panelGroupLayout id="pgl1" layout="horizontal">
<amx:outputText value="#{row.tripStartDate}" id="ot2">
<amx:convertDateTime type="date"/>
</amx:outputText>
<amx:outputText value=": #{row.origin} -> #{row.destination}" id="ot8"/>
</amx:panelGroupLayout>
</amx:cellFormat>
</amx:rowLayout>
<amx:rowLayout id="rl2">
<amx:cellFormat width="100%" height="12px" id="cf3">
<amx:outputText value="Status: #{row.status} | ID: #{row.travelRequestID}"
styleClass="adfmf-listItem-captionText" id="ot3"/>
</amx:cellFormat>
</amx:rowLayout>
</amx:tableLayout>
<amx:setPropertyListener type="action" to="#{pageFlowScope.row}" from="#{row}"/>
</amx:listItem>
</amx:listView>
</amx:panelPage>
</amx:view>The page is its own ADF Mobile feature, and it works fine. However, I want it to refresh the data from the WS each time I go to this feature, and that's not happening.
I've adapted the bindings in every way I could of, disabling caching and settings 'refresh' to 'always' wherever it's possible (i.e. on each of the executables, and on the top binding (which is the name of the WS operation I'm calling).
What am I doing wrong? I feel like I'm overlooking something simple here...
Thanks a lot.Thanks for your quick help Shay.
I've added an invokeAction executable called "refreshData" to my list of executables, and made sure it was binded to my WS operation. I moved it to the top of the list of executables, performed a 'clean all' and redeployed.
Unfortunately, it's still not refreshing. Will try to add a button and bind it to refreshData, see what that gives. -
Azure System.Web.Services.Protocols.SoapException
I use a web service on a server and it works OK. Now I want to transfer my site to an Azure server. For now I created a free web site on azure to test it.
It is a Silverlight application that calls a service to create a report.
When I call this service I have the following error
error:
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.GetHdc()
at C1.Util.FontSubSet.#e.#cA.#Kn(FontSubSet owner, String tableName)
at C1.Util.FontSubSet.GetFontTableStream(String name)
at C1.Util.FontSubSet.#TDd()
at C1.Util.FontSubSet.Init()
at C1.Util.FontSubSet.GetFontSubSet(FontKey fk)
at C1.C1Preview.C1PrintDocument.#ydd(String s, String fontName, Boolean fontBold, Boolean fontItalic, Boolean updateDocumentFonts)
at C1.C1Preview.C1PrintDocument.#zdd(String s, String fontName, Byte fontCharSet, FontStyle fontStyle)
at C1.C1Preview.RenderText.InternalResolvingFinished()
at C1.C1Preview.RenderObject.ResolvingFinished()
at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, Double x, Double y, Double width, Double height)
at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, RectangleD bounds)
at C1.C1Report.Field.#RLd(ExportFilter export, Layout layout, RectangleD bounds, String str, Boolean rtf, Double lineWidthTw, Int32 firstCharIndex, Int32 length)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y, Boolean measure)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y)
at C1.C1Report.Section.Render(Boolean keepPage, Group ownerGroup)
at C1.C1Report.Layout.#fMd(Section s)
at C1.C1Report.Layout.StartDoc()
at C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument)
at C1.C1Report.C1Report.#fNd()
at C1.C1Report.C1Report.#dNd(ExportFilter filter, Boolean reuse)
at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt, String idPrefix, String fileName)
at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt)
at Gestion1.Web.RapportS.GetReportCommunique()
--- End of inner exception stack trace ---</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> `Based on the provided stack trace it looks like you are attempting to run report tools from ComponentOne on the server.
The issue is caused by access to APIs that are restricted from use by Azure Web Site instances for security and performance reasons. The native GDI rendering methods are among these restricted APIs.
See the post from Jim Cheshire towards the end of this
post.
Until and unless these restrictions are relaxed (which they may not be) your options are to move the service to a Cloud Service instance, or move to another component that does not use native GDI methods to render. -
JDeveloper - ADF Mobile - Web Services Data Control
Hello,
I'm new to ADF mobile (newer than ADF mobile itself :) I watched Shay's excellent you tube videos which makes it look really easy to create a mobile projects. I was successfully able to create a simple project and deploy it on my iphone and ipad. The next step is to get data from a web service. I am trying to create web service data control from this wsdl: http://msrmaps.com/TerraService2.asmx?wsdl.
However I keep getting an unusual error with a dialog of heading: "Invalid WSDL URL" and the dialog says: "oracle/adfinternal/model/adapter/webservice/utils/WSUtils$DefaultAuthPrompter" with an OK button. I tried quite a few things and other applications like Flex Builder and Soap UI and was able to successfully use this wsdl: http://msrmaps.com/TerraService2.asmx?wsdl.
A few things about my environment:
I am working on mac OS X 10.8.2
I have JDeveloper Studio Edition Version 11.1.2.3.0 (Build JDEVADF_11.1.2.3.0_GENERIC_120914.0223.6276.1)
Java version installed: 1.6.0_37
I'm at a loss here and not sure what am I missing? I tried googling "DefaultAuthPrompter" and nothing shows up.
Any help is much appreciated.
thanks,
RahulHi Arun,
I'm not behind a firewall and access the wsdl directly. I can also use other applications to generate proxy classes from this wsdl url.
I am starting to wonder if there is missing library on my mac installation of Jdeveloper?
Rahul -
Specifying multiple books in WS2 web services query
Hi,
I am wondering if anybody has managed to use web services to query data and restrain by more than 1 book of business. According Oracle Support this can be done though the use of searchspec to determine the Book. I have tried this with no success
Here is a SOAP message with just a single Book reference. It returns no results?
<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
<ContactQueryPage_Input xmlns="urn:crmondemand/ws/ecbs/contact/">
<ListOfContact xmlns="urn:/crmondemand/xml/Contact/Query">
<Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58')"><Id />
</Contact>
</ListOfContact>
</ContactQueryPage_Input></soap:Body></soap:Envelope>
For multiple books the searchspec would be
<Contact searchspec="([ContactFirstName] = 'John') AND ([BookId] = 'AHIA-N3S58') AND ([BookId] = 'AHIA-N3S76')"><Id />
Any guidance is appreciated.
Edited by: user10730659 on 11-Nov-2012 20:59Hi Christina,
Thanks for your response. I had a typo in my initial description the searspec should have read:
<Contact searchspec="([ContactFirstName] = 'John') AND (([BookId] = 'AHIA-N3S58') OR ([BookId] = 'AHIA-N3S76'))"><Id />
Have you been able to specify the BookId in the searchspec successfully?
I dont get an error thrown just no results returned - when I just specfiy 1 book. I normally set the book Id in the query but when using multiple books this won't work, hence why I am looking to use the searchspec... -
I have a process that is going through each account record and doing some processing on it.
This is a time consuming process. It takes close to 20 minutes to complete.
I would like to provide a better status message to my customer to let them know how much longer the process should take.
My question is:
Can I retrieve the count of the number of records that would be returned based on the query criteria I am using?
I would use this to provide a status message like
"Processing account 50 of 120,000"Hi All,
Recently we also had the same requirement, count the number of records and we achieved it by reports.
1. create a report which generates the simply total count of records.
2. on your custom page / application access that report and get the count.
Dinesh
CRMIT -
ADF to BPEL - Adding additional field for the web service call
I have an existing ADF project that invokes a BPEL process. Recently I added 2 new fields to the bpel process and I want to populate this additional fields from the ADF when calling the bpel process.
What is the best way to do this ? I dont see a way to regenerate the data control. Am I missing something ?correct, i am using the WS data control
I manually added the 2 new fields in the ProjectName.xml and pagenamepagedef.xml files and also he necessary code in the bean class . But when i run it i still dont see the vallues passed to the bpel process.
Maybe you are looking for
-
Laptop Bios cannot detect new HDD but still able to boot into windows
I have a Pavilion Dv5 1010tu which the original HDD have died. So i bought a new Samsung 320GB Sata and install Windows 7 on it. After Windows installation finished successful, I manually restart the laptop without Windows setup disk and it stop at d
-
Hi guys, i get an error in the file adapter my source XML: <item> <time_str>58768000000701000000990000009316</time_str> <time_str>7876800000070110050208300000</time_str> <time_str>7876800000070110050300004143</time_str> <time_str>787680000007
-
Dashboard throws null pointer exception on migration...
Hey Experts, Our client created a copy of BW-Prod(MS SQL) as BW-Testing(over HANA). We had a dashboard which was using SAP Netweaver Connections to BW-Prod system. When we tried to run the same dashboard just changing the server url to BW-Testing in
-
Positioning the Calendar Window under a button
Hello, I wanna show that calendar under the button i've pressed. something like here (so like LOVS, they are opened under the button pressed) i tried with this code, in KEY-LISTVAL trigger for that text item declare pozx number:=get_item_propert
-
My Iphone5 is going back for repairs, Can I put my Iphone5 Sim into my old Iphone 4?
As the title says Thank you