iT Synergy Blogs

Growing Innovation - Soluciones a problemas reales

  • Facebook
  • Instagram
  • LinkedIn
  • Phone
  • Twitter
  • YouTube

Copyright © 2025 · iT Synergy·

RPC style binding in MSE
RPC style binding in MSE avatar

April 7, 2011 By Jaime Alonso Páez torres Leave a Comment

Problema

Se genera un error al intentar importar un servicio web cuyo WSDL este construido con el estilo del binding “RPC” (RPC style binding).

Causa

MSE (Managed Services Engine) no soporta servicios web con este estilo de binding RPC (RPC style binding) sino DOCUMENT style binding.  Ver link relacionados:

http://servicesengine.codeplex.com/discussions/63145?ProjectName=servicesengine
http://servicesengine.codeplex.com/discussions/76419

Solución

  • Crear un servicio .Net (preferiblemente WCF) proxy del mismo.
  • Intentar modificar el endpoint del servicio para dejarlo con un binding con estilo document y no RPC, con el fin que MSE pueda entender.

Recursos relacionados sobre RPC y Document Style Binding

http://www.w3.org/TR/wsdl
The Difference Between RPC and Document Style WSDL

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c018da90-0201-0010-ed85-d714ff7b7019
Keep up with the Web service styles (and uses)
http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-wsstyles.html?page=1
WSDL binding styles 
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.wbit.help.ui.doc/topics/rwsdlstyle.html

Filed Under: MSE Tagged With: MSE

Convertir un wsdl a xsd
Convertir un wsdl a xsd avatar

April 1, 2011 By Jaime Alonso Páez torres Leave a Comment

Objetivo

Utilizar el esquema XSD correspondiente de un servicio web fuente, para poder definir los mensajes de entrada y salida de sus operaciones para construir su correspondiente servicio web proxy.

Pasos a seguir

1. Generar la clase proxy y el archivo de configuración correspondiente del servicio web fuente, usando Service Model Metadata Utility (svc.exe), que es una utilidad que se encuentra en Visual Studio Command Prompt .

Ejemplo,

Svcutil.exe http://serviciofuente.dominio.com:9001/service?wsdl /out:proxy.cs  /language:c#  /config:app.config  /namespace:*,Servicios.Proxy

En la anterior sentencia, se especifica la dirección URL del servicio web fuente, el nombre de la clase proxy, el lenguaje, el nombre de archivo de configuración que contendrá la configuración del Endpoint para invocar el servicio y el NameSpace que se desea para la clase proxy (opcional).

Notas a tener en cuenta,

Esta herramienta no soporta Multiframework. Si se desea generar un artefacto .Net 4.0, se tiene que usar svcutil.exe desde el SDK de .Net 4.0. Para generar un artefacto .Net 3.5, se tiene que usar svcutil.exe desde el SDK de .Net 3.5.

2. Empaquetar la clase proxy generada, dentro de una librería de .Net y compilar el assembly.

3. Con la utilidad XML Schema Definition Tool (xsd.exe), se genera el esquema correspondiente del assembly anteriormente compilado. Esta es también es una utilidad que se encuentra en Visual Studio Command Prompt .

Ejecutar la siguiente sentencia donde se encuentra ubicado el assembly correspondiente,

xsd .exe Servicio.Proxy.Service.dll

El comando anterior genera el esquema XML para todos los tipos del ensamblado myAssembly.dll, y los guarda como schema0.xsd en el directorio actual.

Y sabor !!!   Romanos 13: 11 – 14

Filed Under: WCF Tagged With: WCF

An application error occurred in Catalog Service Operation [GetIdFromName]
An application error occurred in Catalog Service Operation [GetIdFromName] avatar

March 31, 2011 By Jaime Alonso Páez torres Leave a Comment

Problema

Al tratar de importar un servicio WCF en MSE construido a partir de Web Service Software Factory (WSSF), se me presento el siguiente error:

An application error occurred in Catalog Service Operation [GetIdFromName]. Error Detail [Exception Information Type[MseDataException] Source[Microsoft.ManagedSolutions.Mse.Catalog.Data] Message[Procedure or function ‘GetIDFromName’ expects parameter ‘@EntityName’, which was not supplied.] StackTrace[ at Microsoft.ManagedSolutions.Mse.Catalog.Data.Entity.GetIdFromName(String entityName, EntityClass entityClass, SqlTransaction transaction, SqlConnection connection) at Microsoft.ManagedSolutions.Mse.Catalog.Module.Business.EntityManager.GetIdFromName(String entityName, EntityClass entityClass, SqlTransaction transaction, SqlConnection connection)]Exception Information Type[SqlException] Source[.Net SqlClient Data Provider] Message[Procedure or function ‘GetIDFromName’ expects parameter ‘@EntityName’, which was not supplied.] StackTrace[ at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ManagedSolutions.Mse.Catalog.Data.Entity.GetIdFromName(String entityName, EntityClass entityClass, SqlTransaction transaction, SqlConnection connection)]]

Causa

Al parecer el problema es causado por la forma como es serializado el WSDL del servicio. Construyendo el servicio con WSSF, inicialmente se definió el modelo con la siguiente serialización:

Al nivel del modelo del service Contract

Serializer Type = DataContractSerializer

Y a nivel de las operaciones:

Is Wrapped = True

Solución

