Alaska Software Inc. - Web Service and SOAP
Username: Password:
AuthorTopic: Web Service and SOAP
Data Devices Web Service and SOAP
on Thu, 21 Sep 2006 13:18:59 +0530
Hi,

"Once you create a WSDL compliant SOAP Server to service the request,
do let me know the URL to access the same. "

The  Above is a statement from a mail from my associate.

As I am in the first time in the web development I couldnt understand
it. I have certain doubts.

Is it possible to develop a  SOAP Server in xbase++? 

How can I create a SOAP Server using xBase++ ? 

Is xb2.Net is capable of doing that ? 

Is there any other 3rd party tools to acheive this ? 

What other Other Tools required ? (Web Server Etc.).

 Any body can explain 'How can I set up a Web Service and SOAP ?' to a
beginer.


I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
installed. ADS 8 is installed. 

Why Alaska is not including articles about topics like this ?

So I will get help only from this newsgroup.


Regards
Kiron
mark carew Re: Web Service and SOAP
on Thu, 21 Sep 2006 19:59:50 +1000
On Thu, 21 Sep 2006 13:18:59 +0530, Data Devices wrote:

> Hi,
> 
> "Once you create a WSDL compliant SOAP Server to service the request,
> do let me know the URL to access the same. "
> 
> The  Above is a statement from a mail from my associate.
> 
> As I am in the first time in the web development I couldnt understand
> it. I have certain doubts.
> 
> Is it possible to develop a  SOAP Server in xbase++? 
Yes
> 
> How can I create a SOAP Server using xBase++ ? 
> 
> Is xb2.Net is capable of doing that ? 
> 
Yes
> Is there any other 3rd party tools to acheive this ? 
> 
Don't know
> What other Other Tools required ? (Web Server Etc.).
> 
>  Any body can explain 'How can I set up a Web Service and SOAP ?' to a
> beginer.
Write an xb2net soap server program using xb2net
> 
> 
> I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
> installed. ADS 8 is installed. 
You don't need apache or iis, you just write your own soap server that
listens on port 8443 or port 443 or any other port you care to make it
listen on. 8443 usues http and 443 uses https.
> 
> Why Alaska is not including articles about topics like this ?
> 

> So I will get help only from this newsgroup.
Yes or the xb2net newgroup
> 
> 
> Regards
> Kiron

Do you understand wsdl and its relationship to xml soap messages and
methods?
 
HTH Mark
Data Devices Re: Web Service and SOAP
on Thu, 21 Sep 2006 15:49:05 +0530
Hi,

Mark Thank You.

I know little about wsdl and its relationship to xml soap messages and
methods.

But , Is it necessary that I have to go deep into WSDL and XML ?

Where will I Get some Samples ?

Which Part of the Xb2.Net Web Site Tells about this ? I checked the
Samples. Which Example I have to check to know how to code a Web
Service ?

GetRate() sample is about Web Service Request. right ?


Regards
Kiron

On Thu, 21 Sep 2006 19:59:50 +1000, mark carew
<markcarew@magicwanddept.com.au> wrote:

>On Thu, 21 Sep 2006 13:18:59 +0530, Data Devices wrote:
>
>> Hi,
>> 
>> "Once you create a WSDL compliant SOAP Server to service the request,
>> do let me know the URL to access the same. "
>> 
>> The  Above is a statement from a mail from my associate.
>> 
>> As I am in the first time in the web development I couldnt understand
>> it. I have certain doubts.
>> 
>> Is it possible to develop a  SOAP Server in xbase++? 
>Yes
>> 
>> How can I create a SOAP Server using xBase++ ? 
>> 
>> Is xb2.Net is capable of doing that ? 
>> 
>Yes
>> Is there any other 3rd party tools to acheive this ? 
>> 
>Don't know
>> What other Other Tools required ? (Web Server Etc.).
>> 
>>  Any body can explain 'How can I set up a Web Service and SOAP ?' to a
>> beginer.
>Write an xb2net soap server program using xb2net
>> 
>> 
>> I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
>> installed. ADS 8 is installed. 
>You don't need apache or iis, you just write your own soap server that
>listens on port 8443 or port 443 or any other port you care to make it
>listen on. 8443 usues http and 443 uses https.
>> 
>> Why Alaska is not including articles about topics like this ?
>> 
>
>> So I will get help only from this newsgroup.
>Yes or the xb2net newgroup
>> 
>> 
>> Regards
>> Kiron
>
>Do you understand wsdl and its relationship to xml soap messages and
>methods?
> 
>HTH Mark
Boris Borzic Re: Web Service and SOAP
on Thu, 21 Sep 2006 15:59:05 +0200
Data Devices <kiron@datadevicesindia.com> wrote in 
news:hep4h2hduaapql14i0sp05qvj6h48j25fn@4ax.com:

