Use "add generated items" error – WCF Service Consuming Wizard

Home Page Forums BizTalk 2004 – BizTalk 2010 Use "add generated items" error – WCF Service Consuming Wizard

Viewing 2 reply threads
  • Author
    Posts
    • #25668

      Hi.

      I try to consume a web service within a new biztalk project. I clicked on “add generated items” and chose “Consume WCF Service”. After this I chose “Metadata Exchange (MEX) endpoint and set the right Metadata Address including the “?wsdl”. When I push the “Get”_Button everything is fine so far.

      In the next window I see the right namespace but if I click “import”, to generate the bindings, the orchestration and the schemas, I got an error message:

      “Error consuming WCF service metadata. Object reference no set to an instance of an object.”

      Any ideas wht could cause this issue?

      Thanks in advance.

      Wolfgang

    • #25670

      Hi Wolfgang,

       

         Check your <xsd:schema> nodes in the WSDL file of your WCF service and make sure that the attribute targetNamespace is defined for them.

       

         Best,

       

         Daniel.

       

    • #25673

      Hi,

      1. I would check at first – if I can consume that WCF from regular code (Console Application is easiest).

      2. If good – than something is wrong with generating objects in BizTalk.

      3. Try not consuming mex, but the second option (the upper radio button – don”t recall it’s name). If good – this would generate schemas + bindings for you.

      If you get error on the beginning, even trying to consume from console application – something is wrong in your WCF., Else – something wrong in your BTS.

      Is WCF written? Or it’s some kind of published orchestration/schema?

      If written – check that your methods and all stuff you need access to, is public.

      🙂

      • #25685

        Hi.

        Thanks a lot for your answers and tips. At least it was the missing targetNamespace in the received xml. I called the Service directly on the server everything works fine, than I checked the ?WSDL and I saw the missing tragetNamespace.

        So, thanks again for your help.

        Wolfgang

Viewing 2 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.