community-content

Forum Replies Created

Viewing 15 posts - 9,571 through 9,585 (of 9,648 total)
  • Author
    Posts
  • in reply to: Newbie: Simple webservice orchestration #12073

    Do I need correlation ?
    Yes, I beleive so. Process2 should not be allowed unless process1 has been run.

    To the good news!

    I finally got the first part of the orch to run. I’m running BTS 2004 SP1. I had not installed a M$ patch

    BizTalk Server 2004 SP1 Update for .NET Framework 1.1 on Windows Server 2003, (KB890673).
    [url]http://www.microsoft.com/downloads/details.aspx?FamilyID=0FE6C10D-587C-4F7C-AC5C-3890C69A08D1&displaylang=en[/url]

    This patch deals with a problem that occurs if you import schemas from assemblies that contain redundant imports. I beleive this is the reason it now started to work, though I’m not sure.

    Bad thing:

    Now I have a new problem. When initiating process2 I seem to get a routing problem…

    First errormessage:
    The Messaging Engine encountered an error committing a transport adapters batch containing the following work items: SOAP messages to be published, 0 request-response messages to be published, 1 messages to be suspended, 0 messages to be deleted from a host queue, 0 messages to be resubmitted for later transmission, 0 messages to be moved to their backup transport. Please refer to Health and Activity Tracking tool for more detailed information on this failure.

    Second error message:
    The \”SOAP\” adapter is suspending a message coming from Source URL:\”/project/com_domain_project_biztalk_RegisterOrchestration__ReceivePort.asmx\”. Details:\”The message found multiple request response subscriptions. A message can only be routed to a single request response subscription. \”.

    Any clue ? The argument for both webservice methods are of same type, but that should not be a problem, should it ?

    in reply to: How to get the Message Context in a .NET assembly #12108

    Have your component assembly reference your schema assembly, and then use the GetPropertyValue method of the message.

    You will find that a type has been generated for each property/distinguished filed.

    myMsg.GetPropertyValue(typeof(MyProject.MySchemas.SomeProperty));

    in reply to: Newbie: Simple webservice orchestration #12077

    I haven’t had a chance to digest your last post – but…once more on the issue of correlation. Do you really need to have the same instance of the orchestration handle the second request — or does the information that comes with the second request give you all you need to update the database? (i.e. do you have the key you need, etc.?)
    Just because the operations are logically grouped doesn’t meet you actually need to use the same orchestration instance. Just checking, since complexity would be reduced for you.

    in reply to: biztalk file adapter #12113

    thank you very much mario
    My application works now after configuring
    the sendport filter
    (BTS.ReceivePortName == <name of your receiveport>)

    thanks for your reponse

    in reply to: biztalk file adapter #12110

    Hi!

    In a messaging scenario like in your case the send port must be configured correctly to \”subscibe\” to the incoming message. Normally there a two types of errors.

    1) the sendport should have the filter configured to the receive port (BTS.ReceivePortName == <name of your receive port>)

    2) the receive port has the wrong pipeline configured and therefore doesn%u00b4t give you the xml-Format you might expect. I bet in 95% on number 1) 😉

    good luck
    mario

    in reply to: biztalk file adapter #12112

    hai,
    Could not find a matching subscription for the message.
    The Messaging engine failed to process a message submitted by adapter:FILE Source URL:C:\\test\\Receive\\*.xml. Details:Could not find a matching subscription for the message. . This error occurs if the subscribed orchestration schedule or send port has not been started, or if some of the message properties necessary for subscription evaluation have not been promoted.

    This occurs when I am using file adapter in biztalk.My send ports are well started.Can somebody help me?

    in reply to: biztalk file adapter #12111

    hai friends,
    I am new to biztalk server.I am trying to copy un fichier xml from receive folder to send folder using file adapter.I configured send ports and receive ports.
    When I copy the file to receive folder it should place it in send folder.But when I copy the file to receive folder the file disappears and I cannot find the file .
    can anybody help me.
    thanks in advance

    in reply to: How can I declare a variable of type ByteArray in BTS 2006? #14223

    Hello.

    I do not think that is supported. From the Biztalk 2006 help guide:

    [b:c987b1e4b4]Important: [/b:c987b1e4b4]
    Web method parameters of type array are not supported.

    You could always wrap your web service call in .net code. Then, call your .net code from your Orchestration.

    Hope this helps.

    in reply to: Modify Incoming Schema on the Fly #12104

    Yes, you can do this but it would be a lot of work.

    What I have done in the past is do this type of work in a map

    I would create a scripting functoid inside the map with an output of “”. Then, I map this to all the nodes I want to show up. Then, I map the data from the left side as normal. It is important to map in this order. You will get a warning when you compile – but that’s ok.

    You should now get your empty nodes when you do not have a node on the input mapped to it.

    Does that make sense? I do not really have a sample available for that right now.

    in reply to: Biztalk adapter for Mapics #12102

    Sorry, I have no clue on this one. The only place I found was http://www.busproc.com/ . But they really didn’t say they had an adapter.

    in reply to: Setting a variable in the Rec. Pipeline for use in an Orch. #12091

    Yes, as Stephen says – you want to promote or write the property by referencing your own property name and namespace. Don’t attempt to use the namespace for distinguished fields unless you have actually designated the corresponding portion of the schema as a distinguished field in the schema editor.

    in reply to: Mapping and sometimes looping #12069

    Thanks for the reply. The index didn’t solve it, so I tried the iteration insted and it solved it. The problem with index was that the index value only was set to zero the first time the ADDRLINE was hit. The iteration and a logical functoids=1 on the top node ind the distination schema did it.

    Best regrads

    BTS4FUN

    in reply to: Direct binding across projects #12095

    Hello.

    Side by side versioning with biztalk is doable but difficult.

    In your case, I would look at using direct binding. If you need side by side versions of your schema you need to make sure you include the schema assembly version or another custom set property that can be used for your subscriptions inside the Orchestration.

    You need to make sure if you version your schema you can not use the default Xml Disassembler or Assembler.

    Basically, you need to think of side by side versioning as really a full, new solution you want to deploy.

    Hope this helps.

    in reply to: Setting a variable in the Rec. Pipeline for use in an Orch. #12088

    Hello.

    I have always done the promotion inside the Execute method like this:

    IBaseMessageContext myContect = inmsg.Context;
    myContect.Promote(this.ProElementName, this.ProNameSpace, this.ProValue);

    This will put the value into the context. You can need to get at the value inside the Orchestration like this:

    yourMessage(PropertyName);

    Also, make sure you have a Property Schema deployed with the correct namespace and element name.

    I have a sample that shows this in a little more detail include with the Limit Running Orchestration sample: http://www.biztalkgurus.com/Samples/Limit-Running-Orchestration.html

    Hope this helps.

    in reply to: Newbie: Simple webservice orchestration #12072

    I’ve gone throug the creation of correaltion again. No error messages or compilation failures. OrganizationNumber is of type xs:string and should not be problem.

    I’m starting to think it’s the format of the schema that is autogenerated from the webservice that is the problem. You said something about the OrganizationNumber had to be unique in the schema. Well, the schema shows all the classes that are used throughout all the webservice-methods. I’m using only two of those web-methods. The class I’m using to correlate on, lets call it ClassA has an inherited ClassAExtended that of course also holds the OrganizationNumber. Could that be the problem ? In the Schema, it’s looks like this.

    <Schema>
    ClassSomething
    …
    ClassSomethingElse
    …
    ClassA
    ____<Equivalent>
    ______<ClassAExtended>
    _______<Sequence> (This one is grey and contains all the info of ClassA)
    _______<Sequence>
    __________AdditionalAttribute1
    __________AdditionalAttribute2
    ______<ClassA>
    _________<Sequence>
    ____________Name
    ____________OrganizationNumber
    ____________AnotherAttribute1
    ____________AnotherAttribute2

    The XML look like this
    …
    <xs:complexType name=\”ClassA\”>
    <xs:sequence>
    <xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”Name\” type=\”xs:string\” />
    <xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”OrganizationNumber\” type=\”xs:string\” />
    …
    </xs:sequence>
    </xs:complexType>
    …
    – <xs:complexType name=\”ClassAExtended\”>
    – <xs:complexContent mixed=\”false\”>
    – <xs:extension base=\”tns:ClassA\”>
    – <xs:sequence>
    <xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”ExtraAttribute\” type=\”tns:ExtraType\” />
    </xs:sequence>
    </xs:extension>
    </xs:complexContent>
    </xs:complexType>

    <xs:complexType name=\”ExtraType\”>
    <xs:sequence>
    <xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”ExtraAttribute1\” type=\”xs:string\” />
    <xs:element minOccurs=\”0\” maxOccurs=\”1\” name=\”ExtraAttribute2\” type=\”xs:string\” />
    </xs:sequence>
    </xs:complexType>

    …

    There is automatically generated Request and Response Message Types for all the webmethods. I have used these Message Types to define all my messages.

    The messages I defined are
    1. AddReq
    2. AddRes
    3. UpdateReq
    4. UpdateRes

    AddReq is used in 1a) and 1b)
    AddRes is used in 1c)
    UpdateReq is used in 2a) and 2b)
    UpdateRes is used in 2c)

    Another thought. Could there be a namespace problem ? The DatabaseWS has the namespace \”http://project.domain.com/portal/ws/\”. The BizTalkWS is deployed with the namespace \”http://project.domain.com/portal/biztalk/\”

    I’m really lost here, can anyone verify if this orchestration should even work, or maybe how You would constructed an orchestration based on the same functionality.

Viewing 15 posts - 9,571 through 9,585 (of 9,648 total)