SP 2013 Consuming WCF services without credentials

I want to allow clients to consume my wcf service hosted in sharepoint without asking for credentials escpecially that the client uses php and he have problem authorizing.
while using .net the authentication is working fine.
please advise..

Hi husseinsa,
This issue should be the authentication related in IIS, please enable “Basic Authentication” in IIS, which is in security settings of the directory, and check the result again.
Thanks,
Qiao Wei
TechNet Community Support

Similar Messages

  • How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file?

    How can we send only one message to a WCF service at a time? How we can limit the number of concurrent calls to a WCF service without use the Singleton pattern or without do the change in BizTalk Configuration file? Can we do it by Host throttling?

    Hi Pawan,
    You need to use WCF-Custom adapter and add the ServiceThrottlingBehavior service behavior to a WCF-Custom Locations.
    ServiceThrottlingBehavior.MaxConcurrentCalls - Gets or sets a value that specifies the maximum number of messages actively processing across a ServiceHost. The MaxConcurrentCalls property specifies the maximum number of messages actively
    processing across a ServiceHost object. Each channel can have one pending message that does not count against the value of MaxConcurrentCalls until WCF begins to process it.
    Follow MSDN-
    http://msdn.microsoft.com/en-us/library/ee377035%28BTS.10%29.aspx
    http://msdn.microsoft.com/en-us/library/system.servicemodel.description.servicethrottlingbehavior.maxconcurrentcalls.aspx
    I hope this helps.
    Rachit
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • BizTalk 2010 Error consuming WCF service metadata. Object reference not set to an instance of an object.

    "Error consuming WCF service metadata.
    Object reference not set to an instance of an object."
    I have no clue what happen to my BizTalk.  I checked all the below forum but m clueless why BTS not consuming WCF through Generated Items. I tried both metadata exhange endpoint and metadata file through
    svcutil. but all my wcf services are working fine with .net C# client.
    http://blogs.msdn.com/b/appfabriccat/archive/2010/11/23/how-using-duplex-mep-to-communicate-with-biztalk-from-a-net-application-or-a-wf-workflow-running-inside-appfabric-part-1.aspx
    http://msdn.microsoft.com/en-us/library/bb226552.aspx
    http://msdn.microsoft.com/en-us/library/bb798122.aspx
    http://masteringbiztalkserver.wordpress.com/tag/wcf-service-consuming-wizard/
    I reinstall the WCF lob Adapter SDK to my BizTalk VM but still no clue. no erros in event viewer nothing.
    http://www.abdulazizfarooqi.wordpress.com Abdul Aziz Farooqi [BizTalk & SharePoint Consultant] MCPD Web & MCPD SharePoint 2010

    Thanks from me too Neal - this worked from me. I wan't able to consume directly from exchange because the certificate is broken. However, I was able to convince Google Chrome to let me view the /Services.wsdl and from there I could save the .wsdl and two
    .xsd files. In my case the problem lay at the top of the .wsdl file. I changed the following:
    <wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
                <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
            </xs:schema>
    by giving the same targetNamespace as assigned in the <wsdl:definitions element, so I ended up with
    <wsdl:types>
            <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/exchange/services/2006/messages">
                <xs:import namespace="http://schemas.microsoft.com/exchange/services/2006/messages" schemaLocation="messages.xsd"/>
            </xs:schema>

  • How to update Biztalk consumed WCF service in biztalk

    Hello All,
    I have consumed WCF service in BizTalk using BizTalk WCF Service Consuming Wizard by -> ADD -> Add Generated Item option.
    This created few Schema files and one orchestration.
    Now the other team made changes in datatype on two field from int to string.
    how to update this BizTalk Consumed WCF service to reflect these changes ?
    Thanks,
    Nilesh
    Thanks and Regards, Nilesh Thakur.

    Hold on!
    Are you sure they only changed the data type on two fields? If so, all you need to do is change the type in the schemas you already have. For such a small change, you don't need to regenerate.
    Also, if that's the only change, they type setting on two fields, you should not get any Map or Orchestration Errors. Well, you might get an illegal cast error of one of those fields is Distinguished and you doing an assignment in an Expression Shape.
    Also, keep in mind, the Schemas are the only really useful things created by the Wizard, I have never used the Orchestration, it's just a Port Type definition.  So, you can always generate into a new Project and compare/replace the Schema.  So
    long as you keep the .Net Type Name, you should be ok.
    If you are still getting Map and Orchestration errors, then they changed much more than two field types.  If you post the actual errors, we can provide some guidance.

  • How to consume WCF service method in flex 4

    Hi,
    I am working on CS Extension builder developing InDesign flex UI and need to consume WCF service methods developed in .Net, even though there is couple of google result closed to requirement, one of them is:
    http://www.giantflyingsaucer.com/blog/?p=20;
    but it accept the argument only string or xml but in my scenerio method retrives the List of items and return also the list of Item.
    Can some one help me to figure it out.
    Mac 

    try www.themidnightcoders.com , they might have something you need and I find their software easy to use, plus it's free, even for corporations.

  • No transport error while consuming WCF service in a REST way

    Hi,
    Here is a small article on when we usually face No Transport error and how to get rid of it.
    I recently worked on a sample application using “app for Office” (New in Visual Studio 11.0)
    What is “app for Office”?
    An app for Office is basically a webpage that is hosted inside an Office client application. You can use apps to extend the functionality of a document, email message, meeting request, or appointment. Apps
    can run in multiple environments and clients, including rich Office desktop clients, Office Web Apps, mobile browsers, and also on-premises and in the cloud.
    What can an app for Office do?
    An app for Office can do pretty much anything a webpage can do inside the browser, such as the following:
    Provide an interactive UI and custom logic through      JavaScript. (Develop UI using HTML and JavaScript)
    Use JavaScript frameworks such as jQuery.
    Connect to REST endpoints and web services via      HTTP and AJAX.
    Run server-side code or logic, if the page is      implemented using a server-side scripting language such as ASP or PHP.
    As “app for Office” doesn’t have an option to write server side scripting (unlike code behind or in-line coding feature in ASP.NET/MVC) we will have to go for web service or WCF service and consume the service
    using any JavaScript framework like Jquery.
    I wrote a simple WCF service to hook up with server side code and consumed the service using Jquery as follows
    $(document).ready(function () {
    $.ajax({
    type: "GET",
    url: "http://localhost/MyService.svc/rh/data?id=" + $('#sampleType').val(),
    processData: false,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    crossDomain: true,
    success: function (data) {
    alert(data)
    error: function (xhr, status, error) {
    alert(error);
    I encountered an error saying “No Transport” when I executed the client application.
     I did some investigation on this and found out the root cause that cross-domain request was disabled. But I was really not sure whether it was at my WCF service end or “app for Office” client end. I added
    Client Access policy and Cross-domain-policy xml files to WCF service in order to enable cross-domain request 
    so that service will accept any type requests sent form different domains.
    Client Access policy
    <?xml version="1.0" encoding="utf-8" ?>
    <access-policy>
    <cross-domain-access>
    <policy>
    <allow-from http-request-headers="*">
    <domain uri="*"/>
    </allow-from>
    <grant-to>
    <resource include-subpaths="true" path="/"/>
    </grant-to>
    </policy>
    </cross-domain-access>
    </access-policy>
    Cross-domain-policy
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-http-request-headers-from domain="*" headers="*"/>
    </cross-domain-policy>
    Both the policies should be in different XML files
    But this didn’t solve my problem. After a little bit more investigation I found exactly where and how to enable-cross domain requests.
    Solution
    We need to enable cross-domain requests in environments that do not support cross-domain requests.
    “Cors is equal to true if a browser can create an XMLHttpRequest object and if thatXMLHttpRequest
    object has a withCredentials property. To enable cross-domain requests in environments that do not support cors yet but do allow cross-domain XHRrequests (windows gadget, etc), set $.support.cors = true;”
    You just have to add jQuery.support.cors = true; in your client scripting and it works perfectly fine.
    [Cors- Cross-Origin Resource Sharing]
    A simple example:
    $.support.cors = true;
    $(document).ready(function () {
    $.ajax({
    type: "GET",
    url: "http://localhost/MyService.svc/rh/data?id=" + $('#sampleType').val(),
    processData: false,
    contentType: "application/json; charset=utf-8",
    dataType: "json",
    crossDomain: true,
    success: function (data) {
    alert(data)
    error: function (xhr, status, error) {
    alert(error);
    Hope this will be helpful.
    Thanks

    This is very good technich to resolve the problem. but this is not working in Google chrome or Firfox . can any one help me.

  • Consuming Web Service Without Proxy

    Hi, it is possible to consume a web service in JSP page without using any proxy (deployable or standalone)?
    Thanks.

    Thanks for the response.  Although not sure that is necessarily the 'correct' way ("Or,
    enter a PSCredential object, such as one generated by the Get-Credential cmdlet.")
    but it had no effect either way.  I get the same error.

  • How to consume web service without any middleware from abap RFC

    Hi Experts,
    I have a  RFC and i need to send the data to a web service.
    So, I came to know that i need to create a proy for that.
    While creating proxy what shd i choose,
    URL  or
    http  or Local file
    or Enterprose service repositort
    please give some steps.
    Thnak You.

    Hi,
    You need to download the WSDL file on your local desktop and choose the Local file option.
    Regards,
    Vikas

  • Cross Domain error for Silverlight + MVC application with self hosted WCF service on azure

    Hi,
    We are migrating existing Silverlight application to MVC; existing Silverlight application is hosted on
    Azure which is consuming self-hosted WCF service. For authentication we have implemented
    ADFS with WIF (passive). The cloud service (<myWebSite>.cloudapp.net) is C Name to (<myWebSite>.<myDomain>.com) and we 
    are consuming  WCF service at <myWebSite>.cloudapp.net/<myService>.svc, as we were getting “Cross Domain” error so we have added “clientaccesspolicy.xml” at the root of “WEB ROLE”.
    Existing Silverlight application works fine but the problem occurred when we deploy our migrated application to the same cloud service. We are getting a “Cross Domain” error.
    The same migrated application works fine on UAT environment, the only difference is UAT environment is
    without ADFS WIF implementation.
    Migrated application is half Silverlight and half MVC with initial landing page is Silverlight. MVC web role is used to host the service i.e. .SVC . To go to SL landing page , redirected from home controller. Following is being observed in fiddler for this
    application
    Existing Silverlight application -
    After authentication with ADFS it redirect to Silverlight landing page.
    Before calling service method it looks for “clientaccesspolicy.xml”
    In response header we are getting the content of “clientaccesspolicy.xml”
    And after this everything works fine
    Migrated Silverlight-MVC application –
    After authentication with ADFS it redirects to “HomeController” and from there we are redirecting to Silverlight landing page.
    Before calling service method it looks for “clientaccesspolicy.xml”
    In response header we are getting  following content - “https://federation-sts.<myDomain>.com/adfs/ls/?wa=wsignin1.0&amp;
    wtrealm=https%3a%2f%2f<myWebSite>.<myDomain>.com&amp;
    wctx=rm%3d0%26id%3dpassive%26ru%3d%252fclientaccesspolicy.xml&amp;wct=2014-03-17T10%3a36%3a04Z”
    4.Throw “Cross Domain” error.
    Also we have added filter in
    RouteConfig
    for .xml file
    routes.IgnoreRoute("{*allxml}",
    new { allxml = @".*\.xml(/.*)?" });
    NOTE: There is no configuration change apart from MVC configuration.
    We have done RDP to web role and found that “clientaccesspiolicy.xml” is present at “E:\approot” location and it is also accessible at “https://<myWebSite>.<myDomain>.com/clientaccesspolicy.xml”.
    Please help
    Thanks,
    Rahul P

    Hi,
    Please try to configure the cross domain policy file to allow public read access (that is, access it without federation requirement), make sure you can access the address
    http://something/clientaccesspiolicy.xml directly in a browser
    without redirecting to check whether the cross domain policy file could be anonymous accessed (Please start a new browser session and make sure you're
    not logged in. Then test the cross domain policy file.).
    Best Regards,
    Ming Xu
    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.

  • Consuming SOAP service

    Hello All,
    In my application I am consuming SOAP service by Schema Project -> Right Click -> Add Generated Items.
    This Add Orchestrations, Binding, Schema to my Project.
    Now in Schema I can see :
    GetApplicationDeatial
    CandidateID -> string
    GetApplicationDeatialResponse
    CandidateName -> string
    CandidateNumber -> string
    GetAllRefrenceData
    GetAllRefrenceDataResponse
    GetAllRefrenceDataResult
    KeyValueOfintstring
    Key int
    Value string
    In my application controller will call BizTalk hosted service and will send query to BizTalk BizTalk will call Database service and will fire query on database and response will be again send back to controller.
    GetApplicationDetail is method name and having parameter name candidateID I will create schema for this and will create Map
    and will call this schema and maps in orchestration to send the query to database service the response will capture in method name GetApplicationDeatialResponse and will create one more schema and map and will handle the response back.
    There is as method named GetAllRefrenceData this method is not having any child node and database service will fire query on one Table referencedata ( select * from referencedata ) how to handle this ? how send request to Database service ? what will be
    scheam and map for this ?
    The replay of this request will be handle by method GetAllRefrenceDataResponse which will contain index of referenceData in it.
    Thanks, Nitin
    Thanks and Regards, Nitin.

    So its easy to achieve it . What basically you need to consume the.Net hosted Database service first .
    There are multiple of articles which can help you to guide "How to consume web service/WCF service in BizTalk" some of them are listed below
    Consuming WCF service in Orchestration in BizTalk
    Consuming WCF Service in BizTalk 2010 Orchestration
    BizTalk and WCF: Part I, Operation Patterns
    Once you have successfully consumed and created the Orchestration ,you have option to expose Orchestration or schema as WCF service.

  • How to properly pass credentials from WCF service to another?

    I have a client application that calls a WCF service and passes client credentials like so:
    OrderService.OrderServiceClient sc = new OrderService.OrderServiceClient();
    sc.ClientCredentials.UserName.UserName = userName;
    sc.ClientCredentials.UserName.Password = password;
    The service uses custom authentication and validates the user/pass combination against my SQL db. All is well.
    Now I have another WCF service, lets say Customer. In the OrderService I'm adding a Service Reference to the CustomerService and in the middle of one of the OrderService methods I want to call a CustomerService method. How can I pass the credentials? Please
    note that the Customer and Order service ARE on the same IIS server. I am also using custom authentication.
    It looks like I can access the username from the ServiceSecurityContext like so:
    ServiceSecurityContext.Current.PrimaryIdentity.Name
    Do I then have to make a trip back to the DB to get the password to send to the CustomerService call since it is not available? Seems silly... Any help is much appreciated. Thanks.
    Should I be looking into impersonation?

    Hi BBauer42,
    Based on your description, I know that your scenario is Client-> OrderService->(Add service reference)CustomerService, then it seems that you want to implement the function like the double hop authentication. In my mind I think you try
    to use the impersonation. The impersonation is a common technique that WCF services use to assume the original caller's identity in order to authorize access to service resource. In order to implement use the impersonation, we need do some configuration in
    both service and IIS side, for more information, please try to refer to the following articles:
    #Delegation and Impersonation with WCF:
    https://msdn.microsoft.com/en-us/library/ms730088(v=vs.110).aspx .
    #WCF: Learning Impersonation:
    http://blogs.msdn.com/b/saurabs/archive/2012/07/16/wcf-learning-impersonation.aspx .
    Best Regards,
    Amy Peng
    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.

  • ERROR_NOT_FOUND: there is no credentials associated with the given resource name. + WCF Service while Retrieving WindowsCredentials

    Hi guys,
    I am struck with a problem while retrieving the Windows Credentials from WCF service.
    1. I have used WSHttpBinding.
    2. I have configured the Website and App pool to run under a specific user who is an Administrator for the server.
    3. I have created the windows Credential of Generic type using Credential manager with the same user.
    4. I configured the Website to allow only Anonymous and Windows Authentication in IIS (IIS Version: 8.5).
    5. I tried the same code in the same server by logging into server with same user and debug the service. The service is returning the windows Credential requested.
    6. But i am unable to retrieve the Windows Credentials from the same code when published in IIS in the same server.
    i configure the Security in Server and client as below:
       <bindings>
          <wsHttpBinding>
            <binding name="wsHttpEndpointBinding">
              <security mode="Transport" >
                <transport clientCredentialType="Windows"/>            
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
    7. I tried to read the error code generated by Credential Manager API from  my code and it returned the below error when i am accessing the deployed service.
    ERROR_NOT_FOUND: there is no credentials associated with the given resource name.
    8. I have also checked this with other environments out side my virtual machine with the same code and config file. All environments it is working fine except my environment. Can any body help me out on this...

    Hi pavan kumar,
        As per this case, I have shared the details below :
    1.where you got stuck & receive error message whether in service side or client side ?
    2.if its in service side, then I suggest you to enable tracing on wcf service for debugging purpose to findout the root cause.
    3.For configure tracing refer here "https://msdn.microsoft.com/en-us/library/ms733025.aspx"
    4.To know about WCF Extensibility – System.Diagnostic Tracing ,then refer the below link
    http://blogs.msdn.com/b/carlosfigueira/archive/2011/08/02/wcf-extensibility-system-diagnostic-tracing.aspx
    5.If its in Client side, Please make sure that the client is in the same or trust domain as service. 

  • Lync 2013 UCMA WCF Web Service

    What I want to do is create a WCF service just to get the availability of a user. I have gone through the following quick-start example: Name: SubscribePresence http://msdn.microsoft.com/en-us/library/office/dn454835(v=office.15).aspx
    I have managed to do this but i feel that its not the most efficient way to just get a users availability.
    At the moment I create a end point subscribe to a users presence and wait for the response to come back and from that i get the users availability. (I'm simplifying this down).
    What I would ideally like though is just to quickly get a users availability without subscribing to a users presence and close the connection as soon as i have retrieved the availability.
    I was wondering if anyone knows of an example that i can have a look at or that they have implemented themselves
    any advice would be appreciated

    Hi,
    As the issue is more related to Lync SDK, you might also post the issue on Lync MSDN forum and more developing expert will help to verify if this can be achieved using Lync SDK. Thank you for your understanding.
    http://social.msdn.microsoft.com/Forums/en-US/communicatorsdk/threads
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Consuming Orchestration Exposed WCF service On remote system.

    Hello All ,  I am new to BizTalk, so bear with me 
    I have created an orchestration for Insert operation to DB and Exposed it as WCF service, finally deployed in IIS fine.
    but whenever I am trying browse wsdl of service its prompting as : Network Error (dns_unresolved_hostname)  
     Your requested host "DomainName" could not be resolved by DNS.
    url : http://domainName/Biztalk_PaymentTransaction_Process_PaymentTransaction_Port_RcvTransaction.svc?singleWsdl .
    I just replaced that domainName and put IP there I am able to browse my service, worked fine on Local system.
    but while trying with same url replacing domainname with
    IP on remote system, its throwing Exception as below
    There was no endpoint listening at http://DomainName/Biztalk_PaymentTransaction_Process_PaymentTransaction_Port_RcvTransaction.svc
    that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
    please Explain what I need to do to resolve this,
    Do I'm missing something or what extra I need to DO...
    Thanks to all.

    Associate the domain name and the IP of the server where the service is hosted in the host file.
    Goto the server where the service is hosted.
    Goto the server’s host file in %SystemRoot%\system32\drivers\etc\hosts
    Take a backup of the host file before you edit it.
    Add the following entry as the last line in the host file, replacing in it with the actual IP Domain name.
    xxx.xxx.xxx.xxx YourdomainName.com
    where xxx.xxx.xxx.xxx = IP and YourdomainName.com = domain name
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Java client for WCF STS service without netbeans etc.?

    I want to communicate with a WCF service that uses an STS. I want to know what I am doing, so I don't want  to use netbeans. If I have to use netbeans to figure it out for myself, can you help me interpret this part of the documentation for metro:
    https://metro.java.net/guide/ch12.html#gghnt
    How do I retrieve the certificate from the .NET service to use if I follow the instructions?
    Or, other suggestions would be helpful.
    Thanks

    I'm a bit confused why you're using an Applet to do this as it will require you to serve the Applet from the same server as where the .Net web service lives.
    If I was doing it I'd take advantage of the web service capabilities built into Java 6 (the only supported version from Sun). The wsimport tool would be able to reverse engineer the WSDL from the .net web service and generate client side classes for you.

Maybe you are looking for