.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Authorize.Net SOAP object issue

Posted By:      Posted Date: September 26, 2010    Points: 0   Category :ASP.Net

I get message that "amount" and "startDate" are required from Authorize.Net.  I can't figure out why these values aren't registering.

here is my code behind in vb.  Please advise.


Imports System
Imports System.Collections
Imports System.IO
Imports System.Text
Imports System.Xml
Imports System.Xml.Serialization
Imports System.Net
Imports System.Data.SqlClient

Partial Class CCard
    Inherits System.Web.UI.Page

    Public ReadOnly Property subXAmount() As String
            Dim xamount As String = ""
            Select Case Convert.ToString(Session("MembType"))
                Case "0"
                    xamount = ".01"
                Case "1"
                    xamount = "5"
                Case "2"
                    xamount = "25"
                Case "3"
                    xamount = "2"
            End Select
            Return xamount
        End Get
    End Property

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

        If TextBoxCCN.Text = "" Or TextBoxCCName.Text = "" Then
            If TextBoxCCN.Text = "" Then

View Complete Post

More Related Resource Links

A Young Person's Guide to The Simple Object Access Protocol: SOAP Increases Interoperability Across


The Simple Object Access Protocol (SOAP) facilitates interoperability among a wide range of programs and platforms, making existing applications accessible to a broader range of users. SOAP combines the proven Web technology of HTTP with the flexibility and extensibility of XML. This article takes you on a comprehensive tour of Object RPC technology to help you understand the foundations of SOAP and the ways it overcomes many of the limitations of existing technologies, including DCOM and CORBA. This is followed by a detailed treatment of the SOAP encoding rules with a focus on how SOAP maps onto existing ORPC concepts.

Don Box

MSDN Magazine March 2000

Small issue extracting soap from xml using Xelement

The following code works fine, except it only gives me the value being returned (integer), with no XML tags at all.  I want the raw XML without the soap (not just the value). display code:                 Dim path1 As String                 path1 = "c:\temp\testing.xml"                 ExtractSoap()                 File.WriteAllText(path1, ExtractSoap.Value.ToString())   function: Public Function ExtractSoap() As XElement         internalStream.Position = 0         Dim xmlMessage As XElement = XElement.Load(XmlReader.Create(internalStream))         Dim soap As XNamespace = "http://schemas.xmlsoap.org/soap/envelope/"         Dim body As XElement = xmlMessage.Element(soap + "Body")         If body IsNot Nothing Then             Return DirectCast(body.FirstNode, XElement)         End

Sharepoint Designer issue "could not deserialize object"?

Hi there, I'm relatively new to Sharepoint in general but I've got an install of Sharepoint Foundation and I'm working my way through the book "Sharepoint 2010 Development." At any rate, I'm trying to create a workflow in Visio 2010 and then export that workflow into Sharepoint Designer 2010. However, when I try to import the .vwi file into Designer, I get a "Could not deserialize object. The type 'Microsoft.Office.Workflow.Actions.ApprovalTaskProcess' could not be resolved." This, of course, is because in Visio I have a Start Approval Process object.  Is this particular workflow item not available for Sharepoint Foundation? Does anyone have any idea why I'm getting this error? Any feedback is appreciated. Thanks, Jearod

Weird Issue with the MOSS Search : FileExtension metadata object type instead of string

Hello, We 've got a strange issue with the search and especially with the FileExtension metadata. when we make a query on the search engine, we receive for the FileExtension metadata an unexcpected result. here is a printscreen showing the issue. http://cid-53eee937847a625e.photos.live.com/self.aspx/Public/Untitled.jpg as you can see the Type of the FileExtension is object and it should be string and I checked the type of the object and it's System.String[] the element at the index 0 contains the value! what's wrong ? thx in advance

passing messageContract object to a WCF Service method using Soap - not as a method parameter

