Calling .NET Class
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Calling .NET Class




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Calling .NET Class  
Janne Java


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11: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





[ Post a follow-up to this message ]



    RE: Calling .NET Class  
Alan Smith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-27-04 11: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





[ Post a follow-up to this message ]



    RE: Calling .NET Class  
Neal Walters


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-04 10: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:41 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register