Cambiar la forma como se serializa el servicio y no permitir que las operaciones sean “envueltas” (wrapped) con un elemento raíz., es decir,

Al nivel del modelo del service Contract

Serializer Type = XmlSerializer

Y a nivel de las operaciones:

Is Wrapped = False

La siguientes son las diferencias del WSDL generado, con una serialización tipo XmlSerializer vs DataContractSerializer.

DiferenciasSerializer

Y sabor !!!  Podemos importar el servicio en MSE.

Referencias

http://blogs.itsynergy.co/mhernandezp/2010/04/25/web-service-software-factory-errores-en-la-generacion-proxy-cuando-es-iswrapped-false/

Filed Under: MSE Tagged With: MSE

  • « Previous Page
  • 1
  • …
  • 7
  • 8
  • 9
  • 10
  • 11
  • …
  • 13
  • Next Page »

Team


Marco
Antonio Hernández

Jaime
Alonso Páez

Luis
Carlos Bernal

Ana
María Orozco

Juan
Camilo Zapata

Carlos
Alberto Rueda

Sonia
Elizabeth Soriano

Diana
Díaz Grijalba

Bernardo
Enrique Cardales

Alexandra
Bravo Restrepo

Juan
Alberto Vélez

Diana
Paola Padilla

Jhon
Jairo Rodriguez

Yully
Arias Castillo

Carlos
Andrés Vélez

Brayan
Ruiz

Jesús
Javier Hernández

Alejandro
Garcia Forero

Gustavo
Adolfo Echeverry

Josué
Leonardo Bohórquez

Oscar
Alberto Urrea

Odahir
Rolando Salcedo

Jimmy
Quejada Meneses

Natalia
Zartha Suárez

Mario
Andrés Cortés

Eric
Yovanny Martinez

Carolina
Torres Rodríguez

Juan
Mauricio García

Tag Cloud

.NET (9) 940px (1) Analysis Services mdx (1) An attempt was made to load a program with an incorrect format. (1) ASP.NET MVC (1) Azure (3) Backup (1) BAM (7) BAM API (1) BAMTraceException (2) BI (3) BizTalk (24) Business Intelligence (6) C# (2) caracteristicas de publicacion (2) Content Editor (3) ESB (15) ESB Toolkit (3) General (4) habilitar caracteristicas (3) indexes (2) Integration Services (2) Master Page (3) MDX (2) MSE (11) net.tcp (2) Office 365 (2) Oracle (2) Performance Point (2) Public Website (2) Receive Location (2) SDK (2) Servicio Web (2) Sharepoint 2010 (2) SharePoint 2013 (4) SharePoint Online (2) SOA (8) Soap Fault (2) Sort Months MDX (2) SQL Server (2) Visual (2) Visual Studio 2010 (2) WCF (19) Windows (3) Windows 8 (17)

Categories

  • .NET (33)
  • Analysis Services (1)
  • ASP.NET MVC (2)
  • Azure (7)
  • BAM (9)
  • BAM PrimaryImport (3)
  • BigData (1)
  • BizTalk (77)
  • BizTalk 2010 configurations (57)
  • BizTalk Application (60)
  • BizTalk Services (13)
  • Business Intelligence (4)
  • Cloud (3)
  • CMD (1)
  • CodeSmith – NetTiers (2)
  • CommandPrompt (1)
  • CRM OptionSet mapping component (1)
  • Desarrollo de software (6)
  • develop (6)
  • developers (3)
  • DropBox (1)
  • Dynamics (1)
  • Enterprise Architect (1)
  • Entity Framework (1)
  • Errores BizTalk (2)
  • ESB (27)
  • ETL (1)
  • Event Viewer (1)
  • Excel Services (1)
  • Foreach loop container (1)
  • General (4)
  • Gerencia de Proyectos (2)
  • Google (1)
  • Grouped Slices (1)
  • Human Talent (1)
  • IIS (4)
  • Integración (6)
  • Integration Services (3)
  • KingswaySoft (1)
  • Lync (1)
  • MSE (13)
  • Office 365 (2)
  • Oracle Data Adapter (2)
  • Performance Point (4)
  • Picklist (1)
  • Pivot Table (1)
  • Procesos (1)
  • Pruebas (1)
  • Public Website (2)
  • Reports (1)
  • SCRUM (1)
  • SDK (2)
  • SEO (1)
  • Servicios (2)
  • Sharepoint (9)
  • SharePoint 2010 (10)
  • SharePoint 2013 (4)
  • SharePoint Online (2)
  • SharpBox (1)
  • Shortcuts (1)
  • Sin categoría (1)
  • SOA (50)
  • SQL (5)
  • SQL Server (3)
  • SQL Server Management Studio (1)
  • SSIS (3)
  • SSL (1)
  • SSO (1)
  • Tracking Profile Editor (2)
  • Twitter (1)
  • Uncategorized (1)
  • Virtual Network (2)
  • Visual Studio 11 (1)
  • Visual Studio 2010 (2)
  • Visual Studio Online (1)
  • VMware (2)
  • WCF (24)
  • Web (1)
  • Web Api (1)
  • Windows (5)
  • Windows 8 (11)
  • Windows Azure (2)
  • Windows Live Write (1)
  • Windows Phone (7)
  • Windows Phone 8 (1)
  • Windows Scheduler (1)
  • windows8 (2)
  • WindowsRT (3)
  • WP7 SDK (1)

Manage

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org