Solved

SOAP call from Zend

Posted on 2013-06-09
5
597 Views
Last Modified: 2016-02-10
Hello,
A previous developer has a working successful SOAP call using nusoap. I am trying to make another web service call to the same service. I constructed the XML (in text) and verified with the service provider that it is the correct XML. I placed the same XML in a variable ($param = '...';). I made the call using $client->call('MethodName', $param); This call is not even getting to the provider. I am getting an 'Object reference not set...' error. I am using the Zend framework.
Am I not sending XML correctly? Where could the problem be?
Should I use any other libraries instead of nusoap?
Thanks
0
Comment
Question by:perlwhite
  • 4
5 Comments
 
LVL 1

Expert Comment

by:Shaun_King_23
ID: 39234173
Hi perlwhite,

Could you give code examples and the xml you're sending because can't really understand the question without examples.

also the wsdl link aswel so i can see the methods you can call.

Many thanks,

Shaun
0
 

Author Comment

by:perlwhite
ID: 39236254
The XML looks like:
<NameofMethod>
  <MethodParameters>
    <RequestData>
      <RequestID>12331944</RequestID>
      <ROption>3</ROption>
      <Rows>100</Rows>
...
...
...

I am currently using nusoap:
$client = new nusoapclient(...); // Instantiated similarly to what the working SOAP call
$param = 'harcoded XML goes here';
$client->call('Name of the Method', $param);
0
 

Author Comment

by:perlwhite
ID: 39240010
I now definitely have the correct XML (verified using SOAP UI). How do I send this XML to the web service using PHP Zend?
0
 

Accepted Solution

by:
perlwhite earned 0 total points
ID: 39240062
I found the solution. Thanks everyone!
0
 

Author Closing Comment

by:perlwhite
ID: 39251091
I searched through various resources and was able to come up with a solution.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question