Click here to Skip to main content
15,867,849 members
Home / Discussions / Web Development
   

Web Development

 
QuestionUploads and server-side processing for large files. Pin
walkeraj16-Feb-07 8:59
walkeraj16-Feb-07 8:59 
AnswerRe: Uploads and server-side processing for large files. Pin
Bradml16-Feb-07 11:17
Bradml16-Feb-07 11:17 
GeneralRe: Uploads and server-side processing for large files. Pin
walkeraj16-Feb-07 11:21
walkeraj16-Feb-07 11:21 
GeneralRe: Uploads and server-side processing for large files. Pin
Bradml16-Feb-07 11:43
Bradml16-Feb-07 11:43 
QuestionRe: Uploads and server-side processing for large files. Pin
walkeraj20-Feb-07 7:00
walkeraj20-Feb-07 7:00 
QuestionHelp, problem with Web Service (ASP.NET, VWD 2005, XP, IIS 5.1) Pin
DoomedOne16-Feb-07 2:49
DoomedOne16-Feb-07 2:49 
AnswerRe: Help, problem with Web Service (ASP.NET, VWD 2005, XP, IIS 5.1) Pin
Bradml16-Feb-07 11:15
Bradml16-Feb-07 11:15 
GeneralRe: Help, problem with Web Service (ASP.NET, VWD 2005, XP, IIS 5.1) Pin
DoomedOne20-Feb-07 3:16
DoomedOne20-Feb-07 3:16 
Hi
The .wsdl file is there, an accesing it from a web page whit a post request.
Here is the full code:

---------------------------------------------------------------------------------------------------------------------------------------------------------------------<
Web Service
File: Service.asmx

<%@ WebService Language="C#" CodeBehind="~/App_Code/Service.cs" Class="Service" %>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------<
File: Service.cs (in APP_Code sub dir)

using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

[WebService(Namespace = "http://localhost/WebServices")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
public Service () {
//Uncomment the following line if using designed components
//InitializeComponent();
}

[WebMethod]
public string HelloWorld() {
return "Hello World";
}

[WebMethod]
public string[] ListaCiudades()
{
string[] Ciudades = new string[30];
Ciudades[0] = "Asunción";
Ciudades[1] = "Belmopan";
Ciudades[2] = "Bogota";
Ciudades[3] = "Brasilia";
Ciudades[4] = "Bridgetown";
Ciudades[5] = "Buenos Aires";
Ciudades[6] = "Caracas";
Ciudades[7] = "Georgetown";
Ciudades[8] = "Guatemala";
Ciudades[9] = "Kingston";
Ciudades[10] = "La Habana";
Ciudades[11] = "La Paz";
Ciudades[12] = "Lima";
Ciudades[13] = "Managua";
Ciudades[14] = "Mexico";
Ciudades[15] = "Montevideo";
Ciudades[16] = "Nassau";
Ciudades[17] = "Otawa";
Ciudades[18] = "Panama";
Ciudades[19] = "Paramaribo";
Ciudades[20] = "Puerto España";
Ciudades[21] = "Puerto Príncipe";
Ciudades[22] = "Quito";
Ciudades[23] = "San José";
Ciudades[24] = "San Salvador";
Ciudades[25] = "Santiago";
Ciudades[26] = "Santo Domingo";
Ciudades[27] = "Sucre";
Ciudades[28] = "Tegusigalpa";
Ciudades[29] = "Washington";
return Ciudades;
}
}

