SOAP Adapter and Filename

Home Page Forums BizTalk 2004 – BizTalk 2010 SOAP Adapter and Filename

Viewing 1 reply thread
  • Author
    Posts
    • #14829

      I cannot retain the original filename while send file through a web service.

      I did a simple test:

      -A simple schema in an assembly deployed to my BTS Server
      -A one-way webservice published from that schema and at the same time, let the wizard created a SOAP receive port
      -created a FILE send port subscribed to that SOAP receive port
      -Add the webservice reference in another biztalk project and send file to webservice from that project

      When i define the receive file to be %MessageID%.xml in the FILE send port, everything is fine. But when i changed the macro to be %SourceFileName%, the output file’s name is not set to be the original filename, it’s just a file called %SourceFileName%.

      Is that because SOAP adapter doesn’t keep the message context property(such as ReceivedFileName)?

      Any suggestions to deal with it?

      Thx.

    • #14830

      I may try this to get the filename through WS:
      ===================================
      create one custom pipeline on SOAP send side — promote the context property \”ReceivedFileName\”

      Create a schema for SOAP Header, only inclued one element \”Filename\”.
      Create SOAP Header based on this schema using the wizard.

      Having another custom pipeline on SOAP receive side — take the value out of soap header and throws back to promoted proptery

      ===================================
      But i don’t know how to store the promoted property value into SOAP Header while submit file to WS. Or maybe i have to set up orchestration?

      Is the direction i’m going right?

      Thanks
      Merry

      • #14831

        That is correct.
        None of the adapters propagate the message context. Once the message leaves the adapter the message context no longer exists.

        The SOAP receive port does not have the filename, that was left behind at the SOAP send adapter

        You have two options add a filename field to your message or use custom SOAP headers to pass the filename.

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