Web Services

Penth

Senior member
Mar 9, 2004
933
0
0
I got some software that works with our POS software to update inventory to our online store. Our cart software (osCommerce) isn't supported out of the box though. I have to write a web service that takes a SOAP encapsulated XML file and parses the data to get item numbers and quantities.

I have a WSDL file from a server that is supported, so I would think based on that I could make a server that does the same thing as the supported cart. I just don't know where to start. Maybe someone can help me out or point me to a good tutorial. All the ones I have found aren't very helpful.

I installed NuSOAP for PHP and followed one tutorial that calculated tax, but the values were passed into the client through the url and grabbed using $_GET['rate']. I don't know how the server is supposed to accept the SOAP stuff. Maybe I don't even need to know how.

Can someone help get me started if I can show them the WSDL or something?
 

Argo

Lifer
Apr 8, 2000
10,045
0
0
If you're using java look at Axis webservices. If you have a WSDL file you can generate a client class that will basically do everythign for you. Unfortunately I can't help you with PHP.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
wsdl2java generates client code, as you said. He's writing server code.

As for the php stuff, I'd keep googling for tutorials. The one that you found seems to have had nothing to do with SOAP whatsoever but I'm sure there's actual good stuff out there.