---------------------------------------------------------------------------------------------------------------------------------------------------------------------
File: Service.asmx.wsdl (generated by http://localhost:1181/WebServices/Service.asmx?WSDL (edited removing :1181 from web adresses)


<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://localhost/WebServices" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetnamespace="http://localhost/WebServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementformdefault="qualified" targetnamespace="http://localhost/WebServices">
<s:element name="HelloWorld">
<s:complextype>

<s:element name="HelloWorldResponse">
<s:complextype>
<s:sequence>
<s:element minoccurs="0" maxoccurs="1" name="HelloWorldResult" type="s:string">



<s:element name="ListaCiudades">
<s:complextype>

<s:element name="ListaCiudadesResponse">
<s:complextype>
<s:sequence>
<s:element minoccurs="0" maxoccurs="1" name="ListaCiudadesResult" type="tns:ArrayOfString">



<s:complextype name="ArrayOfString">
<s:sequence>
<s:element minoccurs="0" maxoccurs="unbounded" name="string" nillable="true" type="s:string">




<wsdl:message name="HelloWorldSoapIn">
<wsdl:part name="parameters" element="tns:HelloWorld">

<wsdl:message name="HelloWorldSoapOut">
<wsdl:part name="parameters" element="tns:HelloWorldResponse">

<wsdl:message name="ListaCiudadesSoapIn">
<wsdl:part name="parameters" element="tns:ListaCiudades">

<wsdl:message name="ListaCiudadesSoapOut">
<wsdl:part name="parameters" element="tns:ListaCiudadesResponse">

<wsdl:porttype name="ServiceSoap">
<wsdl:operation name="HelloWorld">
<wsdl:input message="tns:HelloWorldSoapIn">
<wsdl:output message="tns:HelloWorldSoapOut">

<wsdl:operation name="ListaCiudades">
<wsdl:input message="tns:ListaCiudadesSoapIn">
<wsdl:output message="tns:ListaCiudadesSoapOut">


<wsdl:binding name="ServiceSoap" type="tns:ServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http">
<wsdl:operation name="HelloWorld">
<soap:operation soapaction="http://localhost/WebServices/HelloWorld" style="document">
<wsdl:input>
<soap:body use="literal">

<wsdl:output>
<soap:body use="literal">


<wsdl:operation name="ListaCiudades">
<soap:operation soapaction="http://localhost/WebServices/ListaCiudades" style="document">
<wsdl:input>
<soap:body use="literal">

<wsdl:output>
<soap:body use="literal">



<wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http">
<wsdl:operation name="HelloWorld">
<soap12:operation soapaction="http://localhost/WebServices/HelloWorld" style="document">
<wsdl:input>
<soap12:body use="literal">

<wsdl:output>
<soap12:body use="literal">


<wsdl:operation name="ListaCiudades">
<soap12:operation soapaction="http://localhost/WebServices/ListaCiudades" style="document">
<wsdl:input>
<soap12:body use="literal">

<wsdl:output>
<soap12:body use="literal">



<wsdl:service name="Service">
<wsdl:port name="ServiceSoap" binding="tns:ServiceSoap">
<soap:address location="http://localhost/WebService/Service.asmx">

<wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12">
<soap12:address location="http://localhost/WebService/Service.asmx">




---------------------------------------------------------------------------------------------------------------------------------------------------------------------

Consumer web Page




<title>
Untitled













---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error page: (remember the OS is in spanish, if need translate please let me know).


Error de servidor en la aplicación '/WebService'.
Referencia a objeto no establecida como instancia de un objeto.
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.

Detalles de la excepción: System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.

Error de código fuente:

Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.

Seguimiento de la pila:

[NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.]
System.Web.Hosting.ISAPIWorkerRequestInProc.GetServerVariable(String name) +1841
System.Web.Hosting.ISAPIWorkerRequest.ReadRequestHeaders() +121
System.Web.Hosting.ISAPIWorkerRequest.GetKnownRequestHeader(Int32 index) +126
System.Web.Hosting.ISAPIWorkerRequestInProc.GetKnownRequestHeader(Int32 index) +104
System.Web.HttpWorkerRequest.HasEntityBody() +17
System.Web.HttpRequest.GetEncodingFromHeaders() +223
System.Web.HttpRequest.get_ContentEncoding() +48
System.Web.HttpRequest.get_QueryStringEncoding() +7
System.Web.HttpRequest.get_QueryStringText() +3387544
System.Web.HttpRequest.get_PathWithQueryString() +10
System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +93
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Información de versión: Versión de Microsoft .NET Framework:2.0.50727.42; Versión ASP.NET:2.0.50727.210


why? Confused | :confused:
GeneralRe: Help, problem with Web Service (ASP.NET, VWD 2005, XP, IIS 5.1) Pin
DoomedOne20-Feb-07 3:24
DoomedOne20-Feb-07 3:24 
AnswerRe: Help, problem with Web Service (ASP.NET, VWD 2005, XP, IIS 5.1) Pin
DoomedOne26-Mar-07 8:24
DoomedOne26-Mar-07 8:24 
GeneralDisplay PDF in ASP.NET Pin
Brady Kelly16-Feb-07 0:55
Brady Kelly16-Feb-07 0:55 
AnswerRe: Display PDF in ASP.NET Pin
Ankur.Bakliwal16-Feb-07 2:19
Ankur.Bakliwal16-Feb-07 2:19 
GeneralRe: Display PDF in ASP.NET Pin
Sylvester george16-Feb-07 2:37
Sylvester george16-Feb-07 2:37 
GeneralRe: Display PDF in ASP.NET Pin
badgrs16-Feb-07 3:19
badgrs16-Feb-07 3:19 
Questionfor ajax, do i nid... Pin
Nekshan15-Feb-07 20:11
Nekshan15-Feb-07 20:11 
AnswerRe: for ajax, do i nid... Pin
Bradml15-Feb-07 22:54
Bradml15-Feb-07 22:54 
AnswerRe: for ajax, do i nid... Pin
badgrs15-Feb-07 23:05
badgrs15-Feb-07 23:05 
GeneralRe: for ajax, do i nid... Pin
Bradml15-Feb-07 23:58
Bradml15-Feb-07 23:58 
GeneralRe: for ajax, do i nid... Pin
theJazzyBrain16-Feb-07 4:57
theJazzyBrain16-Feb-07 4:57 
GeneralRe: for ajax, do i nid... Pin
Bradml16-Feb-07 11:12
Bradml16-Feb-07 11:12 
GeneralRe: for ajax, do i nid... Pin
theJazzyBrain16-Feb-07 13:39
theJazzyBrain16-Feb-07 13:39 
GeneralRe: for ajax, do i nid... Pin
Bradml16-Feb-07 13:48
Bradml16-Feb-07 13:48 
GeneralRe: for ajax, do i nid... Pin
theJazzyBrain17-Feb-07 0:01
theJazzyBrain17-Feb-07 0:01 
AnswerRe: for ajax, do i nid... Pin
theJazzyBrain16-Feb-07 4:51
theJazzyBrain16-Feb-07 4:51 
GeneralRe: for ajax, do i nid... Pin
led mike16-Feb-07 4:57
led mike16-Feb-07 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.