You must Sign In to post a response.
  • Category: Silverlight

    How to comsume Thirdparty Webservice in Silverlight

    Are you looking for a way to comsume Thirdparty Webservice in Silverlight ? then read this thread to know how to consume it

    I am trying to use TaxCloud webservices ( for getting TaxRates,in my LocalHost using Vb.Net in Silverlight

    I added TaxCloud Webservice reference in my project and trying to access Lookup function.

    Address of Webservice :

    By using following service we will TaxRate for the selected address. I am passing values as below

    Dim TaxCloudService As New TaxServiceReference.TaxCloudSoapClient

    Dim Address As New Goldcrm.BillingAdvisor.TaxServiceReference.Address

    Address.Address1 = "1666 6th Street"
    Address.City = "Boulder"
    Address.State = "CO"
    Address.Zip4 = 80302

    TaxCloudService.LookupAsync("370D0480", "81C1F6F1-E3EF-41FD-95CD-AFF50740F6D2", "", "", Nothing, Address, Nothing, False, Nothing, Nothing)

    I am able to access and run Webservice but on completed event I am getting following error message

    An error occurred while trying to make a request to URI ''.
    This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services.
    You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent.
    This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute.

    We already have ClientAccessPolicy.xml in GSP.WEB root
    <?xml version="1.0" encoding="utf-8"?>
    <allow-from http-request-headers="*">
    <domain uri="http://*"/>
    <domain uri="https://*"/>
    <resource path="/" include-subpaths="true"/>

    I tried in google for this all the websites are saying to include ClientAccessPolicy.xml file root file iam having that file .

    Do you have any idea how to use Webservice proxy file in project ?
    i had created proxy file for Taxcloud webservice.

    still I am getting above error can you please check once and help me how i can fix issue.
    Iam struggling with this issue since 1 week please help me.
  • #744479
    Hai Krishna,
    Did you check the service is up during your requests.Because sometimes it happens that the request made to the service and when the service is down, it will show this message.
    Also do you have the valid credentials to access the service? it needs a valid user name and password or unique id to connect to the service.
    If still you are getting the issue, you can talk to the service support guys as they will have the idea that why the service is not getting connected or why your call is not service the results.
    Hope it will be helpful to you.

    Pawan Awasthi(DNS MVM)
    +91 8123489140 (whatsApp), +60 14365 1476(Malaysia)

  • #744489
    Use Fiddler tool (open source), it will show the root cause.

  • Sign In to post your comments