Author Topic: SOAP XML webservice use virtuemart for logic?  (Read 1357 times)

eddiex

  • Beginner
  • *
  • Posts: 9
SOAP XML webservice use virtuemart for logic?
« on: February 18, 2016, 13:39:33 pm »
Hi,

First... I am newbee to SOAP...
I got a question if I can handle SOAP requests thru my webpage...
And I figure out that virtuemart maybe can help me with this...

Does any one have any expirience with this?

the idea is... to receive a SOAP URI / URL with informastion...
I would like to "pipe" that request into virtuemart and prosess a SOAP reply...
The reason for using virtuemart will be to classify prices for the request... and reply the correct soap uri.

its more like a payment passthru or something...

do we have any expirience with using virtuemart for this???

Any help with be good...

Tnx, Eddie

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4381
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: SOAP XML webservice use virtuemart for logic?
« Reply #1 on: February 18, 2016, 15:03:04 pm »
As you can use soap, you can use json, if this is only to return some data, you can create for eg a plugin and use com_ajax in Joomla 3 (or trrigger directly a system plugin).
If you need some security, you can add a password checker on adding it in your URL for eg.
You can then handel nativelly the response with javascript or any compatible solution.
Most API (joomla,google ...) do not use soap anymore, It's complicate for nothing ;)

SO use a simple ajax call for eg. and return a json, is the lightest solution and if you need to secure by password for multiple user, it's possible too(but it's more complicate).

If you want a Top solution, you can integrate nodeJS or any restFull solution, but this need a pro level and many hour(days?) to do it and a dedicated server

eddiex

  • Beginner
  • *
  • Posts: 9
Re: SOAP XML webservice use virtuemart for logic?
« Reply #2 on: February 18, 2016, 15:57:50 pm »
Hi, and tnx for good info...

i am still woundering :-)

the service we are serving is a payment for a enduser...
1. we will get a SOAP uri with info regarding name, phone, and what product he has ordered.. and offcourse some session info...
2. so we have to detern the price and respond with a SOAP uri with same session id, name and number and the price for the product...
3. then we should get a confirmation SOAP uri that the payment is ok in return....
4. then we reply a SOAP iru with a confirmation...

I just wounder if this can be included into virtuemart and soap/json api?

The benefits will be to get repports etc by product and manufators...

You think ajax will solve my idea?

Eddie

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4381
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: SOAP XML webservice use virtuemart for logic?
« Reply #3 on: February 18, 2016, 20:51:37 pm »
IF you need to answer soap, then you need to use SOAP.
But you call is not a standard call but a response to your APIl. So it's hard to give an answer, but in all case need specific development.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: SOAP XML webservice use virtuemart for logic?
« Reply #4 on: February 19, 2016, 09:22:56 am »
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/