Connect to web service oData feed with Power Query

Hi,
after the last update of Machine Learning Studio, I can't connect to the web service through oData feed.
I imported the OData with "Other Sources" , from OData Feed, with anonymous access.
When I try to use the Score function with parameters, I get this error:
DataSource.Error: OData: Richiesta non riuscita: Errore del server remoto: (406) Non accettabile. (Not Acceptable)
Am I doing something wrong?
Thanks
Giovanni

Hi Ritwik,
I tried to use a python script to test the regular REST endpoint:
import urllib2
import json
data = {
"Inputs": {
"input1":
"ColumnNames": ["IndexSMP", "Des_LineaProdotto", "Des_LineaCommerciale", "Des_Rgt_LineaProdotto", "Des_TipologiaProdotto", "Des_Designer", "des_GruppoPF"],
"Values": [ [ "0", "value", "value", "value", "value", "value", "value" ], [ "0", "value", "value", "value", "value", "value", "value" ], ]
"GlobalParameters": {
body = str.encode(json.dumps(data))
url = 'https://ussouthcentral.services.azureml.net/workspaces/728fb8381e964686b33402d2aed7c7ca/services/3889cc778a564a4fb9b707b07ee0a613/execute?api-version=2.0&details=true'
api_key = 'I put here my API key :)' # Replace this with the API key for the web service
headers = {'Content-Type':'application/json', 'Authorization':('Bearer '+ api_key)}
req = urllib2.Request(url, body, headers)
response = urllib2.urlopen(req)
result = response.read()
print(result)
I got this:
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 401: Unauthorized
Could it help?
Thanks a lot! Bye
Giovanni

Similar Messages

  • Issue consuming Odata feed with Power Query (not in Power BI)

    I am trying to consume an OData feed from an SSRS report using Power Query ( latest release on Excel
     2010 x32). The Report server is in my company intranet.
    In the SSRS report, I can generate an Atom service file. When I use this file in PowerPivot, I can successfully import the report data and refresh it on demand. But I
    would like to do the same thing in Power Query using the "From OData feed" feature.
    1. I have tried supplying the URI to the service file
    = OData.Feed("file:///C:/Users/Bdarbonneau/Documents/temp/Manuf_cycle_time_mapping_table.atomsvc")
    I get this error : 
    DataFormat.Error: The supplied URL must be a valid 'http:' or 'https:' URL.
    2. I tried supplying the URL that the service file contains, but without success. 
    = OData.Feed("http://myssrsserver:8080/ReportServer?%2FMANUFACTURING%2FArchive%2FManuf_cycle_time_mapping_table&rs%3ACommand=Render&rs%3AFormat=ATOM&rc%3AItemPath=Tablix1")
    I get this error:
    DataFormat.Error: OData: The given URL neither points to an OData service or a feed
    Am I missing something, or is what I am trying to do not supported ? 
    Regards,
    Bertrand

    My Current workaround for pulling data from SSRS until the dev team have worked out the odata issue is to pull the report in as a csv file:
    Csv.Document(Web.Contents("http://Servername/ReportServer?/SummaryReport&rs:Command=Render&rs:Format=Csv")),
    I also tried pulling an excel file from SSRS with no success.
    Tried:
    Excel.Workbook(URL)
    Excel.Workbook(Web.Contents(URL))
    Excel.Workbook(File.Contents(URL))
    Excel.Workbook(File.Contents(Web.Contents(URL)))
    if anyone has had luck pulling in an excel file from SSRS i would like to know how.
    Is there a rough release date for the odata functionality?

  • Is it possible to connect to a web Service(JAX-RPC) with a middlet?

    Is it possible to connect to a web Service(JAX-RPC) with a middlet?

    Hi
    Check this article: http://developers.sun.com/sw/building/codesamples/j2me-client/index.html
    Mihai

  • Anyone have trouble connecting to web services with CF10?

    I'm trying to connect to InDesign server running in the same box @ http://localhost:18383/service?wsdl and this gives me the error "Web service operation RunScript with parameters ... cannot be found". I tried toggling web service version in CF admin to 1 and 2. I tried with CF updates, without updates. Tried in a different box, it is the same.
    When I dump my web service object, before invoking the function, it display WSDL structure correctly with all functions in it, including "RunScript". So I guess, create object part worked correctly.
    Uninstalled CF10, Installed CF9 in the same box, it works fine. 
    Has anyone experienced something similar? Is there any limitation in TomCat executing web services in a high port (18383)?
    Update:
    I send the SOAP request to InDesign server manually using CFHTTP and it works in CF10. Seems like CF10 somehow did not respect the WSDL instructions.

    Nataliya,
    Is the printer connected to a wireless network? 
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • HP 7510 says it cannot connect to web services.

    My HP7510, having been able to cannoect to Web Services now says that it cannot, so it cannot update (I don't know if it needs to) and asks me to check that it is connected to the the network and the Internet. It is. I have resorted to a fixed IP address because a automatic one caused problems with different computers. There are other people with this problem in the HP community but the answers they have found do not work in this case and seem barmily random. What is the cause of this problem? How can a machine on a wioreless network on which every other device connect to the Internet have difficulty connecting to the Internet unelss it is broken? 

    The steps below typically resolve the issue you’re experiencing:
    1. Unplug the power cord from the back of the printer.
    2. Unplug the power cord from the back of your router (and modem, if separate from the router).
    3. Wait 20 seconds, then plug the router (and modem, if applicable) back in.
    4. Wait 30 seconds, then plug the printer back in and power it on.
    5. Press the ePrint button on the printer's front panel, and it should try to connect to Web Services again.
    Those steps usually resolve the issue, but if it still occurs you can try setting static network info for the printer (which sometimes helps to stabilize the printer's ability to get outside of your network, to the internet):
    1.  Press the wireless icon at the top of the printer's screen and note the IP address.
    2.  Enter the IP address into the address bar of a web browser on a computer and press enter or click the browser's go button. 
    3.  The printer status page should be opened.  Click on Network at the top.
    4.  Click on Networking on the left.
    5.  Select Proxy Settings.
    Note:  If you are prompted for a redirect, select OK.  If you receive a certificate warning, select the option that lets you continue anyway.
    If you receive a Internal System Error, refresh the page until it loads the proxy settings.
    6.  Verify that all fields are blank.  If they are not, clear them and make sure the Proxy Server requires authentication is unchecked and click apply.  You should get a success message.
    7.  Click on Network Address (IP) on the left.
    Note:  If you only see IP Address Configuration and DNS Address Configuration with a yellow note, refresh the page until it loads completely.
    8.  Leave the IP Address Configuration as Automatic IP.
    9.  Change DNS Address Configuration to Manual DNS server.
    10.  Enter 8.8.8.8 for the Manual Preferred DNS Server and 8.8.4.4 for the Manual Alternate DNS Server.
    11.  Click Apply and you should get a success message.
    12.  Power off the printer for 30 seconds and then turn it back on to force the new settings to take effect.
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Problem connecting to Web Services server

    Hello,
    I've had my printer running perfectly since I installed it 3 days ago but today I am nolonger able to use eprint. I can still scan and print from my home PC and laptop but I am unable to send emails directly to the printer now. This was working fine and I used the feature fairly often without error but today no emails arrived. When I logged on to the eprint web site using my google account {Personal Information Removed} the status of the printer said disconnected. I've tried deleting the printer and re-attaching it (which had no effect) and I've now tried disabling web services on the printer then re-enabling it. When I try this I now receive the following error: Problem connecting to Web Services server.
    The printer model is a HP Photosmart Premium C310a with the lastest software update. The printer is connected to my network via Wifi and is reachable and usable from all my PC's.
    It seems to me that there is something wrong with the software configuration on the printer, the reason I think this is because the screen interface slows down to a crawl after some use and when this happens it is not possible to switch the printer off via the power button. The only solution is to pull the power cable! This is something new and didn't happen before, is there a way to reset to factory default, the option in the menu doesn't seem to reset everything?
    Please advise ASAP.
    Thanks in advance,
    Stuart {Personal Information Removed}

    Greetings,
    The ePrint Service has been having some issues after the upgrade. The server team has found and fixed a bug in the latest release that affected connectivity. If you're having problems, please unregister your product (from the Web Services menu, select "Remove Web Services"), then register again (from the Web Services menu, select "Enable Web Services).
    After reregistering, I have been very successful using both ePrint and the Print Apps using my HP LaserJet CM1415. It has been staying connected, and promptly printing jobs I send to it. It has also been reconnecting after I powercycle. I sincerely hope you have the same experience. We had an ePrintCenter outage a few minutes ago that may have affected connectivity, but I am able to use ePrint and the Print Apps again as of 5:15 Mountain Time.

  • HP Color Laserjet PRO MFP M177FW Cannot connect to web services

    I bought a HP Color Laserjet PRO MFP M177FW  today and I set up it. It can print and scan over wireless network. However, It cannot connect to web services correctly. I set the DNS numbers with google DNS addresses. I changed its IP address with manually. The IP address is unique. Normally It doesn't enable/remove webservices. But when I restart it, it can do for few minutes. It can take an e-mail address but It doesn't print any information sheet. When I try to print a sheet It says "Connection Problem" at first few minutes and later it says "Connecting"and it waits, there is no error message. What am I suppossed to do? Please help me. 
    This question was solved.
    View Solution.

    Hello rasitbolukcu,
    Welcome to the HP Support forums.  I understand that you are having difficulties enabling the web services for your Laserjet Pro MFP M177fw printer.
    I appreciate all the information you gave me, it makes it much easier to assist you with the troubleshooting. I have included the Getting the Latest Firmware and Product Updates document.  It will walk you through ensuring the printer has the latest firmware.  Once you have updated the printer, please try to enable the web services again. 
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Web service proxy client with client cert cause SSLSessionNotFoundErr

    Hi,
    I tried to run web service proxy client with certification from JDeveloper 10.1.3.0.4 to call PKI enabled web service got folllowing error:
    WARNING: Unable to connect to URL: due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
    Web service deployed on OAS

    Hi,
    i am trying to invoke from JDeveloper (10.1.3) a CRM On Demand's Web Service and I hava the same problem:
    ADVERTENCIA: Unable to connect to URL: https://secure-ausomxgfa.crmondemand.com/Services/Integration due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
    java.rmi.RemoteException: ; nested exception is:
         HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
         at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:96)
         at testerlast.ContactClient.contactInsert(ContactClient.java:88)
         at testerlast.ContactClient.main(ContactClient.java:69)
    Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
         at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
         at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
         at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
         at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
         at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
         at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
         at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:80)
         ... 2 more
    To do the invocation I have done a proxy to consume this Web Service, with the follow main:
    public static void main(String[] args) {
    try {
    testerlast.ContactClient myPort = new testerlast.ContactClient();
    System.out.println("calling " + myPort.getEndpoint());
    myPort.setUsername(nameUser);
    myPort.setPassword(password);
    ListOfContactData llista = new ListOfContactData();
    ContactData[] contacts=new ContactData[2];
    ContactData contact=new ContactData();
    ContactInsert_Input input=new ContactInsert_Input();
    // Login WS HTTPS
    String idSesion=connexioWS_CRM.logon(URL,nameUser,password);
    // Add contact
    for (int i = 0; i < contacts.length; i++) {
    contact.setId("ProvaWSCRM"+i);
    contact.setContactFirstName("JDeveloper"+i);
    contact.setContactLastName("prove"+i);
    contact.setCellularPhone("77777777"+i);
    contact.setDescription("Add contact with Id:"+contact.getId());
    contacts=contact;
    System.out.println("Id:"+contacts[i].getId()+" firstName:"+contacts[i].getContactFirstName()+" lastName:"+contacts[i].getContactLastName());
    llista.setContact(contacts);
    input.setListOfContact(llista);
    input.setEcho("off");
    System.out.println("Pwd:"+myPort.getPassword()+" Port:"+myPort._port+" endpoint:"+myPort.getEndpoint()+" user:"+myPort.getUsername());
    myPort.contactInsert(llista,"LIC","Broadset","OFF");
    // Logout en WS (HTTPS)
    connexioWS_CRM.logoff(URL, idSesion);
    } catch (Exception ex) {
    ex.printStackTrace();
    What's wrong? Any idea?
    Thank you
    Edited by: user12085357 on 31-oct-2009 10:39

  • Java.lang.NullPointerException while creating virtual classroom via Adobe Connect 9 Web Services

    Hello all, I am trying to create a virtual classroom via Adobe Connect 9 Web Services with the code below.
    https://XXXXXXXX.adobeconnect.com/api/xml?action=sco-update&type=virtual-classroom&name=My Virtual Classroom&folder-id=1358451232&date-begin=2014-01-02T10:00&date-end=2014-01-02T11:00
    And the result below:
    <results>
    <status code="internal-error">
    <exception>java.lang.NullPointerException</exception>
    </status>
    </results>
    What could be the reason of this problem? I need your help.

    Hi Teomanx
    To create a virtual classroom, you have to give type=meeting & icon = virtual-classroom. So the correct syntax is :
    https://XXXXXXXX.adobeconnect.com/api/xml?action=sco-update&type=meeting&icon=virtual-clas sroom&name=My Virtual Classroom&folder-id=1358451232&date-begin=2014-01-02T10:00&date-end=2 014-01-02T11:00.
    Hope that helps.
    Thank you

  • How to Create web service using JMS with PUB/SUB pattern.

    Hi All,
    I need to expose web service using JMS with PUB/SUB pattern.
    if you have any source for this.
    I tried to use @WLJmsTransport annotation but unable to get it done.
    I have configured all JMS server, topic, and connection factory.
    Thanks.

    Hi, I am having web sample web service program which is simple one.
    But I need to Modify this to JMS enable.
    Can any one help me?
    Thanks.

  • HP7520 Unable to Connect To Web Services

    I just (today) purchased a HP Photosmart 7520. I set it up and configured it to my wireless network. I have an Mac Airport Router. I have 1 Mac and 2 PC's printing to it fine (off the wireless network). The problem is that when I go to setup my eprint it says Unable to Connect to Web Services. The wireless report shows no errors and says its connected to the internet. HP support had me go into the service mode (a series of button pressing) and do a semi full reset which did not help the problem. Any ideas on why I can not connect to web services? HP spent about an hour on the phone with me and could not resolve.
    Thanks

    Hi jreyn25,
    Thank you for taking the time to respond.
    Please run the wireless setup wizard on the front panel of the printer. If you are unsure how to do this, the steps can be found on page 48 of your User Guide in the section titled “To connect the product with the Wireless Setup Wizard”. After connecting the printer you will be prompted to print a report. Please choose to do so. I have included a screen shot of what the report should like.
    I highlighted where you should find the printer’s IP address on the report. Please try and connect to the printer’s IP address that is showing on the report.   If you get a security pop-up when trying to get the embedded web server (EWS), choosing to continue will not harm your computer while you navigate within the EWS for your printer. If you encounter this error outside of your printer’s EWS, your computer could be at risk. You can find this information in the document titled Printer Does Not Maintain Wireless Connection.
    Please let me know how it goes.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • "Unable to connect to web services" when trying to scan to e-mail on a HP Photosmart 7520

    Hello -  I used to be able to scan to e-mail with no problems and then all of a sudden I keep getting the "Unable to connect to Web Services" error message.  I have checked my network connection and it is fine, I have turned off my router and unplugged my printer but still no luck.  I have seen that this seems to be a common problem from others in this forum but I was hoping someone could help me figure this out.
    I really need to be able to scan documents to my e-mail..... ughh... please help!
    Thanks,

    I am having the same issue.  Please help.

  • Unable to connect to Web Services error message

    I have read through the thread here and it seems like this has been a common issue -- but the final resolution seems to have been solved with a private message...I try to scan and send via email -- everything has been set up properly (and this, in fact, used to work -- but has suddenly stopped) -- I have tried rebooting everything -- and I definitely have a good connection to the internet -- but when I try to scan and send to email,  get the error message "cannot connect to web services."Any idea what's going on and how to resolve the problem?

    Hello skagitsusan,
    Welcome to the HP Support Forums!
    I am not 100% as to the steps you have tried in attempt to resolve the Scan to Email issue on the 7520, but I would like to offer the steps I have given in another Thread.
    Re: Trouble scanning using Photosmart 6520 <---
    The steps will cover your printer, even though they are different Photosmarts.
    Let me know if this works.
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Printer connected to internet but when scanning it says "Unable to connect to web services"

    My computer shows successful connection to my wireless, but when scanning, it says it cannot connect to web services.  HELP!

    Hi slee4al,
    Welcome to the HP Support Forums.  I see that you are getting a connection error message when attempting to scan with your HP printer.
    To better assist you, would you please provide some additional information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    What operating system are you using on your computer? whatsmyos.com
    Are you trying to scan from your computer or the printer?  If you are trying to scan from the computer are you using the HP Scan software or another scanning software package?
    Is the printer plugged directly into a wall outlet?
    Are you able to make a copy from the front panel of the printer?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Cannot get envy 110 to connect to web services, although when first plugged in no probs

    as above, product worked perfectly out of the box but now will not connect to web services, on my home network everything else works fine, any ideas???

    Let's set a static IP address for the printer:
    - Print a Network Config Page from the front of the printer. Note the printer's IP address.
    - Type that IP address into a browser to reveal the printer's internal settings.
    - Choose the Networking tab, then Wireless along the left side, then the IPv4 tab.
    - On this screen you want to set a Manual IP. You need to set an IP address outside the range that the router automatically sets (called the DHCP range). You can find the DHCP range of the router using its internal settings page or in its manual. Use the CD that came with your router or type the router's IP address (ends in .1) into a browser.
    - Use 255.255.255.0 for the subnet (unless you know it is different, if so, use that)
    - Enter your router's IP (on the Network Config Page) for the gateway.
    - Enter 8.8.8.8 for the first DNS and 8.8.4.4 for the second DNS.
    - Click 'Apply'.
    Now, shut down the router and printer, start the router, wait, then start the printer.
    After this you may need to redo 'Add a Printer' using the new IP address.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

Maybe you are looking for

  • Brand New Carbon X1 loses Touch Screen function!!!!

    Hi there I just purchased Carbon X1 touch screen version for less than a week and all of a sudden I found out the touch screen was not working any more. I checked the system property and it shows "No pen or touch input is available for this display".

  • Any way to actually understand a Problem Report for Mac OS X?

    Many months ago I tried to load Lion onto an external HD but as it restarted it kept freezing. I tried everything but it wouldn't boot on both the Lion or Snow Leopard on the internal drive. I was getting the Apple screen with slight interference and

  • AC Adapter replacement

    Bought a new iPhone 5 3 days ago, and the charger has stopped working already. I've proven the adapter is faulty by connecting another known working charger to the phone. I contacted support and have been quoted £11.25 for service replacement. Should

  • Why won't my Lightroom 5.3 import files anymore?

    I'm on a Mac with Lightroom 5.3 freshly installed. It worked neatly for a couple of days when importing either from my iPhone or my 6D (from the card reader). Suddenly it stopped doing that. I've been through all the discussions and I've tried the fo

  • Can I install Adobe acrobat professional on vista?

    Hello Everyone, I have a old system with adobe acrobat professional, and I need to buy a new computer which has windows vista on it, will adobe acrobat professional work on it? Its very important, because that program, I need to do my job at this com