PDA

View Full Version : web services client class



Edgar H. Peña C.
22-Sep-2020, 05:41 PM
Hin all

I need to create a web services client class from several files (see below).

Some suggestions?

The DAC class generator is created from WSDL.

Edgar

Edgar H. Peña C.
22-Sep-2020, 05:42 PM
grafico

Marco
22-Sep-2020, 08:23 PM
Normally the wsdl pulls these xsd’s in, so you just have to make sure they are with the wsdl.
If you do not have a wsdl, you might need to fabricate one...

Vincent Oorsprong
23-Sep-2020, 01:43 AM
Edgar,

XSD (XML schema definition) defines the element in an XML document. It can be used to verify if the elements in the xml document adheres to the description in which the content is to be placed. While wsdl is specific type of XML document which describes the web service.

Edgar H. Peña C.
23-Sep-2020, 06:22 AM
Hi Vincent

The tax administration delivers this microsite for electronic invoicing

https://www.dian.gov.co/impuestos/factura-electronica/documentacion/Paginas/documentacion-tecnica.aspx

(https://www.dian.gov.co/impuestos/factura-electronica/documentacion/Paginas/documentacion-tecnica.aspx)Edgar

wila
23-Sep-2020, 10:39 AM
It's the OASIS stuff right?

if you go higher up in that folder hierarchy then you'll get:

http://docs.oasis-open.org/ubl/os-UBL-2.1/

But you can also go right here:
https://www.oasis-open.org/standards#ublv2.1

Not sure if it is even using SOAP.

--
Wil

Edgar H. Peña C.
23-Sep-2020, 03:03 PM
Hi Wila:

Apparently it is SOAP but it has not formed the WSDL file.
All XSDs are scattered. How to set up the classes?

Edgar

wila
23-Sep-2020, 04:48 PM
Hi,

Read the whole answer here:
https://stackoverflow.com/questions/920086/generating-a-wsdl-from-an-xsd-file

--
Wil

Mike Peat
24-Sep-2020, 06:06 AM
Edgar

Why don't you try contacting someone who is already using the web service in question and ask them how they did it?

As you can see from the answers here, DataFlex pretty much expects that a SOAP web service will have a WSDL definition, and that's also what the standards say it should have. If it doesn't, it really isn't a proper web service.

Mike

Edgar H. Peña C.
24-Sep-2020, 06:52 AM
Hola Mike

Many of my competition already develop this electronic invoicing service, surely they use other products for development. I have seen some videos on youtube in which with C # they use VS2012 CROSS TOOLS COMMAND they generate classes from various XSDs.
Today, I sit in the rain and in the middle of the street.

Edgar

Edgar H. Peña C.
24-Sep-2020, 07:33 AM
hI ALL

A friend shared the class file generated from C # with me.
Now, I am wondering if there is any way to use this file to get to DF.

Edgar