Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 1st, 2006, 03:50 PM
Registered User
Join Date: Nov 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Consuming Web Service

I am trying to create a consuming webclient. (Visual Studio 2005)
Web service will provide SessionID when username and password were passed. I am trying to retreive the SessionID through Web Service.

Here's WSDL.

- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.tmaresources.com/TIMSSWebServices/TIMSSAccess">
- <s:element name="Connect">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="Username" type="s:string" />
  <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string" />
- <s:element name="ConnectResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="ConnectResult" type="s:string" />

when you invoke, you get this next

 <?xml version="1.0" encoding="utf-8" ?>
  <string xmlns="http://www.tmaresources.com/TIMSSWebServices/TIMSSAccess"><Response SessionId="075EB63C638541A297996A3EADAB0102" xmlns="http://schemas.tmaresources.com/timssws60.xsd"><Status Success="true" Message="Connected" ErrorCode="0">The actual length is less than the Minlength value. An error occurred at , (137, 4).</Status></Response></string>

Here'e a code on webclient. I am not sure I am doing right to get the SessionID.

    protected void Page_Load(object sender, EventArgs e)
        TIMSSAccess oWebService = new TIMSSAccess();

        string sID = "";
        //sID = oWebService.Connect(username, password);
        sID = oWebService.Connect("startup", "startup");

        lbl_Info.Text = sID

I am not getting any result(SessionID)
Anyone has any idea? thank you

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Consuming Web service with NuSoap CraigWhitfield PHP How-To 0 February 27th, 2008 11:20 AM
Web Service Consuming another web service CraigWhitfield EJB 0 January 10th, 2008 08:38 AM
Consuming Axis Web Service from .NET - Problem Koushik .NET Web Services 0 October 28th, 2006 07:29 AM
Consuming web service with dismal performance jcrossett ASP.NET 2.0 Professional 0 December 13th, 2005 11:19 AM
Consuming web services in asp.net using http post dpk100 .NET Web Services 1 May 4th, 2005 02:03 AM

All times are GMT -4. The time now is 11:10 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.