RE: [U2] [UV] Web Services for Dummies

2005-03-14 Thread Brian Leach
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Cooper, Rudy
 Sent: 11 March 2005 21:00
 To: u2-users@listserver.u2ug.org
 Subject: [U2] [UV] Web Services for Dummies
 
 Has anyone developed a web service for Universe ?

Yes,

I used Delphi to create an ISAPI DLL (a DLL that interfaces directly into
Internet Information Server). This uses the regular Microsoft XML parser to
generate and interpret SOAP and XML RPC requests and a UniObjects pool to
make calls to BASIC subroutines.

The key things are:

I map each subroutine argument to a named type. These can be simple (string,
date, integer etc) or complex types made up of simple types e.g. an Order
Header, in which case each type element is mapped to field in the subroutine
parameter. Repeatable types, like order lines, are mapped multivalued.

The gateway DLL generates WSDL (Web Service Definition Language) to describe
each subroutine that has been mapped in this way. This means that tools like
Delphi and .Net can automatically generate class definitions based on the
types I have defined, and the code to call the web service.

I started off parsing the XML on the server, but found that there were just
too many variations on the SOAP/XML formats to cater for all of them in a
BASIC parser - it became too slow and top heavy. So I moved everything to
the web server and it works fine.

If you want to know more, contact me off line.

Brian
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Web Services for Dummies

2005-03-11 Thread Adrian Matthews
This one has come up again and again over the last few weeks. You'll
find lots of posting about it on www.indexinfocus.com 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cooper, Rudy
Sent: 11 March 2005 21:00
To: u2-users@listserver.u2ug.org
Subject: [U2] [UV] Web Services for Dummies

Has anyone developed a web service for Universe ?

I'm trying to gather as much info as I can about the technology used.  I
realize UV 10.1 has many of the tools that I'll need for the backend,
but what is normally used on the frontend, what communications protocal
is normally used ?

I've read alot of theory about how it should work, but I haven't come
across anything that gives me some concrete examples.

Can someone direct me to some information or maybe explain to me in
practical terms on how an xml request would come into UV then a response
sent back to the requestor from UV using xml.

If you've done web services using ASP.NET and UV I would appreciate
hearing from you.

thx.

rudy

Rudy Cooper

Sage Publications

I.T Development
Thousand Oaks, California

(805) 499-0721 #7724
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise indicated. If you are not the 
intended recipient, please do not read, copy, use or disclose to others this 
message or any attachment. Please also notify the sender by replying to this 
email or by telephone +44 (0)20 7896 0011 and then delete the email and any 
copies of it. Opinions, conclusions (etc.) that do not relate to the official 
business of this company shall be understood as neither given nor endorsed by 
it.  IG Markets Limited and IG Index Plc are authorised and regulated by the 
Financial Services Authority and, in Australia, by the Australian Securities 
and Investments Commission.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] [UV] Web Services for Dummies

2005-03-11 Thread Tony Gravagno
Please see my four articles on Web Services and .NET, originally printed in
Spectrum Magazine from 2003-2004.  Magazines are here:
http://www.intl-spectrum.com/SPECTRUMMAG.HTML
HTML versions here:
http://../articles/
I also have an article there called SOAP for people who don't do
protocols which is a follow-up to my What are Sockets? article.

In particular, Universe doesn't really play a part in Web Services per-se,
unless you use socket coding to make it into a socket client and/or server.
I'd recommend against that approach.  To make Universe a web service
client:
- Use mainstream tools like .NET, J2EE, or Perl to create a WS client to an
external service of your choice.  Web Service sources publish WSDL which
identifies the API to their service.  Mainstream tools easily create WS
clients to conform to the server side. 
- Then create a pipe from your new WS client into U2, to function purely as
a data transport.  For this you can use UO, UO.NET, MV.NET, PDP.NET,
RedBack, or other tools described in this forum recently.

