?
Solved

SOAP call from Zend

Posted on 2013-06-09
5
Medium Priority
?
609 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
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 …
Suggested Courses

771 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