> But , Is it necessary that I have to go deep into WSDL and XML ?

No

> Where will I Get some Samples ?

There are samples already available in Xb2.NET, please see:

server side: WEBSERVE.PRG
client side: SOAPEXEC.PRG (see test 4, 5, 6, 7)

Download Xb2.NET demo, type GO.BAT which will compile all samples and run 
WEBSERVE.EXE. To execute the sample SOAP functions, start SOAPEXEC.EXE.

Best regards,
Boris Borzic

news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools
mark carew Re: Web Service and SOAP
on Fri, 22 Sep 2006 08:25:16 +1000
Hi Kiron,

You can have soap xml communication without any associated wsdl.

Wsdl (web services definition language) may be used to define the soap
messages that you either send or receive from a web service running on a
web/soap server. 

Usually the wsdl publishes a test-harness showing example soap messages
that you need to conform to to be able to communicate with the web service
defined by the wsdl file.

If this is not the case, you can infer the xml soap and test your soap xml
packets against the web service to see if your packets are acceptable to
the web service.

The only problem is that if the wsdl changes, your static inferred soap xml
will be out of kilter with its destination/source wsdl web service. Thus it
is usual to use reflection to dynamically generate a set of classes that
allow you to talk to the web service with minimal interruption. This should
help to insulate you from changes made to the wsdl unless they are major,
such as message name renames (unlikely).

If you own or maintain the wsdl, then the above scenario is just a change
management issue. Or if you do not publish a wsdl for you soap, then it is
up to you to manually inform the users of your soap service that there has
been \ will be changes.

If you need to develop your own wsdl. You can just write it up manually or
you can use a product like xmlspy (not free) to develop it.

I have used wsdl-xml reflection to develop dynamic xBase++ classes to allow
two-way communication via soap between a customers ads windows 2003 server
and their linux php nu-soap web server. We are are about to create another
xmp-soap subsystem for tying up international data comms between a central
data server in europe and soap server/clients in germany, canada and
australia. The central data will be on an as400 which also speaks and
listens to soap xml messages and packets and receives https internet input
from field officers all over the developing world.

HTH
Mark
 


> Hi,
> 
> Mark Thank You.
> 
> I know little about wsdl and its relationship to xml soap messages and
> methods.
> 
> But , Is it necessary that I have to go deep into WSDL and XML ?
> 
> Where will I Get some Samples ?
> 
> Which Part of the Xb2.Net Web Site Tells about this ? I checked the
> Samples. Which Example I have to check to know how to code a Web
> Service ?
> 
> GetRate() sample is about Web Service Request. right ?
> 
> 
> Regards
> Kiron
> 
> On Thu, 21 Sep 2006 19:59:50 +1000, mark carew
> <markcarew@magicwanddept.com.au> wrote:
> 
>>On Thu, 21 Sep 2006 13:18:59 +0530, Data Devices wrote:
>>
>>> Hi,
>>> 
>>> "Once you create a WSDL compliant SOAP Server to service the request,
>>> do let me know the URL to access the same. "
>>> 
>>> The  Above is a statement from a mail from my associate.
>>> 
>>> As I am in the first time in the web development I couldnt understand
>>> it. I have certain doubts.
>>> 
>>> Is it possible to develop a  SOAP Server in xbase++? 
>>Yes
>>> 
>>> How can I create a SOAP Server using xBase++ ? 
>>> 
>>> Is xb2.Net is capable of doing that ? 
>>> 
>>Yes
>>> Is there any other 3rd party tools to acheive this ? 
>>> 
>>Don't know
>>> What other Other Tools required ? (Web Server Etc.).
>>> 
>>>  Any body can explain 'How can I set up a Web Service and SOAP ?' to a
>>> beginer.
>>Write an xb2net soap server program using xb2net
>>> 
>>> 
>>> I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
>>> installed. ADS 8 is installed. 
>>You don't need apache or iis, you just write your own soap server that
>>listens on port 8443 or port 443 or any other port you care to make it
>>listen on. 8443 usues http and 443 uses https.
>>> 
>>> Why Alaska is not including articles about topics like this ?
>>> 
>>
>>> So I will get help only from this newsgroup.
>>Yes or the xb2net newgroup
>>> 
>>> 
>>> Regards
>>> Kiron
>>
>>Do you understand wsdl and its relationship to xml soap messages and
>>methods?
>> 
>>HTH Mark
Data Devices Re: Web Service and SOAP
on Fri, 22 Sep 2006 09:57:36 +0530
Mark,

Thank You very much. That was very informative. I will try it.

I have to create WSDL , because my associate insisting on that.

Regards
Kiron

