none
WCF Web-hht sendport RRS feed

  • Question

  • Hi all,

    I am consuming a webservice in biztalk with wcf- webhttp sendport and getting following error while configureing btshttpurlmapping action. with variable { },

    My BtsHttpUrlMapping Action is as follow

    <BtsHttpUrlMapping>
    <Operation Name="C" Method="POST" Url="/rd/{ID}" />
    </BtsHttpUrlMapping>

    please help me to solve this

    Log Name:      Application
    Source:        BizTalk Server
    Date:          6/26/2013 3:54:07 PM
    Event ID:      5743
    Task Category: BizTalk Server
    Level:         Warning
    Keywords:      Classic
    User:          N/A
    Computer:     
    Description:
    The adapter failed to transmit message going to send port "WEB_SAP_LOB" with URL "http://.......svc". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ArgumentException: The path variable 'ID' in the UriTemplate must be bound to a non-empty string value.
    Parameter name: parameters
       at System.UriTemplate.VariablesCollection.LoadDefaultsAndValidate(String[] normalizedParameters, Int32& lastNonDefaultPathParameter, Int32& lastNonNullablePathParameter)
       at System.UriTemplate.VariablesCollection.ProcessDefaultsAndCreateBindInfo(Boolean omitDefaults, String[] normalizedParameters, IDictionary`2 extraParameters, BindInformation& bindInfo)
       at System.UriTemplate.VariablesCollection.PrepareBindInformation(NameValueCollection parameters, Boolean omitDefaults)
       at System.UriTemplate.BindByName(Uri baseAddress, NameValueCollection parameters, Boolean omitDefaults)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfMarshaller.CreateWcfMessage(CreateWcfMessageSettings settings, TLConfig tlConfig, RLConfig rlConfig)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendRequestMessage(IBaseMessage bizTalkMessage, IRequestChannel channel)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)".
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="BizTalk Server" />
        <EventID Qualifiers="32960">5743</EventID>
        <Level>3</Level>
        <Task>1</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2013-06-26T20:54:07.000000000Z" />
        <EventRecordID>593392</EventRecordID>
        <Channel>Application</Channel>
        <Computer></Computer>
        <Security />
      </System>
      <EventData>
        <Data>WEB_SAP_LOB</Data>
        <Data>http://......svc</Data>
        <Data>System.ArgumentException: The path variable 'ID' in the UriTemplate must be bound to a non-empty string value.
    Parameter name: parameters
       at System.UriTemplate.VariablesCollection.LoadDefaultsAndValidate(String[] normalizedParameters, Int32&amp; lastNonDefaultPathParameter, Int32&amp; lastNonNullablePathParameter)
       at System.UriTemplate.VariablesCollection.ProcessDefaultsAndCreateBindInfo(Boolean omitDefaults, String[] normalizedParameters, IDictionary`2 extraParameters, BindInformation&amp; bindInfo)
       at System.UriTemplate.VariablesCollection.PrepareBindInformation(NameValueCollection parameters, Boolean omitDefaults)
       at System.UriTemplate.BindByName(Uri baseAddress, NameValueCollection parameters, Boolean omitDefaults)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfMarshaller.CreateWcfMessage(CreateWcfMessageSettings settings, TLConfig tlConfig, RLConfig rlConfig)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendRequestMessage(IBaseMessage bizTalkMessage, IRequestChannel channel)
       at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)</Data>
      </EventData>
    </Event>

    thank you in advance


    2Venture2


    • Edited by J45John Wednesday, June 26, 2013 9:06 PM
    Wednesday, June 26, 2013 9:04 PM

Answers

  • Have you defined the variable mapping for ID? See http://msdn.microsoft.com/en-us/library/jj572853(v=bts.80).aspx for details.
    • Marked as answer by J45John Friday, August 2, 2013 1:23 PM
    Wednesday, June 26, 2013 9:15 PM
  • solved a problem....it was an issue in promoted property...Thank you Marcus. your post helped me as well..

    2Venture2

    • Marked as answer by J45John Friday, August 2, 2013 1:25 PM
    Friday, August 2, 2013 1:25 PM

All replies

  • Have you defined the variable mapping for ID? See http://msdn.microsoft.com/en-us/library/jj572853(v=bts.80).aspx for details.
    • Marked as answer by J45John Friday, August 2, 2013 1:23 PM
    Wednesday, June 26, 2013 9:15 PM
  • Thank you for your reply Marcus

    Yes I did defined the variable mapping for ID with promoted property name and target namespace


    2Venture2

    Thursday, June 27, 2013 3:00 AM
  • solved a problem....it was an issue in promoted property...Thank you Marcus. your post helped me as well..

    2Venture2

    • Marked as answer by J45John Friday, August 2, 2013 1:25 PM
    Friday, August 2, 2013 1:25 PM
  • To create send port-

    Open Microsoft BizTalk 2013 from all program, and then click BizTalk Server Administration.

    Enlarge the BizTalk group and the BizTalk application for which you want to create a send port.

    Right-click Send Ports, point to New and then click the type of port to create.

    http://www.athenainfotech.co.uk/biztalk-consultancy-services


    Monday, August 19, 2013 6:00 AM
  • Can you please explain the issue in promoted property.


    Wednesday, June 15, 2016 8:33 AM
  • Hi Gulshan

    Make sure that the message you are sending to the SendPort has a value promoted in context property you are mapping in the Variable mapping section.

    Open the suspended message in Admin Console and click on Context. Check if the context property you specified in the Variable Mapping section in the adapter config has a value in the message that got suspended.


    Thanks Arindam



    Wednesday, June 15, 2016 8:37 AM
    Moderator