community-content

Forum Replies Created

Viewing 15 posts - 4,531 through 4,545 (of 9,648 total)
  • Author
    Posts
  • in reply to: BizTalk maps slow to load in Visual Studio #19729

    The larger your schemas are, the longer your maps will take to load.  Working on a VM can exacerbate the issue.  Tip:  don’t leave a bunch of maps open when you close VS.  Otherwise, you will be stuck waiting for it to load all of the maps the next time you open your solution.  I have seen the issue with VS crashing when using external assemblies from maps too.  Never found a good way to fix it though.

    in reply to: Odd problem with web service communication #19728

     Hi Michael,

    I have seen that error many times.  It usually means one of two things:

    1. The web service application pool does not have access to the BizTalk databases.  If this is the case, you can fix the issue by opening the IIS administraton console, opening the properties page for the web service application pool, clicking on the identity tab, and specifying the proper account.
    2. The receive location URL does not match the URL of the web service.  For example if your web service is located at:  http://localhost/VirtualDir/Service.asmx, the receive location URL would be /VirtualDir/Service.asmx.

    Hope this helps!

     

    in reply to: I need an exception decoder ring #19726

    The easiest way is to add a Fault to the Port operation, with a message type of System.String. Add a message to your orchestration, MyFault of type System.String.  Add an exception handler to to catch System.Exception. In the exception handler construct MyFault (e.g. MyFault = “System Error”;  and send MyFault to the Port Fault.

    You can expand on this as required, by adding more granular exception handlers or creating a more complicated messages

    There is one gotcha with this pattern. You need to put your web service response Send shape inside an atomic transaction and have a decide shape in you exception handler to check whether you have sent a response before sending a fault. (i.e. !succeeded(ResponseSendTransaction).
    You can only return one message to the web service, you cannot send a response and a fault.    

    in reply to: I need an exception decoder ring #19725

     Thanks.  Look like you read an UUEncoder on it?

    My orchestration actually caught an exception when it was calling a web service, so right, it never returned a message. I have also gotten Timeouts and not sure why sometimes I get a timeout and sometimes the message above.  

    So what would be the best way to “bubble-up” the message. 

    Do I have to build a formal SoapFault message and send it?

    Thanks,
    Neal

     

    in reply to: I need an exception decoder ring #19724

     The exception reads:

    <?xml version=\”1.0\” encoding=\”utf-16\”?>
    <soap:Envelope xmlns:soap=\”http://schemas.xmlsoap.org/soap/envelope/\“>
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>Service ‘orchMapper(7a0d40ee-32b5-4302-8498-67625bdc6a9c)’ terminated without responding to operation ‘DirWCFPortGeneric.Operation_1’.</faultstring>
    <faultactor>orchMapper</faultactor>
    <detail />
    </soap:Fault>
    </soap:Body>
    </soap:Envelope>”

    Some problem with utf-16/utf-8/ANSI encoding (replace all “\0” with “”)

    You orchestration had an exception and terminated, without sending a response on a request-response port. I would suggest catching all exceptions within the orchestration and returning your own fault or error message to the initiating web service.

     

    in reply to: Detecting duplicate nodes in BizTalk #19723

    There are a number of ways, including a map with custom XSLT or a .NET class.

    The best way will be determined by what you wish to do when you detect duplicates.

    Do you wish to raise some error or do you wish to eliminate duplicates and continue processing?

     

     

    The XSLT template does not supercede the other functoids in a map. All your other functoids will continue to operate.

    There are a number of ways to use DB values in an XSLT Template. 

    You can have functoid that passes the value into the template as a parameter or  you can call code from within your template.

     A good debugging method is to validate your map and examine the resulting XSLT (The Biztalk mapper is really an XSLT compiler, it takes your links and functoids and compiles this into XSLT)

    You can also create the entire map in an external XSLT file and attach this to the map. This is my preferred method. You can use the inbuilt XSLT debugger from VS2005 (gives you breakpoints and the ability to step through the XSL), you can call any code including internal scripts and external libraries using an extension xml file.

    in reply to: sequential convoy orchestration #19720

     Yes this is how a convoy subscriptions are set up. Biztalk treats convoys differently from other instance subscriptions. There are some tables in the MessageBox (ConvoySet, ConvoySetInstances) that are used to match incoming messages to orchestration instances.

    in reply to: Invoking BAPI using Biztalk Server 2006 BTS2006 #19719

     Is this a standard BAPI in SAP or is this a custom BAPI that you developed ? Are you using SAP R/3 or ECC 6 ? Do yuo have NetWeaver installed in your SAP environment ? You could probably try NetWeaver using WCF Adapter HTTP binding to send data to your BAPI. If the you can send me the XML structure of the BAPI I will be able to tell you wether the XML structure that is formerd by the BAPI wether its correct or not. As well as the ABAP code.

     Yes, SOAP Adapter works in this case.

    A typo casued SOAP Header wasn’t created so that i kept getting HTTP 500 Error. All sorted now.

    Thanks,

    Merry

    in reply to: BizTalk maps slow to load in Visual Studio #19715

    Another one that bombs on me almost every time is when I try to connect a scripting functoid to an external C# assembly.
    It usually crashes Visual Studio the first time, then after VS comes back, it works fine.

    Neal

     

     

     

     

    You might be able to still use the SOAP Adapter.  I think I have in this type of scenario.

    Then, you can use the Soap Header Context Property to set your headers and the message will get formatted correctly. 

    Might be worth a try first. 

    Otherwise, could you use a map inside BizTalk to map to your full schema that includes the SOAP Headers?   Then, send that full message via HTTP?

    in reply to: Invoking BAPI using Biztalk Server 2006 BTS2006 #19712

     It sounds like a problem with the BAPI to me.  When we called a BAPI, we were able to view the response message the BAPI was sending back.  Might want to check it on the SAP side and make sure it is populated correctly.

    in reply to: BizTalk maps slow to load in Visual Studio #19711

     

    I think the VM’s the problem.

    I do all my dev work directly on my laptop.  Even there, I have seen some slowness and even VS crashing.  Usually with larger maps and schema.  For some reason, they still don’t have them working very well in VS.

    I also have issues if I have VS open and restart the Hosts / SQL / SSO.  It’s a 75% chance of a crash.  Don’t get that one either.

    in reply to: Problem with XLMDocument DTD verification #19708

    I assume your code looks something like this:

    xmlDocument = inputMessage;
    stringVariable = xmlDocument.OuterXml;

    The first line above is where the XmlDocument is loaded.

    Have you tried

    xmlDocument.XmlResolver = null;
    xmlDocument = inputMessage;
    stringVariable = xmlDocument.OuterXml;

Viewing 15 posts - 4,531 through 4,545 (of 9,648 total)