On Fri, 22 Sep 2006 08:25:16 +1000, mark carew
<markcarew@magicwanddept.com.au> wrote:

>Hi Kiron,
>
>You can have soap xml communication without any associated wsdl.
>
>Wsdl (web services definition language) may be used to define the soap
>messages that you either send or receive from a web service running on a
>web/soap server. 
>
>Usually the wsdl publishes a test-harness showing example soap messages
>that you need to conform to to be able to communicate with the web service
>defined by the wsdl file.
>
>If this is not the case, you can infer the xml soap and test your soap xml
>packets against the web service to see if your packets are acceptable to
>the web service.
>
>The only problem is that if the wsdl changes, your static inferred soap xml
>will be out of kilter with its destination/source wsdl web service. Thus it
>is usual to use reflection to dynamically generate a set of classes that
>allow you to talk to the web service with minimal interruption. This should
>help to insulate you from changes made to the wsdl unless they are major,
>such as message name renames (unlikely).
>
>If you own or maintain the wsdl, then the above scenario is just a change
>management issue. Or if you do not publish a wsdl for you soap, then it is
>up to you to manually inform the users of your soap service that there has
>been \ will be changes.
>
>If you need to develop your own wsdl. You can just write it up manually or
>you can use a product like xmlspy (not free) to develop it.
>
>I have used wsdl-xml reflection to develop dynamic xBase++ classes to allow
>two-way communication via soap between a customers ads windows 2003 server
>and their linux php nu-soap web server. We are are about to create another
>xmp-soap subsystem for tying up international data comms between a central
>data server in europe and soap server/clients in germany, canada and
>australia. The central data will be on an as400 which also speaks and
>listens to soap xml messages and packets and receives https internet input
>from field officers all over the developing world.
>
>HTH
>Mark
> 
>
>
>> Hi,
>> 
>> Mark Thank You.
>> 
>> I know little about wsdl and its relationship to xml soap messages and
>> methods.
>> 
>> But , Is it necessary that I have to go deep into WSDL and XML ?
>> 
>> Where will I Get some Samples ?
>> 
>> Which Part of the Xb2.Net Web Site Tells about this ? I checked the
>> Samples. Which Example I have to check to know how to code a Web
>> Service ?
>> 
>> GetRate() sample is about Web Service Request. right ?
>> 
>> 
>> Regards
>> Kiron
>> 
>> On Thu, 21 Sep 2006 19:59:50 +1000, mark carew
>> <markcarew@magicwanddept.com.au> wrote:
>> 
>>>On Thu, 21 Sep 2006 13:18:59 +0530, Data Devices wrote:
>>>
>>>> Hi,
>>>> 
>>>> "Once you create a WSDL compliant SOAP Server to service the request,
>>>> do let me know the URL to access the same. "
>>>> 
>>>> The  Above is a statement from a mail from my associate.
>>>> 
>>>> As I am in the first time in the web development I couldnt understand
>>>> it. I have certain doubts.
>>>> 
>>>> Is it possible to develop a  SOAP Server in xbase++? 
>>>Yes
>>>> 
>>>> How can I create a SOAP Server using xBase++ ? 
>>>> 
>>>> Is xb2.Net is capable of doing that ? 
>>>> 
>>>Yes
>>>> Is there any other 3rd party tools to acheive this ? 
>>>> 
>>>Don't know
>>>> What other Other Tools required ? (Web Server Etc.).
>>>> 
>>>>  Any body can explain 'How can I set up a Web Service and SOAP ?' to a
>>>> beginer.
>>>Write an xb2net soap server program using xb2net
>>>> 
>>>> 
>>>> I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
>>>> installed. ADS 8 is installed. 
>>>You don't need apache or iis, you just write your own soap server that
>>>listens on port 8443 or port 443 or any other port you care to make it
>>>listen on. 8443 usues http and 443 uses https.
>>>> 
>>>> Why Alaska is not including articles about topics like this ?
>>>> 
>>>
>>>> So I will get help only from this newsgroup.
>>>Yes or the xb2net newgroup
>>>> 
>>>> 
>>>> Regards
>>>> Kiron
>>>
>>>Do you understand wsdl and its relationship to xml soap messages and
>>>methods?
>>> 
>>>HTH Mark
mark carew Re: Web Service and SOAP
on Sat, 23 Sep 2006 11:49:13 +1000
Hi Kiron,

There are several ways to create wsdl files. 

If the number of methods and messages is small, you can write it from
scratch. This requires intimate knowledge of the innards of wsdl files.

Or you can start with the xml structures you wish to expose and have
"visual studio" generate the wsdl file for you from "xml editor" xsd files. 

Or you can use a technique called "wsdl first". Where you design the wsdl
file in something like apache axis tomcat eclipse on debian linux.