i want a web application to create a service reference to my WCF service, insert information to the header of the soap call and call my WCF method. my WCF supports soap operations (also there is an endpoint in the config). i read about MessageContract attribute and declared one in the interface file: [ServiceContract] public interface IBasicService { [OperationContract] [WebGet(UriTemplate = "GetData?value={value}")] // Add support for HTTP GET Requests string GetData(int value); } [MessageContract] public class BasicServiceHeader { [MessageHeader] public string myString; } the implementation of the contract : public class BasicService : IBasicService { public string GetData(int value) { return string.Format("You entered: {0}", value); } } i don't want the BasicServiceHeader to be passed as a parameter of GetData function , i want to keep the function signature as it is (without a BasicServiceHeader parameter) and to extract the BasicServiceHeader inside the function, (just like using soapHeader) can i do that ?

SharePoint 2010 Client Object Model Issue



I want to make a windows form (VS 2010, C#.NET), where you can connect to a specific list on a SP site and display all the items in a Data Grid View.

I made the connection to x site and y list and display them to a treeview. When i add the list to the tree view, i set the property Tag to it and assign as value the name of the list. Then through the NodeMouseClick event handler i get the current list is selected in the tree view.

The next step i want to display all the items from the list in a Data Grid View (windows form).

The event handler code is here:

    private void farmExplorer_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
        if (e.Node.Tag != null)
          selectedList = ((SP.List)e.Node.Tag);
          String newUrlToLoad = currentUrl.ToString() + selectedList.ParentWebUrl;
          using (SP.ClientContext ctx = new SP.ClientContext(newUrlToLoad))
            SP.Web webToLoad = ctx.Web;
            SP.List myLis

Client object Model Issue




I'm new to SharePoint 2010 development but I have good experience in SharePoint 2007.


I want update SharePoint list data using client object model using ECMA scripts.


I was able to update the data, but when I tried it for a user who has only read access it fails.


I know its authentication/permission issue, I tried to find out if there are ways to impersonate user but I guess there are none[using JavaScript/ECMA scripts].


Performance issue with WCF deserializing base64 strings sent in SOAP body with CRLF


We have a big performance issue with the deserialization of base64 string in a WCF Client (C#) which is calling a web service to get PDF files. This service is a third party service not in .NET.

Server side, each PDF file is returned by the third party service as a base64 string. This base64 string is "formatted" in the returned SOAP envelope with carriage return + line feed (CRLF) every 73 characters. The third party provides a wsdl + XSD to described his service.

Client side, in the DataContract generated from the XSD, the DataMember (named "img") containing the returned PDF is declared as "byte[]" (which is logic). But we noticed that at runtime, once a message arrives, a lot of time is spent client side in the "WCF Soap Stack" before getting the PDF.

So we did some tests and discovered that after changing client side the DataMember "img" from "byte[]" to "string" (+ doing a Convert.FromBase64String() on "img"), the performance is incredibly improved (it depends on the size of the PDF).

We did next create a WCF Service to emulate the third party service. To send the very same data as the third party, we did save a soap body received from this third party into a XML file (response.xml) and we loaded + deserialized this one in our service.

In this service, we did f

Cache object issue


On the difference between application variable and cache object, a post in a certain forum says:"the cached object is stored in process, which means it doesn't persist if the application domain is restarted and it can't be shared between computers in a web farm. "

Anything in .NET or other alternative would allow the object to persist after the application domain is restarted and be shared between computers in a web farm?


SQLCF 3.5 SP2 Replication Issue: An instance of the SQL Server Reconciler error object cannot be cre

Hi, we have a desktop application synchronizing with our SQL server using merge replication via IIS6.

Previously we used SQL2005 Ent database server, SQLCF 3.5SP1 tools and runtime library were installed on IIS machine, the desktop application was compiled with SQLCF 3.5 SP1 runtime as well.

Last week we upgraded our server to SQL 2008 R2, the application has been broken since then.

We tried to upgrade to SQLCF 3.5 SP2 tools and runtime on IIS ==> didn't help
We tried to install SQLCF 3.5 SP2 on the desktop where the application running (but left the application unchanged) ==> didn't help

Could anybody here help me with this? Do I need to re-compile my application?

Here are some debug information:
SQLCESALOG.TXT: Thread=1284 RSCB=1 Command=SYNC Hr=00000000 Failed to use 10.0 error components. Exiting... 0

Impersonation and Access Tests Action Status ErrorCode
Impersonate User SUCCESS 0x0
ReadWriteDeleteMessageFile SUCCESS 0x0

SQL Server Compact Modules Test Module Status ErrorCode Version
sqlcerp35.dll SUCCESS 0x0 3.5.8080.0
sqlcesa35.dll SUCCESS 0x0 3.5.8080.0

Reconciler Test Reconciler Status ErrorCode
10.0 Database Reconciler SUCCESS 0x0
9.0 Database Reconciler SUCCESS 0x0

Any help would be appreci

SOAP Client doesn't populate result object


When consuming a remote service XYZ ... XYZ_RESP = client.GET_XYZ_SERVICE(XYZ_REQUEST), the response object is set to null.  Using system.diagnostics, I can see that the results are being returned to .NET in the HttpWebResponse.


I have tried modifying the xsd as described by this link without success:




<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns="http://www.example.org" elementFormDefault="qualified" targetNamespace="http://xmlns.oracle.com/Enterprise/HCM/services" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:element name="XYZ_RESP">
      <xsd:sequence maxOccurs="1">
        <xsd:element name="LOVS">
              <xsd:element name="LOV">

Thinking about new C# method prototypes: object as dictionary

I recently had to write a small Flickr API. I know many .Net API for Flickr already exist but I needed one for a Silverlight application. Whatever, it's only about building some querystrings so I did it by myself. It's been an opportunity to think again about a classical question: how to pass parameters to a method ?

Imagine you have a generic method to call some Flickr functions.

C# Object Oriented Programming

So far in C# Essentials we have looked at the basics of programming in C# such as variable types and flow control. Although it would be possible to write a functional program using these techniques, there is much more to becoming a proficient C# programmer. C# is, above all, an object oriented programming language and as such any C# programmer will be expected to create object-oriented applications using this language.

Object Oriented Programming

Four core concept of OOP Object Oriented Programming. 1.Inheritance, 2.Polymorphism, 3.Abstraction and 4.Encapsulation

Object-Oriented Programming Concepts

This is the first in a series of articles describing the use of object-oriented programming techniques as implemented by the C# programming language. This series follows the C# Fundamentals tutorial that beginners are advised to read first.

Overview of SharePoint Object Model

SharePoint offers a set of structured server-side objects those are widely used to program SharePoint Applications. These objects are hierarchically arranged and you can drill down through the object hierarchy to obtain the object that contains the components of SharePoint Application you need to use in your code.

What is the difference between "dynamic" and "object" keywords?

Let's take a quick look at the object keyword first. I'm not going to talk a lot about it because it's been around since C# 1.0. This keyword is nothing more than a shortcut for System.Object, which is the root type in the C# class hierarchy. (However, as Eric Lippert pointed out in his blog post, not everything in C# derives from object.) This is a powerful mechanism, since you can assign almost any value to instances of this type.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend