For Programmers: Free Programming Magazines  


Home > Archive > PowerBuilder > April 2005 > Powerbuilder and .NET Interoprability









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 Powerbuilder and .NET Interoprability
Adam Norris

2005-04-09, 8:57 pm

I asked this before and didn't get a response. Since it wasn't a
major functionality point (at the time) I didn't ask again.

Now that it is slowly moving from the back burner to the front
burner, I ask again (with updated techno-babble) if anyone has any
ideas or suggestions to facilitate this?

<snip>

I have created a multitude of objects being used in a few web
applications that were compiled into DLLs from C# source code. Is
there a way to reference the exposed methods in those DLLs from within
PowerBuilder 9+? Maybe as global external functions?

--EXAMPLE (in C#):

using System;

namespace nothingSpecial {
public class doIt {
public string changeToUpperCase(string s) {
return s.ToUpper();
}
public string changeToLowerCase(string s) {
return s.ToLower();
}
}
}

What I want to do as a test case is output the return value from
changeToUpperCase("asdf") or changeToLowerCase("ASDF") to a sle.

</snip>

All of my C# is COM compliant...but I can't seem to get it to access
the exposed method in my C# library.

Thank You in Advance
Adam

Jim Douglas

2005-04-10, 4:00 pm

You will need to expose your DLL as web services that PB can consume. Within
PB you create a proxy object that talks to the WebService. If I recall you
are going to have to use PB10.something.


"Adam Norris" <spam@slufact0ry.com> wrote in message
news:s3ng51pmt65glputhc0ieu33heupubl6ue@
4ax.com...
> I asked this before and didn't get a response. Since it wasn't a
> major functionality point (at the time) I didn't ask again.
>
> Now that it is slowly moving from the back burner to the front
> burner, I ask again (with updated techno-babble) if anyone has any
> ideas or suggestions to facilitate this?
>
> <snip>
>
> I have created a multitude of objects being used in a few web
> applications that were compiled into DLLs from C# source code. Is
> there a way to reference the exposed methods in those DLLs from within
> PowerBuilder 9+? Maybe as global external functions?
>
> --EXAMPLE (in C#):
>
> using System;
>
> namespace nothingSpecial {
> public class doIt {
> public string changeToUpperCase(string s) {
> return s.ToUpper();
> }
> public string changeToLowerCase(string s) {
> return s.ToLower();
> }
> }
> }
>
> What I want to do as a test case is output the return value from
> changeToUpperCase("asdf") or changeToLowerCase("ASDF") to a sle.
>
> </snip>
>
> All of my C# is COM compliant...but I can't seem to get it to access
> the exposed method in my C# library.
>
> Thank You in Advance
> Adam
>



Adam Norris

2005-04-12, 3:59 pm

could you elaborate or point to a doc/white paper on this?

Thanx
Adam

On Sun, 10 Apr 2005 21:08:47 -0500, "Jim Douglas"
<james.douglas@genesis-software.com> wrote:

>You will need to expose your DLL as web services that PB can consume. Within
>PB you create a proxy object that talks to the WebService. If I recall you
>are going to have to use PB10.something.
>
>
>"Adam Norris" <spam@slufact0ry.com> wrote in message
> news:s3ng51pmt65glputhc0ieu33heupubl6ue@
4ax.com...
>


Jim Douglas

2005-04-13, 8:57 am

Search the PB web site, sorry. I am no longer doing PB and working with
..NET. Our PB group recently had to call our services and I saw how they set
them up. I will check today for any doc that I can point you too but I would
start at the PB website.


"Adam Norris" <spam@slufact0ry.com> wrote in message
news:lmnn515044ejddtknlld9auc4pjsia797r@
4ax.com...
> could you elaborate or point to a doc/white paper on this?
>
> Thanx
> Adam
>
> On Sun, 10 Apr 2005 21:08:47 -0500, "Jim Douglas"
> <james.douglas@genesis-software.com> wrote:
>
Within[color=darkred]
you[color=darkred]
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com