Ther is also a good and expensive product called "xml spy" by altova that
will allow you to build up your wsdl file. It claims to be the worlds best
xml/wsdl editor.

There are other wsdl/xml/xsd/xslt tools that are open source, that appear
to be able to build and maintain a wsdl file. I downloaded on last night
called xml-pro 2.0 which relies on java runtime to build a wsdl file. So
far it does not seem to work on my xp box. Reports jit problems.  

How many methods do you need to expose to the web service soap clients?

HTH
Mark

> Mark,
> 
> Thank You very much. That was very informative. I will try it.
> 
> I have to create WSDL , because my associate insisting on that.
> 
> Regards
> Kiron
> 
> On Fri, 22 Sep 2006 08:25:16 +1000, mark carew
> <markcarew@magicwanddept.com.au> wrote:
>
Data Devices Re: Web Service and SOAP
on Fri, 22 Sep 2006 16:12:31 +0530
Hi,

I installed Xb2.Net Demo Version.

Loaded WebServe.EXE 

In the Start Here Page, Slected SOAP Server Test

I tested SOAP Client Examples with Demo like GetDateTime Etc. It is
Working.

But When I tried  the Sample SOAP Envelopes
http://www.soapclient.com/soapclient.com/soapmsg.html , it give a
message an error message.

<?xml version="1.0" ?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Server: Requested SOAP function not found</faultstring>
</env:Fault>
</env:Body>
</env:Envelope>

I have given the static IP provided by the Service Provider

What could be the reason ?

Regards

Kiron



On Thu, 21 Sep 2006 13:18:59 +0530, Data Devices
<kiron@datadevicesindia.com> wrote:

>Hi,
>
>"Once you create a WSDL compliant SOAP Server to service the request,
>do let me know the URL to access the same. "
>
>The  Above is a statement from a mail from my associate.
>
>As I am in the first time in the web development I couldnt understand
>it. I have certain doubts.
>
>Is it possible to develop a  SOAP Server in xbase++? 
>
>How can I create a SOAP Server using xBase++ ? 
>
>Is xb2.Net is capable of doing that ? 
>
>Is there any other 3rd party tools to acheive this ? 
>
>What other Other Tools required ? (Web Server Etc.).
>
> Any body can explain 'How can I set up a Web Service and SOAP ?' to a
>beginer.
>
>
>I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
>installed. ADS 8 is installed. 
>
>Why Alaska is not including articles about topics like this ?
>
>So I will get help only from this newsgroup.
>
>
>Regards
>Kiron
Data Devices Re: Web Service and SOAP
on Fri, 22 Sep 2006 17:13:00 +0530
Hi,

How can I call a SOAP Server Function from a client.

I think for that I have to Call this function from a HTML file from
the client 

Any body can give me a sample HTML which calls GetDateTime() function
in WebServe.Prg in Xb2.Net Demo ?

Regards
Kiron



On Thu, 21 Sep 2006 13:18:59 +0530, Data Devices
<kiron@datadevicesindia.com> wrote:

>Hi,
>
>"Once you create a WSDL compliant SOAP Server to service the request,
>do let me know the URL to access the same. "
>
>The  Above is a statement from a mail from my associate.
>
>As I am in the first time in the web development I couldnt understand
>it. I have certain doubts.
>
>Is it possible to develop a  SOAP Server in xbase++? 
>
>How can I create a SOAP Server using xBase++ ? 
>
>Is xb2.Net is capable of doing that ? 
>
>Is there any other 3rd party tools to acheive this ? 
>
>What other Other Tools required ? (Web Server Etc.).
>
> Any body can explain 'How can I set up a Web Service and SOAP ?' to a
>beginer.
>
>
>I have xBase++ 1.9 running on Windows 2003 Server. Apache  2.2.3 is
>installed. ADS 8 is installed. 
>
>Why Alaska is not including articles about topics like this ?
>
>So I will get help only from this newsgroup.
>
>
>Regards
>Kiron
Boris Borzic Re: Web Service and SOAP
on Sun, 24 Sep 2006 15:23:46 +0200
Data Devices <kiron@datadevicesindia.com> wrote in 
news:ggi7h25g69hjmrpb7t8udkkjjlm3f86lpa@4ax.com:

> How can I call a SOAP Server Function from a client.
> 
> I think for that I have to Call this function from a HTML file from
> the client 
> 
> Any body can give me a sample HTML which calls GetDateTime() function
> in WebServe.Prg in Xb2.Net Demo ?

The SOAPEXEC.EXE is the client side. Please see SOAPEXEC.PRG to see how 
GetDateTime is called.

Best regards,
Boris Borzic

news://news.Xb2.NET
http://www.Xb2.NET
http://www.SQLExpress.net
industrial strength Xbase++ development tools