Quantcast
Channel: SCN : Discussion List - Service-Oriented Architecture (SOA) and SAP
Viewing all articles
Browse latest Browse all 143

Consuming a BAPI as web service from PHP

$
0
0

Hi,

 

I have exposed a BAPI function Module as a web service. From the SOAMANAGER I am able to access the WSDL URL.

 

BUT when I try to consume the same web service from PHP Iam receiving below error.

 

SoapFault Object ( [message:protected] => SRT: Unexpected failure in SOAP processing occurred: ("No configuration for this HTTP server instance") [string:Exception:private] => [code:protected]



Below is the PHP code used. Currently URL is accessible only in our Internal network.



<?php

 

 

$url = "http://......_:8000/sap/bc/srt/wsdl/bndg_4E65A455F64F5D21E1000000C0A800E9/wsdl11/allinone/standard/document?sap-client=950";

$client = new SoapClient($url,

                array('login'      => "**",

                      'password'   => "**",

                      'trace'        => false,

                      'exceptions' => false));

$fcs = $client->__getFunctions();

$fcs1 = $client->__getTypes();

var_dump($fcs);

//var_dump($fcs1);

$test = $client->PoGetdetail(array("Purchaseorder"=>5500000086));

print_r($test);

?>


Viewing all articles
Browse latest Browse all 143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>