none
Error message while calling a webservice RRS feed

  • Question

  • Hi,

     

    within my biztalk application I get the follwing error when I try to call a webservice.

     

    The adapter failed to transmit message going to send port "SendPort1" with URL "http://localhost:9091/ExtractorWS/Service1.asmx". It will be retransmitted after the retry interval specified for this Send Port. Details:"Failed to serialize the message part "project" into the type "project" using namespace "http://tempuri.org/XMLSchemaTest.xsd". Please ensure that the message part stream is created properly. ".

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

     

    My webservice looks as follows:

     

    <System.Web.Services.WebService(Namespace:="http://tempuri.org/")> _
    <System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
    Public Class Service1
        Inherits System.Web.Services.WebService

        <WebMethod()> _
        Public Function HelloWorld(<XmlElement(ElementName:="Project", Namespace:="http://tempuri.org/XMLTestSchema", IsNullable:=False)> ByVal project As Project) As Project
            Dim pro As New Project()
            pro.ProjectID = "hello"

            Return pro
        End Function

     

    What's the mistake here?

    Thanks.

     

    Chris

     

     

    Wednesday, January 16, 2008 2:52 PM

Answers

  • Hi Chris,

     

    Make sure that you're using WCF-BasicHttp adapter or WCF-Custom adapter with basicHttpBinding when consuming ASMX web services.

     

    It would also help if you can post your send port configuration.

     

    Thanks,

    Karahan

    Wednesday, January 16, 2008 10:54 PM