[Exchange-Online][EWS-XML][JAVA][OAUTH2] Getting HTTP status code 500 when using OAUTH2 client credential grant flow as authorization method

Hi,
i'm working on enhancing a service to be able to use OAUTH2 as authentication protocol with client credential grant flow when talking to exchange online ( like described here:
http://blogs.msdn.com/b/exchangedev/archive/2015/01/22/building-demon-or-service-apps-with-office-365-mail-calendar-and-contacts-apis-oauth2-client-credential-flow.aspx ). I gave my application the rights 
Office 365 Exchange Online : Application Permissions: "Have full access via EWS to all mailboxes ....."
Windows Azure Active AD: Application Permissions: "Read Directory data", Delegate Permissions: "Enable sign-on and read users_ profiles" 
I receive a access token from log.windows.net:
decoded token:
 typ: "JWT",
 alg: "RS256",
 x5t: "MnC_VZcATfM5pOYiJHMba9goEKY"
 aud: "https://outlook.office365.com/",
 iss: "https://sts.windows.net/<TENANT_ID>/",
 iat: 1426584502,
 nbf: 1426584502,
 exp: 1426588402,
 ver: "1.0",
 tid: "<TENANT_ID>",
 roles: [
  "full_access_as_app"
 oid: "1ddbdc11-b80d-4d1d-91b9-5b07a6b82659",
 sub: "1ddbdc11-b80d-4d1d-91b9-5b07a6b82659",
 idp: "https://sts.windows.net/TENANT_ID/",
 appid: "<APP_ID_IN_AZURE_AD>",
 appidacr: "2"
<SIGNATURE>
If i use that token then to send a EWS XML to exchange online i get a 500 HTTP status code back:
With impersonation in the request:
[http.wire ]: >> "POST /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
[http.wire ]: >> "Authorization: Bearer <MY_ACCESS_TOKEN>[\r][\n]"
[http.wire ]: >> "SoapAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n]"
[http.wire ]: >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: >> "User-Agent: OpenScapeUC EWS HttpClient/3.0[\r][\n]"
[http.wire ]: >> "client-request-id: 5b2c7e1a-656d-4f43-bd34-ea2d6290611f[\r][\n]"
[http.wire ]: >> "Date: Tue, 17 Mar 2015 10:08:17 GMT[\r][\n]"
[http.wire ]: >> "Content-Length: 1189[\r][\n]"
[http.wire ]: >> "Host: outlook.office365.com[\r][\n]"
[http.wire ]: >> "Connection: Keep-Alive[\r][\n]"
[http.wire ]: >> "[\r][\n]"
[http.wire ]: >> "<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><ns2:ExchangeImpersonation xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns2:ConnectingSID><ns2:PrimarySmtpAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:PrimarySmtpAddress></ns2:ConnectingSID></ns2:ExchangeImpersonation><ns2:RequestServerVersion
xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2007_SP1"/></S:Header><S:Body><ns3:GetFolder xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns3:FolderShape><ns2:BaseShape>IdOnly</ns2:BaseShape><ns2:AdditionalProperties><ns2:FieldURI FieldURI="folder:FolderId"/></ns2:AdditionalProperties></ns3:FolderShape><ns3:FolderIds><ns2:DistinguishedFolderId
Id="contacts"><ns2:Mailbox><ns2:EmailAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:EmailAddress></ns2:Mailbox></ns2:DistinguishedFolderId></ns3:FolderIds></ns3:GetFolder></S:Body></S:Envelope>"
[http.wire ]: << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[http.wire ]: << "Cache-Control: private[\r][\n]"
[http.wire ]: << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: << "Server: Microsoft-IIS/8.0[\r][\n]"
[http.wire ]: << "request-id: ec42b5c5-f8dc-498d-ae16-d851a852058c[\r][\n]"
[http.wire ]: << "Set-Cookie: ClientId=<DELETED>; expires=Wed, 16-Mar-2016 10:08:17 GMT; path=/; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-CalculatedBETarget: am2pr02mb0387.eurprd02.prod.outlook.com[\r][\n]"
[http.wire ]: << "X-DiagInfo: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-BEServer: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-AspNet-Version: 4.0.30319[\r][\n]"
[http.wire ]: << "Set-Cookie: exchangecookie=<DELETED>; expires=Thu, 17-Mar-2016 10:08:17 GMT; path=/; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 10:08:18 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 10:08:18 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-Powered-By: ASP.NET[\r][\n]"
[http.wire ]: << "X-FEServer: DB5PR01CA0064[\r][\n]"
[http.wire ]: << "Date: Tue, 17 Mar 2015 10:08:17 GMT[\r][\n]"
[http.wire ]: << "Content-Length: 891[\r][\n]"
[http.wire ]: << "Accept-Ranges: none[\r][\n]"
[http.wire ]: << "Connection: keep-alive[\r][\n]"
[http.wire ]: << "[\r][\n]"
Without impersonation in the request:
Request
[http.wire ]: >> "POST /EWS/Exchange.asmx HTTP/1.1[\r][\n]"
[http.wire ]: >> "Authorization: Bearer <MY_ACCESS_TOKEN>[\r][\n]"
[http.wire ]: >> "SoapAction: "http://schemas.microsoft.com/exchange/services/2006/messages/GetFolder"[\r][\n]"
[http.wire ]: >> "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: >> "User-Agent: OpenScapeUC EWS HttpClient/3.0[\r][\n]"
[http.wire ]: >> "client-request-id: 20bd722f-8276-4ebb-8d58-ce45d31f3ed4[\r][\n]"
[http.wire ]: >> "Date: Tue, 17 Mar 2015 09:33:24 GMT[\r][\n]"
[http.wire ]: >> "Content-Length: 871[\r][\n]"
[http.wire ]: >> "Host: outlook.office365.com[\r][\n]"
[http.wire ]: >> "Connection: Keep-Alive[\r][\n]"
[http.wire ]: >> "[\r][\n]"
[http.wire ]: >> "<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Header><ns2:RequestServerVersion xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages" Version="Exchange2007_SP1"/></S:Header><S:Body><ns3:GetFolder xmlns:ns2="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ns3="http://schemas.microsoft.com/exchange/services/2006/messages"><ns3:FolderShape><ns2:BaseShape>IdOnly</ns2:BaseShape><ns2:AdditionalProperties><ns2:FieldURI
FieldURI="folder:FolderId"/></ns2:AdditionalProperties></ns3:FolderShape><ns3:FolderIds><ns2:DistinguishedFolderId Id="contacts"><ns2:Mailbox><ns2:EmailAddress><THE_MAILBOX_I_WANT_TO_ACCESS></ns2:EmailAddress></ns2:Mailbox></ns2:DistinguishedFolderId></ns3:FolderIds></ns3:GetFolder></S:Body></S:Envelope>"
Response:
[http.wire ]: << "HTTP/1.1 500 Internal Server Error[\r][\n]"
[http.wire ]: << "Cache-Control: private[\r][\n]"
[http.wire ]: << "Content-Type: text/xml; charset=utf-8[\r][\n]"
[http.wire ]: << "Server: Microsoft-IIS/8.0[\r][\n]"
[http.wire ]: << "request-id: 923ba463-490f-4ac9-a496-993cd8a44115[\r][\n]"
[http.wire ]: << "Set-Cookie: ClientId=<DELETED>; expires=Wed, 16-Mar-2016 09:33:24 GMT; path=/; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-CalculatedBETarget: am2pr02mb0387.eurprd02.prod.outlook.com[\r][\n]"
[http.wire ]: << "X-DiagInfo: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-BEServer: AM2PR02MB0387[\r][\n]"
[http.wire ]: << "X-AspNet-Version: 4.0.30319[\r][\n]"
[http.wire ]: << "Set-Cookie: exchangecookie=<DELETED>; expires=Thu, 17-Mar-2016 09:33:25 GMT; path=/; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 09:33:25 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "Set-Cookie: [email protected]=<DELETED>; expires=Thu, 16-Apr-2015 09:33:25 GMT; path=/EWS; secure; HttpOnly[\r][\n]"
[http.wire ]: << "X-Powered-By: ASP.NET[\r][\n]"
[http.wire ]: << "X-FEServer: AM3PR07CA0038[\r][\n]"
[http.wire ]: << "Date: Tue, 17 Mar 2015 09:33:24 GMT[\r][\n]"
[http.wire ]: << "Content-Length: 799[\r][\n]"
[http.wire ]: << "Accept-Ranges: none[\r][\n]"
[http.wire ]: << "Connection: keep-alive[\r][\n]"
If i use BASIC authentication and impersonation the request is successfully. 
Has anyone an idea why i might get the error 500 in that scenario?

For EWS to work with App Token, you need to do two more things. One you already did: Set the impersonation header. Two is to set the X-AnchorMailbox http request header to the smtp address of the mailbox you want to access. This routes the request instantly
to the right backend.
Hope this helps.
Thank you! Matthias

Similar Messages

  • Http status code: 500 when testing Request Response API

    Hi,
    I published a web service and used the test function in the dashboard for a trial. But it returned HTTP 500.
    The request url is:
    https://ussouthcentral.services.azureml.net/workspaces/a5a6b2af17e749a29ae820df3ea5bdf2/services/ecfa1355485e4ed6a9767be2842452fb/execute?api-version=2.0&details=true
    In particular, I tried removing the quantile binning, then it worked. But with quantile binning, I keep getting errors.
    Any suggestions?

    Hmm, not quite - if it is truly the training set, you do not need it in the web service right?
    In fact, an RRS endpoint will expect an input set, so do you need the Reader module? If you use the Web Service Input module, it will bypass the Reader with the provided input data for scoring time.
    You are using Quantize Data correct? This module outputs two things: the transformed data and the
    transformation function itself. You need to Right Click -> Save as Transform, and use THIS in your scoring experiment + Apply Transformation.
    If you do this, the transformation does not need to be recomputed. If you leave Quantize Data in your graph, then your function will indeed be recomputed.
    Regards,
    AK

  • HTTP Status Code 500 Internal server error while passing complex object

    Hi
    When I am passing values through complex input parameter, I am getting "*HTTP Status Code 500 Internal server error: The server encountered an unexpected condition which prevented it from fulfilling the request*". Why I am getting this error? Any idea
    Regards
    Raj

    Raj,
    Can you elaborate on what exactly are you trying to do? Are you saying that same use case works when you pass simple parameters?
    JC

  • Java.rmi.RemoteException: HTTP Status-Code 404 Not Found  securesimple/Ping

    Hello!
    I'm testing interop and simple application for JWSDP and I get the following error in the context:
    build-client:
    run-sample:
    [echo] Running the simple.TestClient program....
    [java] Service URL=http://localhost:8080/securesimple/Ping
    [java] Nov 4, 2004 1:31:54 PM com.sun.xml.wss.filter.DumpFilter process
    [java] INFO: ==== Sending Message Start ====
    [java] <?xml version="1.0" encoding="UTF-8"?>
    [java] <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/".............
    [java] </env:Body>
    [java] </env:Envelope>
    [java] ==== Sending Message End ====
    So, after the client has send the message this error occurs:
    [java] java.rmi.RemoteException: HTTP Status-Code 404: Not Found - /secures
    imple/Ping; nested exception is:
    [java] HTTP Status-Code 404: Not Found - /securesimple/Ping
    [java] at simple.PingPort_Stub.ping(PingPort_Stub.java:96)
    [java] at simple.TestClient.main(TestClient.java:37)
    [java] Caused by: HTTP Status-Code 404: Not Found - /securesimple/Ping
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.checkResponse
    Code(HttpClientTransport.java:302)
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.connectForRes
    ponse(HttpClientTransport.java:252)
    [java] at com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpCl
    ientTransport.java:88)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
    java:92)
    [java] at simple.PingPort_Stub.ping(PingPort_Stub.java:80)
    [java] ... 1 more
    [java] Exception in thread "main"
    [java] Java Result: 1
    The application is running on localhost in a local network, so for accesing internet we're using a proxy. For this we tried to set up the proxy configuration and still the same error. We've also unplugged the network cable but it didn't help.
    We've done all the neccesary settings and we're using "org.bouncycastle.jce.provider.BouncyCastleProvider " as a JCE provider.
    Thank you!

    Just a guess, but if this is a secure web service shouldn't you be trying to connect to it using SSL? e.g.
    https://localhost:443/securesimple/Ping
    Have you tried hitting the web service via your browser and appending the ?WSDL to the URL
    http://localhost:8080/securesimple/Ping?WSDL
    https://localhost:443/securesimple/Ping?WSDL
    Can you telnet to http://localhost:8080

  • Proxy error - HTTP status code 500

    Hi,
    Scenario: Asynchronous Proxy (R/3 4.7) to 3rd Party (JDBC)
    We applied patches to JAVA on the XI side to fix a bug, the process worked before the patches. I am now getting an error on R/3 i.e. the data is not reaching XI.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Call Integration Server
      -->
    - <SAP:ErrorHeader xmlns:SAP="http://sap.com/exchange/MessageFormat">
      <SAP:Context />
      <SAP:Code p1="500" p2="Error during conversion of XI message" p3="" p4="">HTTP.HTTP_STATUS_CODE_NEQ_OK</SAP:Code>
      <SAP:Text language="EN">HTTP status code 500 : Error during conversion of XI message</SAP:Text>
      </SAP:ErrorHeader>
    Any ideas. Thanks,
    Leanne

    Hi,
    SAP requested we implement patches, this sorted out the proxy issue. The message now arrives in XI.
    I have now encountered another problem, this process was working prior to the patches being implemented. I noticed that the communication channels now look different, any ideas?
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Inbound Message
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: JDBC Adapter configuration not initialized: null</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks,
    Leanne

  • Error code: InternalError, Http status code: 500 while testing an experiment

    Creating a very simple experiment with just a Dataset, followed by a simple regresion using an Execute
    R Task , I get an internal server error while testing the published experiment
    Hitting run everything goes smooth and I can see all data,but when i hit 'test' from the web services dashboard
    right after publishing,I get this:
    Error code: InternalError, Http status code: 500, Request id: d87e2d01-16ef-4ac9-8a5d-a58d41aab2d4, Timestamp: Tue,
    03 Mar 2015 12:19:55 GMT
    How can I handle this ?
    Thank you in advance.

    Hi Shreyas!
    Are you familiar with the tryCatch() function in R? in your error condition, you can return the error message a bit more cleanly as shown in the following code snippet. FYI one common error we see is R scripts that are not able to handle a single-row input
    or with mismatched data types.
    tryCatch({
    # Do what you want in here
    maml.mapOutputPort("data.set");
    }, error = function(e) {
    data.set = data.frame(errormsg = conditionMessage(e))
    print(conditionMessage(e));
    maml.mapOutputPort("data.set");

  • Lync 2013 Logon Failing (HTTP status code 500) No valid security token

    Hello there,
    I'm in the process of deploying Lync 2013.  I have the pool deployed and everything is at least running.  I can access the control panel and provision users.  However when I try to logon to the Lync Client I get a DNS error.  The DNS
    error appears to be misleading and is a result of the earlier auto-detection methods failing.
    However using the Lync Connectivity Analyzer I get a "No valid security token." error.  This doesnt matter if I use auto-detection or manual pointing the Connectivity Analyzer to the pool servers.
    [3/2/2015 9:34:15 AM] [ERROR] Reason: Internal server error (HTTP status code 500)
    [3/2/2015 9:34:15 AM] [ERROR] Ms-Diagnostics-Fault ErrorId: 28020, Reason: No valid security token.
    [3/2/2015 9:34:15 AM] [CRITICAL] The credentials were not authorized by the server. Please verify your login credentials and try again.
    [3/2/2015 9:34:15 AM] [DEBUG] System.Exception: Exception of type 'System.Exception' was thrown.
    at Microsoft.LyncServer.WebServices.WebTicketManager.WTExceptions(String exText)
    at Microsoft.LyncServer.WebServices.WebTicketManager.<AcquireTicketAsync>d__19.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.LyncServer.WebServices.WebTicketManager.<AcquireOpaqueTicketAsync>d__14.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<AuthenticationRequired>d__2a.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<SendRequest>d__d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<ParseResponse>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<StartDiscoveryJourney>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at LyncConnectivityAnalyzerCore.Utilities.<RetrieveUserLocation>d__3e.MoveNext()
    Im a bit stumped where to go next.
    Thanks.

    Manually entering the server also fails and does not provide much to help "We're having trouble connecting to the server. If this continues, please contact your support team."
    I found that each time I try to logon it generates a Schannel Error on the server.  "A fatal alert was generated and sent to the remote endpoint. This may result in termination of the connection. The TLS protocol defined fatal error code is 51.
    The Windows SChannel error state is 1106."
    There seems to be a lot more information on that than the previous "Internal Error" message I was trying to deal with.
    https://social.technet.microsoft.com/Forums/office/en-US/41718327-203f-445f-8657-87b0a8545ead/lync-2013-client-signin-issue-with-lync-2013-server?forum=lyncprofile
    Actually I just found the Lync Server Front-End is stuck "starting" so that would explain why I cannot login.  However I re-issued my certificate to make sure the primary CN matched "lync.domain.tld" and it still wont start.
    https://expertslab.wordpress.com/2014/04/23/lync-server-2013-front-end-service-stuck-on-starting/
    I think my problem is the certificate.  I have been trying to use selfSSL7 to generate the certificate for testing but it does not support creating SAN entries so I have entered all the FQDNs as CN entries.
    Im going to get another method to generate the self-signed certificate for testing.

  • ADF Mobile: HTTP Status Code 500 Internal Server Error

    Hi,
    I wrote a SOAP web service and deployed it to my standalone ADF Server. I tested it with the HTTP Analyzer, works great. I used it in a Web Service Data Control in normal ADF Web - works perfect. It returns a table of data as programmed. However, ADF Mobile gives me errors: "Http Status Code 500 Internal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request".
    I developed an ADF Mobile interface with an amx page. I created the same Web Service Data Control and created a List View based on the data control. The error pops up every single time, both on iOS simulator and Android Simulator.
    I know the simulators have network access to the web services - because i can open the web service test page and WSDL from both simulator's internet browsers.
    I know the web services are running - because my ADF Web application can access it.
    Any ideas?
    Thank you!
    -Gavin

    Thanks for the reply. There were no errors in my WLS server. However, I will add some statements to my web service to write to the log file. That way i can see if or at what point is the web service is being accessed by the mobile app.
    Thanks,
    Gavin

  • Test web service published returns Error code: InternalError, Http status code: 500

    Further invastigating ther error mentioned here: 
    https://social.msdn.microsoft.com/Forums/azure/en-US/14afa50f-287d-4158-852a-c9532f9f30eb/test-published-web-service-experiment-error-with-status-code-400?forum=MachineLearning
    I have made an even simpler experiment with two python scirpt modules. The experiment again runs fine in Azure ML Studio but fails in the web service test with the error
    Error code: InternalError, Http status code: 500, Request id: 53eef674-190a-4f63-bdc6-a072a45a9c72, Timestamp: Fri, 24 Apr 2015 09:30:37 GMT
    The experiment consists only of two python script modules. The code of the first module:
    import numpy as np
    import pandas as pd
    def azureml_main(dataframe1 = None, dataframe2 = None):
        dataframe1.loc[1] = ["U5000","resB",np.nan]
        dataframe1.loc[2] = ["U5000","resC",2]
        dataframe1.loc[3] = ["U5000","resD",2]
        dataframe1.loc[4] = ["U5000","resE",np.nan]
        dataframe1.loc[5] = ["U6000","resA",np.nan]
        dataframe1.loc[6] = ["U6000","resB",1]
        dataframe1.loc[7] = ["U6000","resC",2]
        dataframe1.loc[8] = ["U6000","resD",np.nan]
        dataframe1.loc[9] = ["U6000","resE",1]
        dataframe1['hasRated'] = pd.Series(1, index=dataframe1.index).astype(bool)
        df_new = pd.DataFrame()
        df_new = pd.DataFrame(dataframe1[["restaurant","rating","hasRated"]])
        return df_new,
    The code of the second module that takes as input the result of the first module:
    def azureml_main(dataframe1 = None, dataframe2 = None):
    return dataframe1,
    A url of a screenshot taken from the experiment.
    http://i.imgur.com/4nrbneA.png
    Please respond. Again I am using a free workspace of Azure ML Studio.
    Thank you very much

    Thank you for your quick reply.
    I hope you will be able to resolve this issue soon.
    asavvopoulos

  • Why am I getting http error code 413 when I try to upload a photo?

    I am trying to upload a picture from my computer to the www.NWF.org web site. I have done this 19 times before, but suddenly I'm getting "http error code: 413" and my picture won't upload. I've tried closing Firefox, updating all my plug-ins, and rebooting the computer, none of which has helped. When I Google this error, I don't understand what I'm reading.

    Hello tschuss!
    I'm so sorry to hear that your update has not successfully completed! I can certainly help to point you in the right direction. Click the link to access the Software Upgrade Assistant, which will provide instructions for how to complete the update if it has failed. http://www.verizonwireless.com/support/knowledge-base-80200/
    MichelleH_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • HTTP error code 500 when acessing webservice

    Hi Guys,
    We are trying to access a webservice through HTTPS. It's a document-oriented webservice implemented using weblogic. Both WSDL and service are accessible from the browser.
    Can somebody please, invest sometime on this? We would be grateful for all the effort you spend on this.
    Exception on client-side:
    java.io.IOException: Server returned HTTP response code: 500 for URL: https://avisheko:7002/handler_log/EchoString?WSDL
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unkn
    own Source)
    at examples.webservices.ssl2way.SSLCFASAAJclient.main(SSLCFASAAJclient.j
    ava:151)
    We get some strange information on the server side:
    Got a Web Service Request at URL: '/handler_log/EchoString' for web service 'null'
    Got a Web Service Request at URL: '/EchoString' for web service 'LogHandler'
    Client-code:
    KeyStore ks = KeyStore.getInstance(KEYSTORE_TYPE);
    ks.load(new FileInputStream("E:/test/keytool/2/cfakeystore"), "cfakeystorepass".toCharArray());
    KeyStore ts = KeyStore.getInstance(KEYSTORE_TYPE);
    ts.load(new FileInputStream("E:/test/keytool/2/cfatruststore"), "cfatruststorepass".toCharArray());
    KeyManagerFactory kmf = KeyManagerFactory.getInstance(SECURE_ALGORITHM);
    kmf.init(ks, "cfakeystorepass".toCharArray());
    KeyManager[] km = kmf.getKeyManagers();
    TrustManagerFactory tmf = TrustManagerFactory.getInstance(SECURE_ALGORITHM);
    tmf.init(ts);
    TrustManager[] tm = tmf.getTrustManagers();
    SSLContext sslCtx = SSLContext.getInstance(SECURE_PROTOCOL);
    sslCtx.init(km, tm, null);
    System.setProperty("weblogic.webservice.verbose", "true");
    URL endpoint= new URL("https://avisheko:7002/handler_log/EchoString?WSDL");
    javax.net.ssl.HttpsURLConnection con = (javax.net.ssl.HttpsURLConnection)endpoint.openConnection();
    con.setSSLSocketFactory(sslCtx.getSocketFactory());
    com.sun.net.ssl.HostnameVerifier hv=new com.sun.net.ssl.HostnameVerifier()
         public boolean verify(String urlHostname, String certHostname)
              System.out.println("WARNING: Hostname is not matched for cert.");
              return true;
    com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier(hv);
    con.setDoOutput(true);
    con.setDoInput(true);
    con.setRequestMethod("POST");
    con.setRequestProperty("Connection", "Keep-Alive");
    con.setRequestProperty("Content-Type", "text/xml;charset=utf-8");
    con.setRequestProperty("SOAPAction", "");
    File f1 = new File("Soap6.xml");
    BufferedReader inFile = new BufferedReader(new InputStreamReader(new FileInputStream(f1)));
    StringBuffer sb = new StringBuffer();
    String temp = null;
    while((temp = inFile.readLine()) != null && !(temp.startsWith("0000")))
         sb.append(temp);
    PrintWriter out = new PrintWriter(con.getOutputStream());
    BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
    out.write(sb.toString());
    out.flush();
    String answer = in.readLine();
    System.out.println(answer);
    out.close();
    in.close();
    WSDL:
    <?xml version="1.0" encoding="UTF-8" ?>
    <definitions xmlns:tns="http://www.wisor.com/loguser" xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding" xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://www.wisor.com/loguser">
    <types>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:stns="http://www.wisor.com/loguser" elementFormDefault="unqualified" attributeFormDefault="unqualified" targetNamespace="http://www.wisor.com/loguser">
    <xsd:element type="xsd:string" name="echoString" nillable="true" />
    <xsd:element type="xsd:string" name="echoStringResponse" nillable="true" />
    </xsd:schema>
    </types>
    <message name="echoString">
    <part xmlns:partns="http://www.wisor.com/loguser" name="echoStringRequest" element="partns:echoString" />
    </message>
    <message name="echoStringResponse">
    <part xmlns:partns="http://www.wisor.com/loguser" name="echoStringResult" element="partns:echoStringResponse" />
    </message>
    <portType name="LogHandlerPort">
    <operation name="echoString">
    <input message="tns:echoString" />
    <output message="tns:echoStringResponse" />
    </operation>
    </portType>
    <binding type="tns:LogHandlerPort" name="LogHandlerPort">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    <operation name="echoString">
    <soap:operation style="document" soapAction="" />
    <wsr:reliability persistDuration="60000" />
    <input>
    <soap:body namespace="http://www.wisor.com/loguser" use="literal" />
    </input>
    <output>
    <soap:body namespace="http://www.wisor.com/loguser" use="literal" />
    </output>
    </operation>
    </binding>
    <service name="LogHandler">
    <port name="LogHandlerPort" binding="tns:LogHandlerPort">
    <soap:address location="https://avisheko:7002/handler_log/EchoString" />
    </port>
    </service>
    </definitions>

    Check for a problem with Windows update KB902400.
    Once this update was uninstalled, ActiveSync now works. No
    problems with it recognizing my firewall or virus protection
    either.
    HTH
    "Hoggies_Oz2" <[email protected]> wrote in
    message
    news:g5a105$ifc$[email protected]..
    > Hi,
    >
    > I'm a new user of Dreamweaver having been appointed
    webmaster of a local
    > club.
    > Have been working my way through the
    'dw_getting_started' manual (which is
    > generally excellent - thanks). Have installed IIS, PHP
    and MySQL on my XP
    > PRO
    > SP3 PC - all OK so far and installed exactly as per the
    recommendations in
    > the
    > dw_getting_started manual. But when I try to do the test
    database
    > connection
    > (page 136) I get HTTP Error 500 Internal Server Error.
    When I examine the
    > event viewer I can see the error which is Event ID: 1802
    ' The Windows
    > Security
    > Center Service was unable to establish event queries
    with WMI to monitor
    > third
    > party AntiVirus and Firewall'. Have spent many hours
    scouring the 'net as
    > well
    > as with McAfee. At one stage I completely uninstalled
    McAfee using their
    > clean
    > out program but the error still occurred with McAfee
    totally removed from
    > my PC.
    >
    > Any help will be appreciated.
    >
    > Thanks, Hoggies_Oz2
    >

  • Getting Server Error Code: -2147024891 when using Biztalk Windows SharePoint Services Adapter to upload a document

    We are currently running
    1. BizTalk Server 2013 R2
    2. SharePoint 2013
    both in a Windows 2012 Server environment, in Azure.   The BizTalk and SharePoint are running on separate machines.
    I am using the Windows SharePoint Adapter to upload a Tif file to a SharePoint document library.  However, when the host instance is running under my team member's userid, I get the following error in the eventlog:
    The adapter failed to transmit message going to send port "SendOwnershipToSharePoint" with URL "wss://bp1amsapt218:34392/sites/BiztalkSc/Lists/Ownership". It will be retransmitted after the retry interval specified for this Send Port.
    Details:"[Microsoft.SharePoint.Client.ServerUnauthorizedAccessException] Access denied. You do not have permission to perform this action or access this resource. Server Error Code: -2147024891Trace:    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream
    responseStream)
       at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
       at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
       at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
       at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
       at Microsoft.SharePoint.Client.Web.WebUrlFromPageUrlDirect(ClientContext context, Uri pageFullUrl)
       at Microsoft.BizTalk.KwTpm.WssAdapter.ClientOmAccessor.RequestInfo..ctor(String siteUrl, String sharePointOnlineUsername, String sharePointOnlinePassword)
       at Microsoft.BizTalk.KwTpm.WssAdapter.ClientOmAccessor.ListsAccessor..ctor(String siteUrl, String sharePointOnlineUsername, String sharePointOnlinePassword)
       at Microsoft.BizTalk.KwTpm.WssAdapter.ClientOmAccessor.ListsAccessor.TryOpenWebSite(String siteUrl, String sharePointOnlineUsername, String sharePointOnlinePassword, Exception& lastError)
    This error was triggered by the Windows SharePoint Services receive location or send port with URI wss://bp1amsapt218:34392/sites/BiztalkSc/Lists/Ownership.
    Windows SharePoint Services adapter event ID: 12310".
    This userid has already been added to the following groups on the BizTalk Server:
    Local Administrators Group
    BizTalk Server Administrators
    SSO Administrators
    BizTalk Isolated Host Users
    BizTalk Application Users
    I have also made sure the userid has full control access to the SharePoint site and the document library within the site.   I have confirmed that the user with this userid is able to access the SharePoint site and can upload documents to the
    document library, manually.   However,  when the host instance is running under this userid, I am not able to upload documents to the SharePoint document library.
    The Windows SharePoint Services Adapter is configured with the following values:
    Adapter Web Service Port:   34392
    Timeout:   100000
    Use Client OM: Yes
    Destination Folder URL:  Lists/Ownership
    FileName:  test.tif
    Overwrite:  Yes
    SharePoint Site URL: 
    http://bp1amsapt218:34392/sites/BiztalkSc/
    Microsoft Office Integration:  No
    Do you know what the cause for this error is?   We urgently need a resolution for this?

    If you create an XML document and upload it to the Windows SharePoint Services Web site. The Windows SharePoint Services adapter will take that message, archive it in the Archive document library, and then send it to the Destination document library. This
    procedure demonstrates how a document flows from a Sharepoint web site, through BizTalk Server, and to a Sharepoint Services Web site using the Windows Sharepoint Services adapter.
    This MSDN library article shows the procedure, please check whether it will be helpful to troubleshoot.
    Create a working directory
    Create an XML file
    Upload the XML file
    See: https://msdn.microsoft.com/en-us/library/aa560513.aspx

  • Encountered HTTP Response Code: 482 when using HttpURLConnection object

    Hi, all.
    I was writing a Java web project deploying to OC4J which is used for asynchronous polling to Microsoft CWA server.
    At some time later, it is found that the polling fails due to HTTP response code: 482. However, on the CWA side, no exceptions and errors can be found.
    I searched for long and didn't get any 482 response code related to HTTP.
    Could anybody give a hand?
    Thanks.
    Edited by: xdallen on Oct 8, 2009 7:16 PM

    It's not a standard HTTP response code. You will have to ask whoever sent it what it means.

  • TREX Indexing: HTTP Status Code 500: Internal Server Error (6500)

    Hi All,
    when iam trying to index the documents from DMS repository getting errors.
    6500 HTTP status internal server error.
    8005 Time out reached.
    Our DMS and Trex server both are in one Instance.
    Could you please help me to resolve the issue.
    Waiting for your response.........
    Regards,
    Shilpa.

    PLease check this posts
    https://forums.sdn.sap.com/thread.jspa?threadID=130245
    https://forums.sdn.sap.com/thread.jspa?threadID=1215092
    Thanks,
    Raj

  • HTTP Error with Status code 403 when using ABAP Server Proxies

    Hi All,
    I have been working on ABAP Client and Server proxies in my project. The weblogs by Ravikumar, Prateek Shah,  Siva Maranani & VijayaKumari were very helpful and thank them all for just helpful and guiding postings.
    Interfaces using Client proxies are working fine and have been tested successfully. But I'm facing bit problems with Server Proxies. The scenario is of File to SAP system via XI. Data is coming correct up to Technical routing in pipeline but at call adapter(for Server Proxy to SAP)in XI pipeline I receive Error:
    HTTP response contains status code 403 with the description Business Server Page (BSP) Error Error when sending by HTTP (error code: 403, error text: Business Server Page (BSP) Error)
    Previously I was receiving authentication and authorization related error of status code 401 and then in communication channel I replaced user profile with a user id having role SAP_XI_APPL_SERV_USER. The basis peron has created new user id with role SAP_XI_APPL_SERV_USER  only and that I'm using. I've tried creating a HTTP destination with the created user id and in test connection too receive same error message.
    Please help me out with your inputs and understanding on the topic.
    Thanks and Best Regards
    Prashant Rajani

    Hi Prashant,
    Please take a look at these threads..They deal with the same problem, and they have been resolved here.
    BSP Authorization error
    Service cannot be reached .  error code 403 the reason forbiddn
    403 Error when accessing the server
    Hope your issue gets resolved.
    cheers,
    Prashanth
    P.S Please mark helpful answers

Maybe you are looking for