Calling a SOAP web service with a complex data type using PHP

pandusetiawan

New Member
I'm trying to write PHP to call a web service. Using SoapUI, I construct the following call to the service, which works:\[code\]<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://gmo.ws.client.np.z2.com/xsd"> <soapenv:Header/> <soapenv:Body> <xsd:login> <xsd:auth> <xsd:password>myPwd</xsd:password> <xsd:userName>myUsername</xsd:userName> <xsd:version>1.0</xsd:version> </xsd:auth> <xsd:applicationName>wnp</xsd:applicationName> </xsd:login> </soapenv:Body></soapenv:Envelope>\[/code\]I'm using the following PHP to call the same service:\[code\]<?php$client = new soapclient('http://www.z2systems.com:8888/neonws/services/GMOService');$auth_array = array( 'auth' => array( 'password' => 'myPwd', 'userName' => 'myUsername', 'version' => '1.0' ), 'applicationName' => 'wnp' );$login_results = $client->__soapcall('login', $auth_array);?>\[/code\]When I make the call, I'm getting an error back "Parsing WSDL: Couldn't find ". The provider of the web service has been less than helpful, so any advice would be greatly appreciated!
 
Back
Top