Jump to content

Recommended Posts

in a B2B scenario
I need  to call a soap webservice (the client has already added my ip to the white list) this is the endpoint. 

http://myserver:81/star_enu/start.swe?SWEExtSource=WebService&SWEExtCmd=Execute&UserName=user&Password=password

 

Allows the validation of a client by card number

It is returned if the card is active (if the order is placed by the method ClientByNumCard - <Activ_Card>Y</ Activ_Card >)

                       It is returned if the client is active ( <Activ_Card >Y</Activ_Card >)

                      In case of success, _ID data is returned

XML order example:

 

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://platf.com/ClientUI">

  <soap:Body>

    <tns:ClientByNumCard_Input>

      <tns:N_Card>123456789</tns:N_Card>

    </tns:ClientNumCard_Input>

  </soap:Body>

</soap:Envelope>

 

 

Response Envelope

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <SOAP-ENV:Body>

    <ns: ClientByNumCard _Output xmlns:ns="http://plaf.com/ClientUI">

      <ns:Error_spcCode>0</ns:Error_spcCode>

      <ns:Error_spcMessage>0</ns:Error_spcMessage>

      <ListIo xmlns="http://www.platf.com/xml/xxx%20yyyy%20%20G%20IO">

        <CartaoClienteGeral>

          <Activ_Card>Y</Activ_Card>

          <ListOfClients>

            <ClientMember>

              <ID>1-AVG-22020</ID>

              <N_Client>23654</N_Client>

              <N_ClientS>0</N_ClientS>

              <Activ_Client>Y</Activ_Client>

              <ID>130562</ID>

            </ ClientMember >

          </ListOfClients>

        </CartaoClienteGeral>

      </ListIo>

    </ns:ClientByNumCard_Output>

  </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

any ideas how to make a simple class in php?

 

Link to comment
https://forums.phpfreaks.com/topic/310765-webservice-soap/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.