Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.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
 
Old November 1st, 2006, 03:50 PM
Registered User
 
Join Date: Nov 2006
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






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





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