To publish U2 business rules as a web service, follow the same pattern:
- Use mainstream tools to publish WSDL and accept inbound WS requests.
- When requests come in, connect to U2 to run BASIC programs, run rules,
and build a result set.
- The data from U2 can be built into XML, ready to be passed out through
the Web Service, or you can pass back simple data and let your Web Service
wrap it properly prior to returning data back to the client.

I've written Web Services to/from MV platforms using .NET and Perl (not
together), and am prepared to develop end-to-end solutions for VARs or
end-users.

I hope that helps.
Tony, Nebula RD
[EMAIL PROTECTED]


Cooper, Rudy Rudy.Cooper-at-sagepub.com |U2UG| wrote:
 Has anyone developed a web service for Universe ?
 
 I'm trying to gather as much info as I can about the
 technology used.  I realize UV 10.1 has many of the tools
 that I'll need for the backend, but what is normally used
 on the frontend, what communications protocal is normally
 used ? 
 
 I've read alot of theory about how it should work, but I
 haven't come across anything that gives me some concrete
 examples. 
 
 Can someone direct me to some information or maybe
 explain to me in practical terms on how an xml request
 would come into UV then a response sent back to the
 requestor from UV using xml. 
 
 If you've done web services using ASP.NET and UV I would
 appreciate hearing from you.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


Re: [U2] [UV] Web Services for Dummies

2005-03-11 Thread fft2001
Here is a direct link to the last one of the four articles that Tony is 
referring to.  This will open as a pdf inside your browser, takes about 20 
seconds on a T1 connection to open it.
 
http://www.intl-spectrum.com/publications/JulAug04.pdf
 
Will
 
-Original Message-
From: Tony Gravagno [EMAIL PROTECTED]
To: u2-users@listserver.u2ug.org
Sent: Fri, 11 Mar 2005 14:59:42 -0800
Subject: RE: [U2] [UV] Web Services for Dummies


Please see my four articles on Web Services and .NET, originally printed in
Spectrum Magazine from 2003-2004.  Magazines are here:
http://www.intl-spectrum.com/SPECTRUMMAG.HTML
HTML versions here:
http://../articles/
I also have an article there called SOAP for people who don't do
protocols which is a follow-up to my What are Sockets? article.

In particular, Universe doesn't really play a part in Web Services per-se,
unless you use socket coding to make it into a socket client and/or server.
I'd recommend against that approach.  To make Universe a web service
client:
- Use mainstream tools like .NET, J2EE, or Perl to create a WS client to an
external service of your choice.  Web Service sources publish WSDL which
identifies the API to their service.  Mainstream tools easily create WS
clients to conform to the server side. 
- Then create a pipe from your new WS client into U2, to function purely as
a data transport.  For this you can use UO, UO.NET, MV.NET, PDP.NET,
RedBack, or other tools described in this forum recently.

To publish U2 business rules as a web service, follow the same pattern:
- Use mainstream tools to publish WSDL and accept inbound WS requests.
- When requests come in, connect to U2 to run BASIC programs, run rules,
and build a result set.
- The data from U2 can be built into XML, ready to be passed out through
the Web Service, or you can pass back simple data and let your Web Service
wrap it properly prior to returning data back to the client.

I've written Web Services to/from MV platforms using .NET and Perl (not
together), and am prepared to develop end-to-end solutions for VARs or
end-users.

I hope that helps.
Tony, Nebula RD
[EMAIL PROTECTED]


Cooper, Rudy Rudy.Cooper-at-sagepub.com |U2UG| wrote:
 Has anyone developed a web service for Universe ?
 
 I'm trying to gather as much info as I can about the
 technology used.  I realize UV 10.1 has many of the tools
 that I'll need for the backend, but what is normally used
 on the frontend, what communications protocal is normally
 used ? 
 
 I've read alot of theory about how it should work, but I
 haven't come across anything that gives me some concrete
 examples. 
 
 Can someone direct me to some information or maybe
 explain to me in practical terms on how an xml request
 would come into UV then a response sent back to the
 requestor from UV using xml. 
 
 If you've done web services using ASP.NET and UV I would
 appreciate hearing from you.
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/