Results 1 to 4 of 4

Thread: Namespace/Class/Project design questions from newbie

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    New Port Richey, FL
    Posts
    4

    Namespace/Class/Project design questions from newbie

    I am developing a set of classes to process payments for several web sites. I am planning to expose these classes to the web sites as a web service. When I call the web service to process a transaction I would like to pass it a "transaction" object, but I am confused as to how I should develop the project so that the web sites will have knowledge of the transaction object so they can instantiate the object and pass it to the web service? Any help would be greatly appreciated.

    Thanks!

    Shawn

  2. #2
    New Member
    Join Date
    Dec 2004
    Posts
    9

    Re: Namespace/Class/Project design questions from newbie

    can you tell me which payment integration method you used?

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2004
    Location
    New Port Richey, FL
    Posts
    4

    Re: Namespace/Class/Project design questions from newbie

    I have yet to receive an answer to this post on this board as well as a few others. I am waiting until I have a better understanding before I start this project.

  4. #4
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    Re: Namespace/Class/Project design questions from newbie

    Hi,

    ...this can get a bit complicated too quickly, so I will just mention that you can have a web service that declares a public class like this:
    VB Code:
    1. Public Class MyClass
    2.  
    3.     Public hashObject As Byte()
    4.     Public signedData As Byte()
    5.     Public PaymentType As Integer
    6.  
    7. End Class
    and you could have that passed to your web methods as a parameter:
    VB Code:
    1. <WebMethod()> Public Function DoSomething(ByVal MyObject As MyClass) As Integer
    The class would be described to web service users by the web service definition.

    Cheers,
    NTG
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width