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
Register
Register | FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
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:sequence>
  </s:complexType>
  </s:element>
- <s:element name="ConnectResponse">
- <s:complexType>
- <s:sequence>
  <s:element minOccurs="0" maxOccurs="1" name="ConnectResult" type="s:string" />
  </s:sequence>
  </s:complexType>
  </s:element>


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
Reply


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 05:51 PM.


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