FRIDAY, MAY 18, 2012




MY ACCOUNT LOGIN

LOGIN NAME:

PASSWORD:

REGISTER TODAY!
FORGOT YOUR PASSWORD?
TRY ALL WEB SERVICES
FREE FOR 30 DAYS!

WEB SERVICES

XWEBEMAILVALIDATION [tool]

XWEB1003 [real estate]

XWEBACHDIRECTORY [financial]

XWEBCHECKOUT [ecommerce]

XWEBTD [ecommerce]

XWEBNEWS [content mgmt.]


ANNOUNCEMENTS


OPEN SOURCE ONLINE 1003 SOA SOLUTION VERSION 2.0 RELEASED

XWEB1003 VERSION 2 LAUNCHED

XWEB1003 OFFICIALLY RELEASED

SECTION VI (ASSETS AND LIABILITIES) - REAL ESTATE AND CREDIT PREVIOUSLY RECEIVED

SECTION VI (ASSETS AND LIABILITIES) - LIABILITIES



Web Services, SOA Solutions & Services, Cloud Computing - XWebServices Inc.


HOME

WEB SERVICES

SOA SOLUTIONS

SOA SERVICES

ABOUT US





XWEB1003


Documentation


FAQs


Implementation Guides


Forum


Pricing






SEARCH









HOME  ::  WEB SERVICES  ::  XWEB1003  ::  FORUM

:: Web Services :: XWeb1003 :: Topic ::

Security Credentials in .NET 3.5 and VS2010

I am having some difficulty in trying to connect to the XWeb1003 web service (Version 2.1).  I have tried to gather as much information from the Online1003 sample project as possible, however, that project is using WSE and, according to Microsoft,  I need to use WCF.

Here is the code that I attempted to use to get access to the web service, but it is failing:

                     XWeb1003Port XWeb1003P = newXWeb1003Port();

                     NetworkCredential BSACredentials = newNetworkCredential(UserName, Password);

                     XWeb1003P.Credentials = BSACredentials;

                     LoadApplicationRequest LoadRequest = newLoadApplicationRequest();

                     LoadRequest.Application_ID = PlanID;

                     LoadApplicationResponse LoadResponse = XWeb1003P.LoadApplication(LoadRequest);

Is there a newer version of the sample code targeted for later versions of .NET/Visual Studio?  Alternatively, can you provide some sample code that would establish the security credentials in .NET 3.5 and Visual Studio 2010?

--Tad


Started: Friday, August 05, 2011

By: BorrowSmart2

POST REPLY


:: Reply ::

Re: Security Credentials in .NET 3.5 and VS2010

I Too am having a great deal of trouble getting this to work..

Their sample project uses XWeb1003PortWse but I don't see this class anywhere, just XWeb1003Port which does NOT have the SetClientCredential method..

I could really use some help here, as we would like to purchase this service and offer it to some of our clients, but I can't even make a connection.

The closest I got was using the old version 1:

            Application app = new Application();
           
            AuthHeader aheader = new XWeb1003.AuthHeader();
            aheader.LoginName = "login";
            aheader.Password = "pass";

            XWeb1003 the103 = new XWeb1003.XWeb1003();
            the103.AuthHeaderValue = aheader;

            AddApplicationRequest r = new AddApplicationRequest();
            r.Application = new Application();
            r.Application.Application_ID = new Guid().ToString();
           
            string apps = r.Application.ToString();
            the103.ProcessApplication(r.Application.ToString());

However, I gave up on this, because I can't seem to find a structure that will generate the XML needed by "ProcessApplication".... 'r.Application.ToString' does not generate XML, just class name.


HELP!

Posted: Sunday, October 30, 2011

By: marcond05

POST REPLY






HOME
WEB SERVICES
SOA SOLUTIONS
SOA SERVICES
MY ACCOUNT
ABOUT US