Introduce DataBase,Asp.net,JavaScript,Xml,Html,Css,Sql,Php,ASP.NET Controls,AJAX,Tools,HTML,CSS,JavaScript,Open Source Project,WPF,.Net Framework,Linq
Top Recommended Hosting

Web Service with multiple variables, output multiple values to repeater

by the3factory 5/10/2008 8:01:00 PM
Question:

I'm having trouble getting the data from the below: 

 

../webservices/yellowpages/Default.asmx?op=EmployeesByLastNameV2

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /webservices/yellowpages/Default.asmx/EmployeesByLastNameV2 HTTP/1.1
Host: sd.jsc.nasa.gov
Content-Type: application/x-www-form-urlencoded
Content-Length: length

lastName=string&orgID=string

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<EmployeesV2 xmlns="http://....../">
  <EmployeeV2>
    <ID>int</ID>
    <CompanyID>int</CompanyID>
    <MailCodeID>int</MailCodeID>
    <Active>boolean</Active>
    <FirstName>string</FirstName>
    <MiddleName>string</MiddleName>
    <LastName>string</LastName>
    <Nickname>string</Nickname>
    <Prefix>string</Prefix>
    <Suffix>string</Suffix>
    <Title>string</Title>
    <Email>string</Email>
    <OrganizationID>string</OrganizationID>

I'm using VB for the code behind.  I've tried every combination I can think of to get this data pulled into a repeater.  I've googled and read through a million examples and watched the web services video from asp.net, but I still can't grasp the concept for whatever reason.  Could someone help me with the VB code behind to grab this data and put it in a repeater?   Thanks in advance.  


Answer1:

Can you tell us more about your environment. Are there any requirements, like using only Http Post and not SOAP format. Are you creating a proxy of the web service. As per your post it appears your client is a .NET web application from which you are trying to call the web service.


Answer2:
It is a .net web application that I am trying to call the web service via a proxy of the web service. I can do it either post or soap, but prefer post. Thanks for your help.

Related posts

Sign up for PayPal and start accepting credit card payments instantly.


Powered by BlogEngine.NET 1.2.0.0