Copy link to clipboard
Copied
Hi, i'm trying to connect to a .NET webservice using Data Service Wizard. I think i must select WDSL service. When i set my webservice URL:
http://192.168.1.135/prueba/webservice1.asmx
I get this error:
There was an error during service introspection.
WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://192.168.1.135/prueba/webservice1.asmx'.: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag "</p>".
The webservice is very simple:
namespace iNext
{
/// <summary>
/// Descripción breve de WebService1
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
// Para permitir que se llame a este servicio Web desde un script, usando ASP.NET AJAX, quite la marca de comentario de la lÃnea siguiente.
[System.Web.Script.Services.ScriptService]
public class WebService1 : System.Web.Services.WebService
{
[WebMethod]
public String[] GetClientes(string prefixText, int count)
{
CLIENTESTableAdapter t = new CLIENTESTableAdapter();
ClientesDS.CLIENTESDataTable cds = new ClientesDS.CLIENTESDataTable();
t.Filtra(cds, "%" + prefixText + "%");
List<string> responses = new List<string>();
foreach (DataRow dr in cds)
{
string make = (string)dr["NOMFISCAL"];
responses.Add(make);
}
return responses.ToArray();
}
}
}
Where is the error?
Thanks
Copy link to clipboard
Copied
can you give a url to your wsdl > what you have given is local 192.* no one can hit it.
Copy link to clipboard
Copied
Sorry but i can't give you access to the webservice. As you can see is very simple. If i put the url on the IE i can see the SOAP answer of IIS without any problem and test the webservice so, it's ok. The problem is not the webservice.
Copy link to clipboard
Copied
I think you have to set webservice url with ?WSDL at the end --> http://192.168.1.135/prueba/webservice1.asmx?WSDL
Best Regards,
Miguel
Copy link to clipboard
Copied
I have tried to put ?WDSL with no luck.
Copy link to clipboard
Copied
not ?WDSL
is ?WSDL
Best regards,
Miguel
Copy link to clipboard
Copied
I make, here, a quickly teste.
If you don't put ?WSDL (not ?WDSL) you receive the following error:
There was an error during service introspection.
WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost/webservices/service1.asmx?WDSL'.: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag "</p>".
So you have to put at end ?WSDL -> http://localhost/webservices/service1.asmx?WSDL
Copy link to clipboard
Copied
stick it on an external IIS server (not 192.168.*.*) and let people help you if you really want help.
or make a new one with 1 function. pass it a 7 and have it return the string "snake"
pass it a 9 and have it return the string "goober"
that should break security protocol. no state secrets. i will stick it on my amazon ec2 instance and we can point at it.
Copy link to clipboard
Copied
Hi, now i get this error:
There was an error during service introspection.
WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported
document at 'http://192.168.1.135/Webservice1.asmx?WSDL'.:
java.io.FileNotFoundException: This file was not found:
http://192.168.1.135/Webservice1.asmx?WSDL
El 14/05/2011 20:05, migueldmag escribió:
I make, here, a quickly teste.
If you don't put ?WSDL (not ?WDSL) you receive the following error:
There was an error during service introspection.
WSDLException: faultCode=PARSER_ERROR: Problem parsing 'http://localhost/webservices/service1.asmx?WDSL'.: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag "</p>".
>
>
Best regards,
Miguel
>
>
Copy link to clipboard
Copied
Hi
your new error is because you maybe set the wrong url.
you set http://192.168.1.135/Webservice1.asmx?WSDL but in your first post you say:
http://192.168.1.135/prueba/webservice1.asmx?WSDL
Best regards,
Miguel
Copy link to clipboard
Copied
Hi Miguel, thank you very much. You're right and now it works. It's
monday and i'm a little bit slept
El 16/05/2011 10:42, migueldmag escribió:
Hi
your new error is because you maybe set the wrong url.
you set http://192.168.1.135/Webservice1.asmx?WSDL'.: but in your first post you say:
http://192.168.1.135/prueba/webservice1.asmx?WSDL
Best regards,
Miguel
>