Cannot use common objects on both client and server side
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 > Cannot use common objects on both client and server side




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

zorrinn is offline     Cannot use common objects on both client and server side  
zorrinn


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


Click Here to See the Profile for zorrinn Click here to Send zorrinn a Private Message Find more posts by zorrinn Add zorrinn to your buddy list
 
09-15-05 08:53 PM

I added a reference (.NET library) to my BizTalk project, say "Common" and I
 have used one of the .NET classes(objects) to be an incoming message type, 
say "Common.MyClass". 

I have now published an orchestration as a webservice. 
Thus the webmethod would be method1(Common.MyClass obj)


I then added the webservice as a web reference ("webref") to my client appli
cation. One of the other references is the same "Common". 

When I try to pass the object of type Common.MyClass to my webmethod, I get 
a compiler error saying that the method signature is method1(webref.Common.M
yClass obj)

What do I do???




[ Post a follow-up to this message ]



zorrinn is offline     Re: Cannot use common objects on both client and server side  
zorrinn


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


Click Here to See the Profile for zorrinn Click here to Send zorrinn a Private Message Find more posts by zorrinn Add zorrinn to your buddy list
 
09-16-05 09:04 PM

quite simple. but tricky.

When you add a web reference to your client application, the generated file 
Reference.cs which is a client side proxy of your server object (web service
), the namespace is added the same as your local namespace of that client pr
oject.

To avoid this, create the client side proxy class using the wsdl.exe tool an
d add it to your client project. This way it does not create a namespace in 
the generated class.




[ Post a follow-up to this message ]



zorrinn is offline     "Message Type" - long integer - array of objects  
zorrinn


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


Click Here to See the Profile for zorrinn Click here to Send zorrinn a Private Message Find more posts by zorrinn Add zorrinn to your buddy list
 
09-16-05 09:33 PM

How do you create a message type of type long integer. The only ones I see i
n the properties are System.String and System.DateTime, apart from other ref
erenced standard .NET class in which I cannot find System.Long

Is it ever possible to create a message type of type System.Long?

Also, can I send back an array of .NET objects[] ??




[ Post a follow-up to this message ]



zorrinn is offline     Re: "Message Type" - long integer - array of objects  
zorrinn


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


Click Here to See the Profile for zorrinn Click here to Send zorrinn a Private Message Find more posts by zorrinn Add zorrinn to your buddy list
 
09-19-05 01:59 PM

I guess my questions are so dumb that no one replies. I reply to my own post
ings after I spend a long time figuring out things myself.

Anyway, I still haven't found a way to send back a long integer from an orch
estration. I am also wondering how to send back a boolean.

Let me know. Thanks.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:22 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