Service Bus Send/Receive - REST API

I need to use the Azure Service Bus REST API for sending messages to Service Bus Topics. On the receiving side I'm using the Azure Service Bus SDK.
Message on the sender side:
POST https://your-namespace.servicebus.windows.net/HttpClientSampleQueue/messages?timeout=60 HTTP/1.1
Authorization: SharedAccessSignature sr=your-namespace&sig=Fg8yUyR4MOmXfHfj55f5hY4jGb8x2Yc%2b3%2fULKZYxKZk%3d&se=1404256819&skn=RootManageSharedAccessKey
BrokerProperties: {"Label":"M1","State":"Active"}
Content-Type: application/atom+xml;type=entry;charset=utf-8
Host: your-namespace.servicebus.windows.net
This is a message.
When reading the message body as message.GetBody<string> an error message is given  serialization exception.
I already searched the web and found a possible solution:
Stream stream = message.GetBody<Stream>();
StreamReader reader = new StreamReader(stream);
string str = reader.ReadToEnd();
or as an alternative (instead of converting to string) converting the stream into an XmlDocument
Are hese recommended ways to handle this issue?
Thanks.

@Serkant & Paolo: Thanks for the answers.
The client I use is Postman (Chrome plug-in).
The message below works fine, but as I mentioned on the server side (.NET with Azure Service Bus SDK/API) until now I used:
Stream stream = message.GetBody<Stream>();
StreamReader reader = new StreamReader(stream);
string str = reader.ReadToEnd();
But I'll now try with 
var body = msg.GetBody<string>(new DataContractSerializer(typeof(string)));
POST /testtopic/messages HTTP/1.1
Host: namespace.servicebus.windows.net
Authorization: SharedAccessSignature sr=https%3a%2f%2namespace.servicebus.windows.net%2ftesttopic&sig=HUl2y3BTw%2bx3tSmUYZtpnfmzyxKfK1lqwIudfVY1UJg%3d&se=65025728850&skn=ManageAccessKey
Content-Type: application/atom+xml;type=entry;charset=utf-8
BrokerProperties: {"Label":"M1","State":"Active"}
MessageNumber: 1
Cache-Control: no-cache
Postman-Token: bf68bdef-2b5a-70ed-5fc3-96dbce720a7c
{"temp":40}

