none
Response header not returning values RRS feed

  • Question

  • My proxy class that auto generate when adding service reference does not return any values in the response header.

    Traced with fiddler also the same problem. But when using SoapUI, the response header is correct.

    Anyone can shed some lights or experience user please guide me. Thanks.

    From wcf,

    <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    	<s:Header>
    		<h:SequenceId xmlns:h="http://schemas.ericsson.com/cai3g1.2/">0</h:SequenceId>
    		<h:SessionId i:nil="true" xmlns:h="http://schemas.ericsson.com/cai3g1.2/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
    		<h:TransactionId xmlns:h="http://schemas.ericsson.com/cai3g1.2/">0</h:TransactionId>
    	</s:Header> 


    From soapui,

     
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
       <S:Header>
          <SequenceId xmlns="http://schemas.ericsson.com/cai3g1.2/">0</SequenceId>
          <TransactionId xmlns="http://schemas.ericsson.com/cai3g1.2/">1234</TransactionId>
          <SessionId xmlns="http://schemas.ericsson.com/cai3g1.2/">87654121643116</SessionId>
       </S:Header>
    

    Wednesday, September 23, 2015 9:25 AM

Answers

  • Hi Samantha_UCD,

     >>"Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata."

    According to this error, as far as I know, may be you need to check your web.config file.

    You need to add this node in your web.config file. Like below:

    <endpoint 
              address="mex" 
              binding="mexHttpBinding" 
              contract="IMetadataExchange"/>
    
     

    And you need make sure the  httpGetEnable is true. Like this.

    <serviceMetadata httpGetEnabled="true">

    I hope that will be helpful to you.

    Best Regards,

    Grady

    Monday, September 28, 2015 5:51 AM
    Moderator

All replies

  • Hi Samantha_UCD,

    According to this case, I suggest you can create a new project and test it in your service in

    WCF test client. You can find the WCF Test Client (WcfTestClient.exe) in the following location: C:\Program

    Files\Microsoft Visual Studio 9.0\Common7\IDE\.

    May be you can delete the reference  and add it again.

    Best Regards,

    Grady

    Thursday, September 24, 2015 2:16 AM
    Moderator
  • Hi Grady,

    Thanks for pointing out another way to test the service.

    But I ran into an error when add the service in test client now, which I still finding the clue where went wrong.

    The error is "Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata."

    I will update once I done fix it and able to call the service.

    Friday, September 25, 2015 2:49 AM
  • Hi Samantha_UCD,

     >>"Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata."

    According to this error, as far as I know, may be you need to check your web.config file.

    You need to add this node in your web.config file. Like below:

    <endpoint 
              address="mex" 
              binding="mexHttpBinding" 
              contract="IMetadataExchange"/>
    
     

    And you need make sure the  httpGetEnable is true. Like this.

    <serviceMetadata httpGetEnabled="true">

    I hope that will be helpful to you.

    Best Regards,

    Grady

    Monday, September 28, 2015 5:51 AM
    Moderator