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.

Similar Messages

  • Error while consuming Odata service from Gateway client i.e /iwfnd/gw_client

    Hello Experts.
       I am facing below an error while consuming the Odata service from GW client... The error is "No service found for the namespace /IWFND/,name ZTEST_STOREROOM_SRV,version 001". Even i have tried to deep dive in /IWFND/Error_log but no use..
      Actually what I was doing :- My aim is to connect multiple back end systems in the same server with the help of Aliasing concept.. I have created multiple aliases and added in the /IWFND/MAINT_Service transaction.. but i am not getting how to consume the service..
       I have followed the solution upto some extent in the link => Multiple Origin Composition - SAP NetWeaver Gateway Foundation (SAP_GWFND) - SAP Library
      Can you please let me know how to resolve this.. Also please let me know, the syntax for the URI...
      Your help is highly appreciated..
      Please find the screenshot attached.
    Thanks,
    Srinivas.

    Hello @Nrisimhanadh_Yandamuri
      Thanks for your reply..
      I have got all the required authorization.. But still I am not able to hit the service.. Please let me know what could be the solution..
    Thanks,
    Srinivas.

  • Authentication error while consuming web service published in SR of CE 7.1

    Hi,
    I am having this error while trying to consume a web service published in local services registry. Authentication level is set as Basic in the web service and in end point. I am receiving this error in security log files.
    Message:Authentication for web service ServicesRegistrySiService, configuration ServicesRegistrySiPort using security policy sap.com/tcesiuddisrws~earServicesRegistrySiServiceServicesRegistrySiPort*ws failed: Login failed.. (See SAP Note 880896 for further info).
    Category: /System/Security/WS/Authentication
    Location: com.sap.engine.services.wssec.authentication.authenticate
    Application: sap.com/tcesiuddisrws~ear
    Thread: HTTP Worker [1]
    Data Source: j2ee\cluster\server0\log\system\security_00.log
    Correlator ID: 33747500000034965
    Argument Objects: 
    Arguments: 
    DSR Component: 
    DSR Transaction: 72b226c009ed11dd9a3e000c29c818ce
    DSR User: 
    Message Code: 
    Session: 4196
    Transaction: 
    User: Guest
    Host: ########
    System: ###
    Instance: J00
    Node: server0
    following is the code in a C# .Net 2.0 from where the service is called.
                CnarService srv = new CnarService();
                NetworkCredential ic = new NetworkCredential("user", "password");
                CredentialCache cache = new CredentialCache();
                srv.UseDefaultCredentials = false;
                srv.PreAuthenticate = true;
                srv.Credentials = ic;
                try
                    srv.Timeout = 600;
                    cnarobject cnObj = srv.GetObject("1");
                    fnameTextBox.Text = cnObj.firstname;
                    lnameTextBox.Text = cnObj.lastname;
                    mnameTextBox.Text = cnObj.middlename;
                catch (WebException wex)
                    MessageBox.Show(wex.Message + wex.Response + wex.StackTrace);
    I tried to find the SAP Note 880896 but note doesn't exists. I am receiving similar error while trying to connect Enterprise Services explorer for .Net
    Please help.
    Regards
    Monty

    Hi,
    maybe you should see the settings for the ServicesRegistrySiService too. Under nwa->SOA.
    I am not sure, but the error seems like not able to use the ServicesRegistrySiPort, which is to be authenticated against.
    It is then used for retrieval of web services and publishing to the registry... i suppose.
    I am not sure though.
    Best regards,
    Vera

  • XML Deserialization error while consuming Enterprise service in wd java..

    Hello,
    I am trying to build 2 webdynpro java webdynpro applications which consumes enterprise service for purchase order and another application for Busines partner.
    While i was able to successfully consume the PO service in webdynpro java and get the desired output for PO..i get XML Deserialization error while running appliation for Business Partner..
    These are the details/steps i followed for the Business Partner application:
    1. After creating the model using the enterprise service, i created a service controller from the model to the component controller..
    2. Out of many inputs/output attributes during mapping from model to component controller. i further mapped the context from CC to ViewC.
    3. In the wdDoInit() method, i added the follwing code:
        BPCreate model1 = new BPCreate();
        Request_BusinessPartnerERPCreateRequestConfirmation_In RequestC = new  Request_BusinessPartnerERPCreateRequestConfirmation_In(model1);
        BPERPCrteReqMsg_S CreateMessage = new BPERPCrteReqMsg_S(model1);
        BPERPCrteReq_SBP Cpartner = new BPERPCrteReq_SBP(model1);
    String Category = new String();
        String lf = new String();
        Cpartner.setInternalID(new String());
        Cpartner.setNumberRangeIntervalBusinessPartnerGroupCode(new String());
        Cpartner.setLifeCycleStatusCode(lf);
        Cpartner.setCategoryCode(Category);   
        CreateMessage.setBusinessPartner(Cpartner);
        RequestC.setBusinessPartnerERPCreateRequestMessage_Sync(CreateMessage);
        wdContext.nodeBusinessPartnerERPCreateRequestMessage_Sync().bind(CreateMessage);
    4. When i comment this code and run the application, the aplication comes up but the input fields are non-editable..
    5. If i place this code in wdDoInit() method, i get the Deserialization error..
    Any idea about why this error occurs and which areas in the application can lead to these errors?
    I checked that the service runs fine in soamanager.
    Thanks, JVR

    Hi Kishore,
    This error is majorly because while executing this Webdynpro application you are not entering all the mandatory fileds of WS.
    Please try to execute this WS from WS-Navigator, check which fileds are mandatory and then
    appropriately instantiate it in wdDoInit and pass all the fields required.
    Regards,
    Vaibhav Modi.

  • HELP: Error while consuming Web Service: ClassCastException

    Hi,
    I am trying to consume a web service that I deployed on Tomcat/Axis. Any guideline will be helpful. I generated stubs using WSDL2Java utility from Axis. The method I am trying to call is getFibo(), which returns an object FiboHolder. Unfortunately everytime it is throwing ClassCastException. I have couple of other methods in the service that returns int and int[] and both works fine. Could anyone please help why I am not able to consume the service when it is returning the object FiboHolder but works fine when I consume other methods of the service that returns int or int[]?
    Following is my client code:
        FibonacciService service =  new FibonacciServiceLocator();
        FibonacciSoapBindingStub stub = (FibonacciSoapBindingStub) service.getfibonacci(new URL("http://localhost:8080/axis/services/fibonacci"));
        // Now use the service to get a stub to the service
        FiboHolder fibHold = stub.getFibo();  //code errors out at runtime here
        System.out.println(fibHold.getFibo1());Following is the error message I get:
    org.apache.axis.AxisFault: java.lang.ClassCastException
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.ClassCastException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:
    Thanks,

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Error while consuming Web service!!

    Hi All,
    1)I have created RFC enabled function module in R/3 back end
    2)I want to use this Funtion module in webservice callacble object
    3)I have created a callable object,but i am getting this error while testing
    invocation failed: The host of endpoint URL "http://<host>:8001/sap/bc/soap/rfc" was not found. Check if the WS Client is configured correctly. Probably endpoint URL is not set or use of HTTP Proxy is required.; nested exception is:
    java.net.UnknownHostException: proxy
    Secondly i tried using external webservice and this is :
    http://www.webservicex.net/WeatherForecast.asmx?WSDL
    When i use this WSDL url, i am getting the error as : Could Not load WSDL URL:http://www.webservicex.net/WeatherForecast.asmx?WSDL :GenericServiceFactory initialization problem while calling WSDL model.
    Can anybody guide me solving these two issue?
    Any help will be highly apprecaited!!
    Regards,
    Ameya

    Hi,
    Does anybody have any idea about it ?Please suggest any solution.
    Help will be highly appreciated.
    Regards,
    Ameya

  • Authorization error while consuming web service in SOAP UI

    Hi,
    I am an ABAPer and do not have much knowledge about SOAMANAGER configuration.
    I have created a Web service and configured it using SOAMANAGER. I am trying to consume same web service using SOAP UI.
    But, I am getting an error HTTP-401 unauthorized.
    For authentication, I have selected "Transport level -User ID/Password" checkbox.
    What else, I have to configure, please let me know.
    Error log:
    Login failed
    What happened?
    calling the URL  <URL>.
    The application was running in the system <System> . Here, no credentials were provided.
    What can you do?
    If you still have a user ID , contact your system administrator.
    HTTP 401 - Unauthorized
    Your SAP Internet Communication Framework Team
    Regards,
    Sneha

    Hi Sneha,
    In SOAP UI, after importing WSDL, dig it till Request1, select it and go to Request property.
    Set Below things
    1. Authentication Type = Preemptive
    2. give username
    3 give password
    and send message.
    Regards,
    Mastan
    Message was edited by: mastan vali

  • Error while consuming web service in portal component

    Hi All,
    I am working on a portal application which uses web services in portal component via web service.
    I have tested the web service and then creted a relevant portal service to it .When using this portal service in the portal component and running it Im getting the following run time error
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : Test_portal_service_app.Test_portal_service_app
    Component Name : Test_portal_service_app.Test_portal_service_app
    com.sap.portal.ivs.global.ume.UMECLient.
    Exception id: 11:17_03/07/08_0028_2739150
    See the details for the exception ID in the log file
    I did not use any ume attributes or ume api methods in the portal component .
    I have also added sharingreference= portalserviceapplication name  in deploymentdescriptor of the portal application which has the portal component.
    Please provide any suggestion for the possible cause of error .
    Urgent!!!!
    Thanks.

    Hi all,
    Please throw some light into this issue i am getting the following exception.
    com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: Problem in server response: Proxy Authentication Required.
    I have given the proxy settings in the com.sap.portal.ivs.httpservice  in the portal and also
    defined a proxy server in the Visual Administrator under Services -> Webservice Container -> HTTP Proxy Server
    I am calling service in the following manner.
    IPortalRuntimeResources runtime = PortalRuntime.getRuntimeResources();
       IService service = runtime.getService(IWS_P_Service.KEY);
       IWS_P_Service ws_service = (IWS_P_Service)service;
        Volumes from = new Volumes(Volumes.VOLUMES_KILOLITER_VALUE);
        Volumes to = new Volumes(Volumes.VOLUMES_LITER_VALUE);
        ChangeVolumeUnit cvu = new ChangeVolumeUnit(1200,from,to);
        // working upto here
         response.write("working");
         ChangeVolumeUnitResponse cvu_res = ws_service.ChangeVolumeUnit(cvu);
         double result = cvu_res.getChangeVolumeUnitResult();
         response.write(result+"");
    It is working upto "working".
    If any body has any solutions please post.
    Thanks

  • Error while consuming Web Service (returning XML ) in ABAP

    Hi,
    i am trying to consume a web service in ABAP. ( webservice which takes a request and return a XML string back).
    I created a proxy class in SE80. and i tested it successfully.
    When i tried to use the class in my program, it is giving dump.
    i am not sure what is the problem. I guess it is not able to handle null values in XML.if that is the case. how to handle it..

    The dump says:
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                CX_SY_REF_IS_INITIAL      
    Error analysis                                                              
        An exception occurred that is explained in detail below.                
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught and                                                             
        therefore caused a runtime error.                                       
        The reason for the exception is:                                        
        You attempted to use a 'NULL' object reference (points to 'nothing')    
        access a component (variable: "LO_CLIENTPROXY").                        
        An object reference must point to an object (an instance of a class)    
        before it can be used to access components.                             
        Either the reference was never set or it was set to 'NULL' using the    
        CLEAR statement.                                                        
    I think this dump is because of the default value ( space) in some elements. How to avoide that.
    wheni catch CX_SY_REF_IS_INITIAL it is not giving any dump. But this is not my requirement. Because it is not getting anything into  response string.

  • Error while consuming purchaseordercreateconfirmation service

    Dear Experts,
    looking for solution to following error.
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:Header></soap-env:Header><soap-env:Body><n0:PurchaseOrderCreateConfirmation_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:E60:/1SAI/TAS8CEB5F2D225061EBD72E:700:2008/01/11"><Log><BusinessDocumentProcessingResultCode>5</BusinessDocumentProcessingResultCode><MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode><Item><TypeID>010(ECC_SE_COMMON)</TypeID><CategoryCode></CategoryCode><SeverityCode>3</SeverityCode><Note>Exactly-once request cannot be locked: 4C0033C6FDEC41E4BBE23CF7918C6B91 (error code: Could not find configuration entry for client 800)</Note></Item></Log></n0:PurchaseOrderCreateConfirmation_sync></soap-env:Body></soap-env:Envelope>
    Ajay

    Hi Ajay,
    The following notes deal with exactly this problem:
    https://css.wdf.sap.corp/sap/support/notes/0000987316
    https://css.wdf.sap.corp/sap/support/notes/0001097348
    Let me know if it helped,
    Martin

  • 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>

  • Error while talking WCF using net.tcp

    I am getting following error  in Trace viewer while communicating WCF service from WPF application using NetTCP
    The ' ' character, hexadecimal value 0x20, cannot be included in a name.
    Parameter name: name
    I am getting error on following even of WPF
    ===============================
    void onStartClick(object sender, EventArgs e)  {               
            productsServiceHost = new ServiceHost(typeof(ProductsServiceImpl));
    Here is my app.config of WPF
    ====================
    <?xml version="1.0"?>
    <configuration>
        <configSections>
            <section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    requirePermission="true" />
        </configSections>
        <dataConfiguration defaultDatabase="AdventureWorksConnection" />
        <connectionStrings>
            <add name="AdventureWorksConnection" connectionString="Data Source=WIN764PRSP1\SQL2008;Initial Catalog=AdventureWorks2008;User ID=sa;Password=!@Sql2008@!"
                providerName="System.Data.SqlClient" />
        </connectionStrings>
        <startup>
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
        </startup>
        <system.serviceModel>
            <services>
                <service behaviorConfiguration="ProductsTcpBehavior" name="ProductsService.ProductsServiceImpl">
                    <endpoint address="net.tcp://localhost:8080/TcpProductsService"
                    binding="netTcpBinding" bindingConfiguration="" name="NetTcpBinding_IProductsService "
                    contract="ProductsService.IProductsService" />
                </service>
            </services>
            <behaviors>
                <serviceBehaviors>
                    <behavior name="ProductsTcpBehavior">                    
                        <serviceDebug includeExceptionDetailInFaults="True" />
                        <serviceMetadata />
                    </behavior>
                </serviceBehaviors>
            </behaviors>
        </system.serviceModel>
    </configuration>
    Here is my app.config of Console Client Application
    ===================================
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="NetTcpBinding_IProductsService" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
                        maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                        useDefaultWebProxy="true">
                        <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                            maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                        <security mode="None">
                            <transport clientCredentialType="None" proxyCredentialType="None"
                                realm="" />
                            <message clientCredentialType="UserName" algorithmSuite="Default" />
                        </security>
                    </binding>
                </basicHttpBinding>
            </bindings>
            <client>
                <endpoint address="net.tcp://localhost:8080/TcpProductsService"
                    binding="netTcpBinding" bindingConfiguration="" contract="ProductsService.IProductsService"
                    name="NetTcpBinding_IProductsService" />
            </client>
        </system.serviceModel>
    </configuration>
    Here is Program.Cs file in Client
    ======================
     static void Main(string[] args)
                Console.WriteLine("Press ENTER when the service has started");
                Console.ReadLine();
                // Create a proxy object and connect to the service
                //ProductsServiceClient proxy =
                //    new ProductsServiceClient("BasicHttpBinding_IProductsService");
                ProductsServiceClient proxy = new
                    ProductsServiceClient("NetTcpBinding_IProductsService");
                // Test the operations in the service
                // Obtain a list of all products
                Console.WriteLine("Test 1: List all products");
                string[] productNumbers = proxy.ListProducts();
                foreach (string productNumber in productNumbers)
                    Console.WriteLine("Number: " + productNumber);
                Console.WriteLine();
    Can anyone assist where i am wrong.

    Hi IT Quest,
    In your scenario, I see that you have hosted your WCF Service on the WPF application and it throws exception from WPF application, so in my mind, the WPF does not work well when hosting the WCF Service, please try to do a test by using the WcfTestClient(https://msdn.microsoft.com/en-us/library/bb552364(v=vs.110).aspx)
    to see if your WCF Service works well.
    The following article show us how to host a WCF service using WPF, please try to check it:
    https://soumya.wordpress.com/2010/05/26/wcf-simplified-part-7-hosting-a-wcf-service-using-wpf/ .
    Please also try to enable the WCF tracing to help find the root cause.
    #How to enable WCF tracing:
    https://msdn.microsoft.com/en-us/library/ms733025(v=vs.110).aspx .
    Besides, if the problem still exist, it will better if you can try to post a simple reproduce project in here.
    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 while consuming a webservice in nwds

    Dear Users,
      I m facing an error while consuming a wsdl webservice in webdynpro java error................
    Error Mon Apr 20 16:53:29 IST 2009 Apr 20, 2009 4:53:29 PM          com.sap.ide.webdynpro.ui.service.ServicesUI          [Thread[ModalContext,5,main]] Error: Internal error
       Plugin name: Web Dynpro Model Editor Services
       Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
       Class      : com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9
       Method     : doImportWebServiceModel
       Message    : Web Service model import failed
       Exception  : com.sap.ide.ws.proxygenerator.ProxyGeneratorException: Problems while generating the Proxy Definition!
    com.sap.ide.ws.proxygenerator.ProxyGeneratorException: Problems while generating the Proxy Definition!
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:416)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:283)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:279)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:117)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1155)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    -- caused by --
    com.sap.engine.services.webservices.jaxrpc.exceptions.ProxyGeneratorException: Proxy Generator Error. Problem with WSDL file parsing. See nested message.
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:182)
         at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.generateInterfaces(InternalHelperFunctions.java:370)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:372)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:283)
         at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:279)
         at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)
         at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:117)
         at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$9.run(ModelWizard.java:1155)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Caused by: com.sap.engine.lib.xml.util.NestedException: IO Exception occurred while parsing file:Server redirected too many  times (20) -> java.net.ProtocolException: Server redirected too many  times (20)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1039)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadWSDLDocument(WSDLDOMLoader.java:1126)
         at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ProxyGenerator.generateProxy(ProxyGenerator.java:178)
         ... 8 more
    Caused by: java.net.ProtocolException: Server redirected too many  times (20)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:823)
         at java.net.URL.openStream(URL.java:913)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:201)
         at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:263)
         at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280)
         at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342)
         at com.sap.engine.lib.xml.parser.DOMParser.parse(DOMParser.java:101)
         at com.sap.engine.lib.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:127)
         at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
         at com.sap.engine.services.webservices.wsdl.WSDLDOMLoader.loadDOMDocument(WSDLDOMLoader.java:1025)
         ... 10 more
    Please help me in solving his issue.
    regards,
    Sathya

    I have the same issue attempting to connect my application to this WSDL:
    http://erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_projwbselmntcancrc?sap-client=800&wsdl=1.1&mode=sap_wsdl
    I can load the WSDL fine as an XML file. I can also load the WSDL fine if I connect via Firefox or a browser. I can open it fine in SoapUI. I just can't access it from my Java application.
    2009-10-26 18:11:45,943 ERROR [com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext] Loading of definition failed for [http://uid:password-erp.esworkplace.sap.com/sap/bc/srt/xip/sap/ecc_projwbselmntcancrc?sap-client=800&wsdl=1.1&mode=sap_wsdl]; java.net.ProtocolException: Server redirected too many  times (20)
    2009-10-26 18:11:45,943 ERROR [com.eviware.soapui.SoapUI] An error occured [Server redirected too many  times (20)], see error log for details
    2009-10-26 18:11:45,943 ERROR [soapui.errorlog] java.net.ProtocolException: Server redirected too many  times (20)
    java.net.ProtocolException: Server redirected too many  times (20)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at java.net.URL.openStream(Unknown Source)
         at com.adobe.idp.dsc.webservice.MyWsdlLoader.load(WebServiceSoapUIInvoker.java:675)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
         at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
         at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
         at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
         at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
         at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
         at java.lang.Thread.run(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR] java.net.ProtocolException: Server redirected too many  times (20)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at java.net.URL.openStream(Unknown Source)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.adobe.idp.dsc.webservice.MyWsdlLoader.load(WebServiceSoapUIInvoker.java:675)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:106)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:469)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:460)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.cacheWsdl(WsdlLoader.java:176)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlContext$Loader.construct(WsdlContext.java:207)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:45)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:111)
    2009-10-26 18:11:45,943 ERROR [STDERR]      at java.lang.Thread.run(Unknown Source)
    Any ideas?
    Edited by: tburke on Oct 27, 2009 2:26 AM

  • Geeting error while consuming webservice from java

    Issue description :
    We are tried to connect to clients SAP bapi web service with Apache Axis tool  ( version- axis2-1.5) and SOAP UI tool (SOAPUI3.6.1
    )  , we faced following error : and getting following login error failed error from SAP.
    Error :
    HTTP 401 - Unauthorized. Login failed. The application was running in the system QAS
    It is really starange as , using the id i could log in to the system , but while consuming the service , for the same id it is giving this error.
    Regards,
    Ranjit

    Hi,
    Not sure this is right forum to post. You may try post in SDK forum to get quick response.
    Thanks & Regards,
    Nagarajan

  • 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.

Maybe you are looking for

  • Excise Register

    Hi We have a scenario in which RG23A register is updated with the credit values and also the invoices cut during the month. At some time during the same month, the balance in the register becomes zero. However, in such a case, we need to pay the duty

  • Using the URL type field in a Dictionary

    Using the URL type field in a Dictionary How and when would I use the URL Field in a Dictionary?  What is the advantage of using this field? For example, you may have tasks within a service delivery in which performers must access a spreadsheet and e

  • Different people living in same address same Account

    I have Display_name, Address,Account and few other columns in a table. I need people(Display_name) at the same Address with the same account number and a different name (Display_name). For example wife and husband living at the same address and accou

  • What is the frequency response of the MDR7506 headphones?

    The webpage for the MDR7506 headphones lists both 5-80kHz and 20-20kHz as the frequncy response for the headphones.

  • Cache Management

    Hi, I have a few questions regarding Cache Management. I have "Table A" whose Cacheable Property is set to true and Cache Never Expires button is checked. When I query this table through answers, the result set I get is up to the minute records. I do