Similar Messages

  • Peek and Lock with Offset for Service Bus Queue in REST API

    In .NET library, the QueueClient has an API
    QueueClient.Peek(Int64), which accept an offset for the queue as starting point.
    Does the REST api
    also can pass this parameter? I didn't find one.

    hi mmsz_jbn,
    Thanks for your posting!
    It seems that REST API Peek-Lock message don't support pass the SequenceNumber.
    http{s}://{serviceNamespace}.servicebus.windows.net/{queuePath}/messages/head
    http{s}://{serviceNamespace}.servicebus.windows.net/{topicPath}/subscriptions/{subscriptionName}/messages/head
    From the API structure, we don't see the sequence number as a parameter.
    But in unlock method, we can use this number:
    http{s}://{serviceNamespace}.servicebus.windows.net/{queuePath}/messages/{messageId|sequenceNumber}/{lockToken}
    I suggest you could submit a feature request in this page:
    http://www.mygreatwindowsazureidea.com/forums/34192-windows-azure-feature-voting.
    Regards,
    Will
    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.

  • HTTP REST API call to CPSC 10.x from an external system

    Hi,
    I would like to know the below items.
    Is it possible to connect with the CPSC 10.x from an external system via HTTP REST API call to process a request and complete a task?
    Is it possible to create a new ticket / request in CPSC for a specific service via the HTTP REST API call?
    One of the use case is to know how many requests are pending in a queue via a HTTP REST API call? How to pass a queue name in the HTTP REST API call to get the result? These kind of custom piece is not available in the integration guide.
    Is there any specific REST API guide available which Cisco provides for the REST capability in CPSC?
    Any help is highly appreciated!
    Thanks.

    When a task is invoked from a service catalog request to an external system, the request remains open and the task is pending until the external system issues a call to complete the task.  The API for completing the task is SOAP-based.  Check out the Cisco Prime Service Catalog Integration Guide.  Within the doc, go to the section about "Web Service Listener Adapter" for the WSDL.
    You can order a service within Prime Service Catalog with a SOAP call, which is also documented in this same document.  Starting with Prime Service Catalog 10.1, you will have a way to order a service via a REST API.
    Existing REST APIs are also documented in the integration guide.

  • 请教:Oracle Service Bus支持C++客户端吗

    Oracle Service Bus支持C++客户端吗,能否提供例子代码?

    没问题,用JMS的C API就可以用消息方式与OSB通信,如果是同步调用的话,可以用C++访问WebService。

  • REST API Wrapper For SP

    Hi,
    I am planning to create Service based custom wrapper for sharepoint using the REST API  for my developers so fetching and basic operations becomes easier for them. it turns out that in REST API/Web Services I am supposed to pass the credentials as well.
    and since i can not pass the default credentials in my service which is out side the SharePoint environment. it will be difficult to pass the authentication. I have also thought of doing the operations using 1 single credential. But in that case all my list/document
    library etc. has that user signature in created by and modified by columns on sharepoint.
    Any suggestion ?
    Thanks, Parth

    Hi Shay,
    Thanks for reply i followed the steps given in the documents, but there is a authentication problem.
    1.I am able to see the services available in the API ----> http://host:port/rest/api/resourceIndex
    These are some of the rest services  http://host:port/rest/api/spaces/resource/templates?utoken=FAOfyLL32piL7dPu9tXJjoEFMC5n_w**
                                                          http://host:port/rest/api/spaces?utoken=FAOfyLL32piL7dPu9tXJjoEFMC5n_w**
    My question is , Are these the correct services which i need to consume in Jdeveloper (URL Service Data Control).
    While consuming these services i m getting the error like "Authentication is Required". Is it the correct way to consume these services ??.
    If not could you please tell me how to resolve this issue..? help me in this..
    Thanks.

  • REST API sync issue

    Hi expert,
      I created a Excel file into SharePoint 2013 Excel library and Post the URL into MS word quick parts of IncludePicture. in MS Word, I can get the Excel Chart. but when I update the chart and publish into SharePoint again, the word file does not change.
    does anybody knows how to sync both ?
    the URL like this,
    http://www.sharepointsite.com/_vti_bin/excelrest.aspx/Excel%20Library/TeamTasks_data.xlsx/model/
    charts('Task%20Status')?$format=image
    Thanks
    James Liang

    Hi,
    There’s a setting in your Trusted File Locations (in the configuration of the Excel Service Application) that you have to check, in order to have the REST API update the connections.
    http://www.sharepointblogs.be/blogs/vandest/archive/2014/02/20/excel-rest-api-not-refreshing-data.aspx
    If the issue still exists, please check whether you have select "Data not stored with document" in the "Field options".
    http://blogs.office.com/2009/11/09/excel-services-in-sharepoint-2010-rest-api-examples/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to send a encrypted packet to the REST API Service using Fiddler or Post Man

    Hi,
    I am trying to send encrypted (AES) JSON packet to the REST API on the Azure cloud using tools like Fiddler.
    I am trying to use POST method and attaching the encrypted .aes file to the Fiddler tool.
    I am getting the 3 types of error messages.
    1) HTTP/1.1 502 Fiddler - DNS Lookup Failed
    2) HTTP/1.1 500 Internal Server Error
    3) HTTP/1.1 407 Proxy Authentication Required
    I have tried with my company network and tried with external internet connection also.
    Please help me.
    Thank you!
    Regards,
    Krishna

    Hi,
    you can create a simple rest api on the Azure cloud, and then try to use fiddler to do some test, so that we can exclude the environment issue.
    Regards

  • REST API: Create Deployment throwing error BadRequest (The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.)

    Hi All,
    We are trying to access the Create Deployment method stated below
    http://msdn.microsoft.com/en-us/library/windowsazure/ee460813
    We have uploaded the Package in the blob and browsing the configuration file. We have checked trying to upload manually the package and config file in Azure portal and its working
    fine.
    Below is the code we have written for creating deployment where "AzureEcoystemCloudService" is our cloud service name where we want to deploy our package. I have also highlighted the XML creation
    part.
    byte[] bytes =
    new byte[fupldConfig.PostedFile.ContentLength + 1];
                fupldConfig.PostedFile.InputStream.Read(bytes, 0, bytes.Length);
    string a = Encoding.UTF8.GetString(bytes, 0, bytes.Length);
    string base64ConfigurationFile = a.ToBase64();
    X509Certificate2 certificate =
    CertificateUtility.GetStoreCertificate(ConfigurationManager.AppSettings["thumbprint"].ToString());
    HostedService.CreateNewDeployment(certificate,
    ConfigurationManager.AppSettings["SubscriptionId"].ToString(),
    "2012-03-01", "AzureEcoystemCloudService", Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot.staging,
    "AzureEcoystemDeployment",
    "http://shubhendustorage.blob.core.windows.net/shubhendustorage/Infosys.AzureEcoystem.Web.cspkg",
    "AzureEcoystemDeployment", base64ConfigurationFile,
    true, false);   
    <summary>
    /// </summary>
    /// <param name="certificate"></param>
    /// <param name="subscriptionId"></param>
    /// <param name="version"></param>
    /// <param name="serviceName"></param>
    /// <param name="deploymentSlot"></param>
    /// <param name="name"></param>
    /// <param name="packageUrl"></param>
    /// <param name="label"></param>
    /// <param name="base64Configuration"></param>
    /// <param name="startDeployment"></param>
    /// <param name="treatWarningsAsError"></param>
    public static
    void CreateNewDeployment(X509Certificate2 certificate,
    string subscriptionId,
    string version, string serviceName, Infosys.AzureEcosystem.Entities.Enums.DeploymentSlot deploymentSlot,
    string name, string packageUrl,
    string label, string base64Configuration,
    bool startDeployment, bool treatWarningsAsError)
    Uri uri = new
    Uri(String.Format(Constants.CreateDeploymentUrlTemplate, subscriptionId, serviceName, deploymentSlot.ToString()));
    XNamespace wa = Constants.xmlNamespace;
    XDocument requestBody =
    new XDocument();
    String base64ConfigurationFile = base64Configuration;
    String base64Label = label.ToBase64();
    XElement xName = new
    XElement(wa + "Name", name);
    XElement xPackageUrl =
    new XElement(wa +
    "PackageUrl", packageUrl);
    XElement xLabel = new
    XElement(wa + "Label", base64Label);
    XElement xConfiguration =
    new XElement(wa +
    "Configuration", base64ConfigurationFile);
    XElement xStartDeployment =
    new XElement(wa +
    "StartDeployment", startDeployment.ToString().ToLower());
    XElement xTreatWarningsAsError =
    new XElement(wa +
    "TreatWarningsAsError", treatWarningsAsError.ToString().ToLower());
    XElement createDeployment =
    new XElement(wa +
    "CreateDeployment");
                createDeployment.Add(xName);
                createDeployment.Add(xPackageUrl);
                createDeployment.Add(xLabel);
                createDeployment.Add(xConfiguration);
                createDeployment.Add(xStartDeployment);
                createDeployment.Add(xTreatWarningsAsError);
                requestBody.Add(createDeployment);
                requestBody.Declaration =
    new XDeclaration("1.0",
    "UTF-8", "no");
    XDocument responseBody;
    RestApiUtility.InvokeRequest(
                    uri, Infosys.AzureEcosystem.Entities.Enums.RequestMethod.POST.ToString(),
    HttpStatusCode.Accepted, requestBody, certificate, version,
    out responseBody);
    <summary>
    /// A helper function to invoke a Service Management REST API operation.
    /// Throws an ApplicationException on unexpected status code results.
    /// </summary>
    /// <param name="uri">The URI of the operation to invoke using a web request.</param>
    /// <param name="method">The method of the web request, GET, PUT, POST, or DELETE.</param>
    /// <param name="expectedCode">The expected status code.</param>
    /// <param name="requestBody">The XML body to send with the web request. Use null to send no request body.</param>
    /// <param name="responseBody">The XML body returned by the request, if any.</param>
    /// <returns>The requestId returned by the operation.</returns>
    public static
    string InvokeRequest(
    Uri uri,
    string method,
    HttpStatusCode expectedCode,
    XDocument requestBody,
    X509Certificate2 certificate,
    string version,
    out XDocument responseBody)
                responseBody =
    null;
    string requestId = String.Empty;
    HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
                request.Method = method;
                request.Headers.Add("x-ms-Version", version);
                request.ClientCertificates.Add(certificate);
                request.ContentType =
    "application/xml";
    if (requestBody != null)
    using (Stream requestStream = request.GetRequestStream())
    using (StreamWriter streamWriter =
    new StreamWriter(
                            requestStream, System.Text.UTF8Encoding.UTF8))
                            requestBody.Save(streamWriter,
    SaveOptions.DisableFormatting);
    HttpWebResponse response;
    HttpStatusCode statusCode =
    HttpStatusCode.Unused;
    try
    response = (HttpWebResponse)request.GetResponse();
    catch (WebException ex)
    // GetResponse throws a WebException for 4XX and 5XX status codes
                    response = (HttpWebResponse)ex.Response;
    try
                    statusCode = response.StatusCode;
    if (response.ContentLength > 0)
    using (XmlReader reader =
    XmlReader.Create(response.GetResponseStream()))
                            responseBody =
    XDocument.Load(reader);
    if (response.Headers !=
    null)
                        requestId = response.Headers["x-ms-request-id"];
    finally
                    response.Close();
    if (!statusCode.Equals(expectedCode))
    throw new
    ApplicationException(string.Format(
    "Call to {0} returned an error:{1}Status Code: {2} ({3}):{1}{4}",
                        uri.ToString(),
    Environment.NewLine,
                        (int)statusCode,
                        statusCode,
                        responseBody.ToString(SaveOptions.OmitDuplicateNamespaces)));
    return requestId;
    But every time we are getting the below error from the line
     response = (HttpWebResponse)request.GetResponse();
    <Error xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
      <Code>BadRequest</Code>
      <Message>The specified configuration settings for Settings are invalid. Verify that the service configuration file is a valid XML file, and that role instance counts are specified as positive integers.</Message>
    </Error>
     Any help is appreciated.
    Thanks,
    Shubhendu

    Please find the request XML I have found it in debug mode
    <CreateDeployment xmlns="http://schemas.microsoft.com/windowsazure">
      <Name>742d0a5e-2a5d-4bd0-b4ac-dc9fa0d69610</Name>
      <PackageUrl>http://shubhendustorage.blob.core.windows.net/shubhendustorage/WindowsAzure1.cspkg</PackageUrl>
      <Label>QXp1cmVFY295c3RlbURlcGxveW1lbnQ=</Label>
      <Configuration>77u/PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0NCiAgKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KDQogIFRoaXMgZmlsZSB3YXMgZ2VuZXJhdGVkIGJ5IGEgdG9vbCBmcm9tIHRoZSBwcm9qZWN0IGZpbGU6IFNlcnZpY2VDb25maWd1cmF0aW9uLkNsb3VkLmNzY2ZnDQoNCiAgQ2hhbmdlcyB0byB0aGlzIGZpbGUgbWF5IGNhdXNlIGluY29ycmVjdCBiZWhhdmlvciBhbmQgd2lsbCBiZSBsb3N0IGlmIHRoZSBmaWxlIGlzIHJlZ2VuZXJhdGVkLg0KDQogICoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioNCi0tPg0KPFNlcnZpY2VDb25maWd1cmF0aW9uIHNlcnZpY2VOYW1lPSJXaW5kb3dzQXp1cmUxIiB4bWxucz0iaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS9TZXJ2aWNlSG9zdGluZy8yMDA4LzEwL1NlcnZpY2VDb25maWd1cmF0aW9uIiBvc0ZhbWlseT0iMSIgb3NWZXJzaW9uPSIqIiBzY2hlbWFWZXJzaW9uPSIyMDEyLTA1LjEuNyI+DQogIDxSb2xlIG5hbWU9IldlYlJvbGUxIj4NCiAgICA8SW5zdGFuY2VzIGNvdW50PSIyIiAvPg0KICAgIDxDb25maWd1cmF0aW9uU2V0dGluZ3M+DQogICAgICA8U2V0dGluZyBuYW1lPSJNaWNyb3NvZnQuV2luZG93c0F6dXJlLlBsdWdpbnMuRGlhZ25vc3RpY3MuQ29ubmVjdGlvblN0cmluZyIgdmFsdWU9IkRlZmF1bHRFbmRwb2ludHNQcm90b2NvbD1odHRwcztBY2NvdW50TmFtZT1zaHViaGVuZHVzdG9yYWdlO0FjY291bnRLZXk9WHIzZ3o2aUxFSkdMRHJBd1dTV3VIaUt3UklXbkFrYWo0MkFEcU5saGRKTTJwUnhnSzl4TWZEcTQ1ZHI3aDJXWUYvYUxObENnZ0FiZnhONWVBZ2lTWGc9PSIgLz4NCiAgICA8L0NvbmZpZ3VyYXRpb25TZXR0aW5ncz4NCiAgPC9Sb2xlPg0KPC9TZXJ2aWNlQ29uZmlndXJhdGlvbj4=</Configuration>
      <StartDeployment>true</StartDeployment>
      <TreatWarningsAsError>false</TreatWarningsAsError>
    </CreateDeployment>
    Shubhendu G

  • RESTful Authentication to Service Bus for Windows Server - Multiple Scopes?

    We currently have a three-node farm set up and have tested authentication and sending/receiving messages to each node individually, with which we've had no issues.  However, we use NetScaler as a network load balancer, and once we configured NetScaler
    in front of the three nodes we've encountered issues with RESTful authentication using OAuth.
    The issue appears to be that when specifying a single scope (ex. for "server1/namespace"), if NetScaler routes the request to server1 it will provide a token back but if routed to server2 or server3 they fail with the following warning event logged:
    Security token service finished processing a request with failure. TrackingId: (guid + server receiving request), Absolute Uri: https://(load balancer uri):9355/namespace/$STS/OAuth/, Message: System.UnauthorizedAccessException: Invalid user.
       at Microsoft.Cloud.ServiceBus.Security.OAuthAuthenticationRequest.Parse(Message message, Int32 maxArrayLength)
       at Microsoft.Cloud.ServiceBus.Security.SecurityTokenServiceProtocolHandler.GetTokenAsyncResult.ParseAuthenticationRequest(Message requestMessage, Int32 maxArrayLength)
       at Microsoft.Cloud.ServiceBus.Security.SecurityTokenServiceProtocolHandler.GetTokenAsyncResult.<GetAsyncSteps>d__2c.MoveNext()
       at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.EnumerateSteps(CurrentThreadType state)
       at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.Start()
    After reading the OAuth specifications, I tried changing the scope to be a space-delimited list of all three nodes (ex: "server1/namespace server2/namespace server3/namespace"), but this failed with a similar event being logged, though this one
    specifying that the namespace could not be resolved for the scope provided.  
    When the server receiving the request matches the server in the scope and a token is provided, sending/receiving appears to function as normal across all three nodes.  Is there a different way to specify multiple servers in the scope or otherwise solve/mitigate
    this issue?  I've read a couple threads regarding the support and use of NLB for load-balancing -- I think our infrastructure/network teams would prefer using NetScaler if possible, though any suggestions are welcome.  Thanks!

    Hi,
    Since this issue is more related to Microsoft Azure Pack. I move it to the Azure Pack forum. It is appropriate and more experts will assist you.
    Regards,
    Jambor
    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.

  • Sending attachments/binary data from flex to Restful APIs

    Hi,
    We have a requirement of sending the files (or binary data) from flex GUI to Restful services(backend APIs). We are using flex HTTPService component to invoke the rest apis. The Rest APIs are designed to accept the multipart/mixed data which can support the binary data as well.
    Can any one help us understand, how can we send the multipart/mixed OR multipart/form-data  from flex to backend using the HTTPService. Or is there a better way to send the mixed data from Flex GU to Restful APIs.
    Request you to please respond to this at the earliest as this is very urgent.
    Thanks and Regards,
    --Revanth

    Has anyone worked on this issue?? i wanted a quick response as we are in the middle of the development and this is a r
    equirement
    Thanks
    -Revanth

  • Receive location using SBMessaging adapter disabled when Azure service bus is down

    Does anybody experience  SBMessaging receive locations are disabled when Azure service bus is unavailable with a MessagingCommunicationException?  Is this an expected behavior / 'by design'? We see this exception a few times a day.  I don't
    see any retry attempts based on the event log.  Our current solution is to have a powershell script that enables the receive location if it's disabled.  This script runs every 15 minutes.  Below is a sample of the error in the event log.
    The receive location "Warnings_SB_New" with URL "XXXXXX" is shutting down. Details:"System.ServiceModel.EndpointNotFoundException: Error during communication with Service Bus. Check the connection information, then retry. --->
    Microsoft.ServiceBus.Messaging.MessagingCommunicationException: Error during communication with Service Bus. Check the connection information, then retry. ---> System.ServiceModel.CommunicationObjectFaultedException: Internal Server Error: The server did
    not provide a meaningful reply; this might be caused by a premature session shutdown..TrackingId:bb29d71c-a4d5-430c-a2d9-8a2e3acfad1d, Timestamp:5/9/2014 2:38:19 AM

    Hi R. de Veen,
    Below as the script we used with BTS2013.  We created a command line and setup a scheduled task.  Again, we don't use this script with BTS2013R2 since we do not have this issue with BTS2013 R2.
    # Sample from https://github.com/tomasr/bts-ps-scripts/blob/master/bts-ports.ps
    # declare our parameters: the action to take
    param(
    [string] $action=$(throw 'need action'),
    [string] $name
    $ctpRLs = @(
    'Errors_SB_New'
    #,'Error_OldTopic_OldLoggingDB'
    ,'Information_SB_New'
    ,'Warnings_SB_New'
    #,'Information_NewTopic_OldLoggingDB'
    ,'Critical_SB_New'
    #'Critical_OldTopic_OldLoggingDB'
    # functions for pinging receive locations
    function uti-ping-recv-loc
    foreach ($rl in $ctpRLs)
    Write-Host "`n"
    if (( $rl -eq '') -or ($rl -eq $null))
    throw "Receive location cannot be blank."
    #Validate if this is a valid receive location
    $recvloc = get-wmiobject MSBTS_ReceiveLocation `
    -namespace 'root\MicrosoftBizTalkServer' `
    -filter "Name='$rl'"
    if ($recvloc -eq $null)
    Write-Host "'$rl' does not exist. Skipping..." -foregroundcolor red -backgroundcolor black
    else
    Write-Host "Ping '$rl'..."
    if ($recvloc.IsDisabled)
    Write-Host "Restarting '$rl'..."
    bts-set-recv-loc-status -name $rl -status 'enable'
    Start-Sleep -s 10
    if ($recvloc.IsDisabled)
    Write-Host "Failed to enable $rl. Check the event log for more information." -foregroundcolor red -backgroundcolor black
    else
    Write-Host "'$rl' is enabled."
    else
    Write-Host "'$rl' is enabled."
    $i++
    Write-Host "`nComplete!!!`n`n" -foregroundcolor green -backgroundcolor black
    # enable or disable the specified
    # receive location
    function bts-set-recv-loc-status($name, $status)
    $recvloc = get-wmiobject MSBTS_ReceiveLocation `
    -namespace 'root\MicrosoftBizTalkServer' `
    -filter "Name='$name'"
    switch ( $status )
    'disable' { [void]$recvloc.Disable() }
    'enable' { [void]$recvloc.Enable() }
    # controls a send port
    function bts-set-send-port-status($name, $status)
    $sendport = get-wmiobject MSBTS_sendPort `
    -namespace 'root\MicrosoftBizTalkServer' `
    -filter "Name='$name'"
    switch ( $status )
    'start' { [void]$sendport.Start() }
    'stop' { [void]$sendport.Stop() }
    'enlist' { [void]$sendport.Enlist() }
    'unenlist' { [void]$sendport.UnEnlist() }
    function is-valid-opt($check, $options)
    foreach ( $val in $options )
    if ( $check -eq $val ) {
    return $true
    # main script
    switch ( $action )
    'ping-recv-loc' {
    uti-ping-recv-loc
    Write-Host "`n"
    Write-Host "Syntax: .\RestartELCRLs.ps1 ping-recv-loc"
    Write-Host "`n"

  • BizTalk 2013 SB-Messaging Adapter: Unable to receive messages from a Azure service bus Subscription

    Hi,
    I am trying to receive messages from a Azure service bus subscription using SB-Messaging Adapter in BizTalk Server 2013 but getting the following error.
    "The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
    Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
    It seems the error is related with Service Bus Authentication and Authorization with the Access Control Service. Can anybody help me out if I am missing something here? 
    Also for consuming the AWSB (namespace, topic name, subscription name, Issuer name, Issuer Key) I have referred the following link
    http://soa-thoughts.blogspot.in/2013/02/biztalk-server-2013-new-adapters-series.html
    Thanks!
    Regards,
    Gautam
    gautam

    Hi,
    When I am trying to receive the same messages from a Azure service bus subscription using .net (C#) client,
    BusSubscriberbusSubscriber =
    newBusSubscriber("TestTopic2",
    "Endpoint=sb://overcasb.servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=wqYlT4yHZimeUZacH+1V1hj/ZrKu7zK9ELaaLYDxqjc=",
    "AssetMovement",
    "AssetMovement");
    I am getting the same error here also.
    "The token provider was unable to provide a security token while accessing 'https://overcasb-sb.accesscontrol.windows.net/WRAPv0.9/'.
    Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
    By setting  <defaultProxy useDefaultCredentials="true" /> in appconfig, I got rid of the above error. And now its working fine with .net(C#) client.
    <configuration>
      <system.net>
        <defaultProxy useDefaultCredentials="true" />
      </system.net>
    </configuration>
    The same setting I tried in BTSNTSvc.exe config file and ofcourse restarted the host instance but still getting the same error. Any help?
    gautam

  • Receiving files from site using oracle service bus

    Hi,
    I need to create a solution, using oracle service bus to access a webpage, make authentication, and then receive a zip file. This is possible using osb?
    Regars!

    Sounds like you just need a "Messaging type" business service (http based) which points to the ZIP file URL. Input type "none", output type "binary" and with a service account attached with the username/pwd for the ZIP file.... but once you have the zip file binary content - then what do you want to do with it in the message flow ?

  • Can we use same Business Service for Sender and Receiver

    Can we use same Business Service for Sender and Receiver

    Hi
    In addition to the above infomation explaining about the Business Service..
    Business Service: Address an abstract business entity as the sender or receiver of messages.
    Using a business service, you can define the technical or business subunits of the companies involved and then assign them the relevant interfaces.
    The business services are used when configuring cross-company processes also..
    regards
    Kishore

  • Pass Parameter Through REST API into PivotChart in Excel Services 2013

    Is it possible to pass a parameter through the REST API into the filter of a PivotChart and return a filtered view of the chart?  I've figured it out mechanically, and can pass the parameter in - but the chart doesn't refresh with the new filter.
    For the record, I've looked at all of the online documentation on passing parameters and you'll note those all depict passing parameters into a table - not a PivotTable.
    Curious if Excel Services 2013 has made any progress in that regard.
    Thanks in advance...
    Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

    Obviously it's not working for pivot tables/charts. Just found this in the SharePoint logs:
    04/06/2014 22:21:36.01 w3wp.exe (0x0920)                      
    0x1428
    Excel Services Application     Excel Calculation Services    
    d64g Medium  
    UserOperation.Dispose: Disposing Microsoft.Office.Excel.Server.CalculationServer.Operations.RestChartPngOperation, WebMethod: ProcessRestRequest.
    09ae849c-bf78-50fd-d9b9-915fd27bf5e1
    04/06/2014 22:21:36.01 w3wp.exe (0x0920)                      
    0x1428
    Excel Services Application     Excel Calculation Services    
    ecc4 Medium  
    ExcelServiceBase.EndProcessOperation: Found an exception on the AsyncResult of an operation which has not been departed from. Exception is Microsoft.Office.Excel.Server.CalculationServer.ExcelServiceBase+EcsFaultException:
    Cannot change cells in a PivotTable report. (Fault Detail is equal to Microsoft.Office.Excel.Server.ExcelServerMessage).
    09ae849c-bf78-50fd-d9b9-915fd27bf5e1
    Disappointing...

Maybe you are looking for

  • Cost of Sales activation in Controlling area

    Hi Friends, Please let me know the IMG activity where we can check if 'Cost of sales accounting' is active in a controlling area or not. Please help me navigate. Thanks & regards, Shilpi

  • I am getting a message Internal Error Instacast keys not defined when I open one of the local tv news apps on my iPad. What do I need to do to fix it?

    I am getting an error message "Internal error Instacast Keys not defined" when I open a news app from one of my local tv stations. What is causing this?

  • Doubt on insert

    Hi, In my procedure I am having some values in variables, isit possible to insert directly into table like below: inside proc: l_delayed_mins := (l_run_time - l_avg_time); l_run_time := (l_run_time + 30); insert into test values (l_run_time,l_delayed

  • Ple help me asap how to use cose?

    hi frids i created view for  BSEG and BKPF  bec  in both tables i have common key comp_code is there. now i created datasource for this now i need to add another 3 fields. ECC field     table BKLAS     MBEW STPRS     MBEW STPRS     MBEW can i create

  • Bank account number for Brazil

    All, I need to set up some house banks for Brazil, the problem is they consist out of 22 digits, while maximum lenght for field bank account in SAP is 18 digits. I already tried to llok on OSS Notes but couldn't find anything related to my problem. A