BizTalk Server Orchestration - Calling .NET Class

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > August 2004 > Calling .NET Class





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Calling .NET Class
Janne Java

2004-08-27, 6:06 pm

I have a problem calling my own class.
In expression method call look like this

testMsg = ClassLibHelper.Helper2.ConstructDoc("janne");
and here is a class
public class Helper2
{
private Helper2() {}
public static XmlDocument ConstructDoc(string data)
{
string rootXML ;
rootXML ="<Root xmlns=\"http://bzFoo.testSchema\"><Result>" + data +
"</Result></Root>";
XmlDocument doc = new System.Xml.XmlDocument();
doc.LoadXml(rootXML);
return doc;
}
}
and here is a message type

<?xml version="1.0" encoding="utf-16" ?>
<xs:schema xmlns="http://bzFoo.testSchema"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
targetNamespace="http://bzFwActivate.testSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Root">
<xs:annotation>
<xs:appinfo>
<b:properties xmlns:b="http://schemas.microsoft.com/BizTalk/2003">
<b:property distinguished="true" xpath="/*[local-name()='Root' and
namespace-uri()='http://bzFoo.testSchema']/*[local-name()='Result']" />
</b:properties>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Result" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

After calling I try to send it to Port (Transport type = FILE).
Something goes wrong and I can't get message.
I have same problem with MethodCall samples ( Biztalk /
SDK/samples/Orchestrations/methodcall).

OS = Windows 2003 Server enterprise, BizTalk 2004, VS.NET 2003.

Can anyone help me?

Regards
Janne
Alan Smith

2004-08-27, 6:06 pm

Hi Janne,

Can you get any more specific info on what's going wrong. Check the
application event lo, and see if BizTalk is logging any errors or warnings.
This shuld give you a better idea of where the problem is.

/Alan


"Janne Java" wrote:

> I have a problem calling my own class.
> In expression method call look like this
>
> testMsg = ClassLibHelper.Helper2.ConstructDoc("janne");
> and here is a class
> public class Helper2
> {
> private Helper2() {}
> public static XmlDocument ConstructDoc(string data)
> {
> string rootXML ;
> rootXML ="<Root xmlns=\"http://bzFoo.testSchema\"><Result>" + data +
> "</Result></Root>";
> XmlDocument doc = new System.Xml.XmlDocument();
> doc.LoadXml(rootXML);
> return doc;
> }
> }
> and here is a message type
>
> <?xml version="1.0" encoding="utf-16" ?>
> <xs:schema xmlns="http://bzFoo.testSchema"
> xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
> targetNamespace="http://bzFwActivate.testSchema"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="Root">
> <xs:annotation>
> <xs:appinfo>
> <b:properties xmlns:b="http://schemas.microsoft.com/BizTalk/2003">
> <b:property distinguished="true" xpath="/*[local-name()='Root' and
> namespace-uri()='http://bzFoo.testSchema']/*[local-name()='Result']" />
> </b:properties>
> </xs:appinfo>
> </xs:annotation>
> <xs:complexType>
> <xs:sequence>
> <xs:element name="Result" type="xs:string" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> </xs:schema>
>
> After calling I try to send it to Port (Transport type = FILE).
> Something goes wrong and I can't get message.
> I have same problem with MethodCall samples ( Biztalk /
> SDK/samples/Orchestrations/methodcall).
>
> OS = Windows 2003 Server enterprise, BizTalk 2004, VS.NET 2003.
>
> Can anyone help me?
>
> Regards
> Janne

Neal Walters

2004-08-29, 5:49 pm

Like Allen said, check event log and HAT for error messages. But, if SDK
method call doesn't work - a good guess might be a security problem. Maybe
the userid that Biztalk host is running under does not have access to
read/write the in/out directories?

Neal Walters
http://Biztalk-Training.com - Free Biztalk Training Videos
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com