[Linux-programlama] php+soap hak.

---------

[Linux-programlama] php+soap hak.

From: Emirhan <linux_at_vuralyazilim.com.tr>
Date: Wed, 12 Mar 2008 12:08:02 +0200
Message-ID: <005f01c88428$f7bd5d80$0202a8c0@server>

Merhaba;
Firmamızın web sitesinde kredi kartı tahsilatıyla ilgili bir çalışma
yapıyorum. Tedarikçi firmamızın sanal pos
sistemine web servisleri aracılığıyla bağlanılılabiliyormuş. Ancak soap
konusunda bilgim yok ve netteki kaynaklarla
çözüme ulaşamadım. ilgili web servisi soap header ile kimlik doğrulaması
gerektiriyor. .net webservice studio yazılımı
ile denemelerimi yapabiliyorum. Bu programın verdiği request ve response
kodlarını aşağıdadır. Hostingim php5 destekli.
php5 in soap örneklerini inceledim ve bazı kaynaklarda curl ile soap
uygulama örnekleri buldum. Ama örnekleri bir türlü
kendime göre uyarlayamadım. Bu request kodunu php ile ilgili web servisine
gönderip, sonucunu nasıl alabilirim ?
Bu konuda yardım edebilirmisiniz ?

Reuest
<?xml version="1.0" encoding="utf-16"?>
<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">
  <soap:Header>
    <AuthenticationInfo MyAttribute="" xmlns="http://odeme.deneme.com/">
      <agentID>1234</agentID>
      <username>deneme</username>
      <authenticated>false</authenticated>
    </AuthenticationInfo>
  </soap:Header>
  <soap:Body>
    <GetBanka xmlns="http://odeme.deneme.com/">
      <getAll>true</getAll>
    </GetBanka>
  </soap:Body>
</soap:Envelope>

Response
Content-Type:text/xml; charset=utf-8
Date:Wed, 12 Mar 2008 09:53:12 GMT
P3P:CP="NOI DEVa TAIa OUR BUS UNI STA"
policyref="http://www.deneme.com.tr/w3c/p3p.xml"
Server:Microsoft-IIS/6.0
X-AspNet-Version:2.0.50727
X-Powered-By:ASP.NET

<?xml version="1.0" encoding="utf-16"?>
<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">
  <soap:Header>
    <AuthenticationInfo xmlns="http://odeme.deneme.com/">
      <agentID>14601</agentID>
      <username>vural</username>
      <authenticated>true</authenticated>
    </AuthenticationInfo>
  </soap:Header>
  <soap:Body>
    <GetBankaResponse xmlns="http://odeme.deneme.com/">
      <GetBankaResult>
        <bank>
          <ID>AKBANK</ID>
          <name>Axess</name>
          <phone />
          <representative />
          <email />
        </bank>
      </GetBankaResult>
    </GetBankaResponse>
  </soap:Body>
</soap:Envelope>

_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Wed 12 Mar 2008 - 11:27:11 EET

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.