WebService SharePoint

17/06/2009 - 19:09 por Arnold | Informe spam
Hola mi Problema es el siguiente, necesito conectarme al active directory
para extraer información de usuarios, pero lo estoy tratando de hacer con un
webservice que le apunte al userprofileservice.asmx en sharepoint, pero
cuando lo llamo desde visual studio me saca el siguiente error

The document at the url http://localhost/_vti_bin/userprofileservice.asmx
was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Root element is missing.'.
- Report from 'http://localhost/_vti_bin/userprofileservice.asmx' is 'The
document format is not recognized (the content type is 'text/html;
- Report from 'WSDL Document' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.

Estoy usando MOSS 2007 y visual studio 2005 y 2008 y con ninguno funciona

Gracias por su colaboracion

Preguntas similare

Leer las respuestas

#1 Gustavo
18/06/2009 - 09:56 | Informe spam
Hola Arnold,
Me da la idea que estas usando un puerto diferente al puerto por defecto. Si
es asi, debes llamar el servicio con
http://localhost:NumeroPuerto/_vti_bin/userprofileservice.asmx
Suerte,
Gustavo
http://www.gavd.net/servers/default.aspx
http://geeks.ms/blogs/gvelez/


"Arnold" wrote:

Hola mi Problema es el siguiente, necesito conectarme al active directory
para extraer información de usuarios, pero lo estoy tratando de hacer con un
webservice que le apunte al userprofileservice.asmx en sharepoint, pero
cuando lo llamo desde visual studio me saca el siguiente error

The document at the url http://localhost/_vti_bin/userprofileservice.asmx
was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Root element is missing.'.
- Report from 'http://localhost/_vti_bin/userprofileservice.asmx' is 'The
document format is not recognized (the content type is 'text/html;
- Report from 'WSDL Document' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.
- Report from 'XML Schema' is 'The document format is not recognized (the
content type is 'text/html; charset=utf-8').'.

Estoy usando MOSS 2007 y visual studio 2005 y 2008 y con ninguno funciona

Gracias por su colaboracion
Respuesta Responder a este mensaje
#2 Arnold
18/06/2009 - 15:29 | Informe spam
Hola Gustavo, muchas gracias por tu respuesta, pero no puede ser el puerto
porque al dar en visual add web reference el me da la opción de buscarlo por
web services on the local machine y de esta forma el ya reconoce el puerto,
yo me inclinaria porque sea un problema de configuración o la falta de un
archivo debido a que tengo como 5 sitios con puertos distintos y el web
service arroja el error en cada uno de ellos

Gracias

"Gustavo" wrote:

Hola Arnold,
Me da la idea que estas usando un puerto diferente al puerto por defecto. Si
es asi, debes llamar el servicio con
http://localhost:NumeroPuerto/_vti_bin/userprofileservice.asmx
Suerte,
Gustavo
http://www.gavd.net/servers/default.aspx
http://geeks.ms/blogs/gvelez/


"Arnold" wrote:

> Hola mi Problema es el siguiente, necesito conectarme al active directory
> para extraer información de usuarios, pero lo estoy tratando de hacer con un
> webservice que le apunte al userprofileservice.asmx en sharepoint, pero
> cuando lo llamo desde visual studio me saca el siguiente error
>
> The document at the url http://localhost/_vti_bin/userprofileservice.asmx
> was not recognized as a known document type.
> The error message from each known type may help you fix the problem:
> - Report from 'DISCO Document' is 'Root element is missing.'.
> - Report from 'http://localhost/_vti_bin/userprofileservice.asmx' is 'The
> document format is not recognized (the content type is 'text/html;
> - Report from 'WSDL Document' is 'The document format is not recognized (the
> content type is 'text/html; charset=utf-8').'.
> - Report from 'XML Schema' is 'The document format is not recognized (the
> content type is 'text/html; charset=utf-8').'.
>
> Estoy usando MOSS 2007 y visual studio 2005 y 2008 y con ninguno funciona
>
> Gracias por su colaboracion
Respuesta Responder a este mensaje
#3 Gustavo
18/06/2009 - 19:00 | Informe spam
Hola de nuevo,
Todos los archivos para los Servicios Web de SharePoint se encuentran en el
directorio "C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\12\ISAPI" y los archivos son comunes para todos los puertos que
utilices. Dale una mirada a ver si encuentras alli los archivos
userprofileservice.asmx, userprofileservicedisco.aspx y
userprofileservicewsdl.aspx que son los que necesitas.
Suerte,
Gustavo
http://www.gavd.net/servers/default.aspx
http://geeks.ms/blogs/gvelez/


"Arnold" wrote:

Hola Gustavo, muchas gracias por tu respuesta, pero no puede ser el puerto
porque al dar en visual add web reference el me da la opción de buscarlo por
web services on the local machine y de esta forma el ya reconoce el puerto,
yo me inclinaria porque sea un problema de configuración o la falta de un
archivo debido a que tengo como 5 sitios con puertos distintos y el web
service arroja el error en cada uno de ellos

Gracias

"Gustavo" wrote:

> Hola Arnold,
> Me da la idea que estas usando un puerto diferente al puerto por defecto. Si
> es asi, debes llamar el servicio con
> http://localhost:NumeroPuerto/_vti_bin/userprofileservice.asmx
> Suerte,
> Gustavo
> http://www.gavd.net/servers/default.aspx
> http://geeks.ms/blogs/gvelez/
>
>
> "Arnold" wrote:
>
> > Hola mi Problema es el siguiente, necesito conectarme al active directory
> > para extraer información de usuarios, pero lo estoy tratando de hacer con un
> > webservice que le apunte al userprofileservice.asmx en sharepoint, pero
> > cuando lo llamo desde visual studio me saca el siguiente error
> >
> > The document at the url http://localhost/_vti_bin/userprofileservice.asmx
> > was not recognized as a known document type.
> > The error message from each known type may help you fix the problem:
> > - Report from 'DISCO Document' is 'Root element is missing.'.
> > - Report from 'http://localhost/_vti_bin/userprofileservice.asmx' is 'The
> > document format is not recognized (the content type is 'text/html;
> > - Report from 'WSDL Document' is 'The document format is not recognized (the
> > content type is 'text/html; charset=utf-8').'.
> > - Report from 'XML Schema' is 'The document format is not recognized (the
> > content type is 'text/html; charset=utf-8').'.
> >
> > Estoy usando MOSS 2007 y visual studio 2005 y 2008 y con ninguno funciona
> >
> > Gracias por su colaboracion
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una preguntaRespuesta Tengo una respuesta
Search Busqueda sugerida