Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

SOAP call from Zend

Posted on 2013-06-09
5
Medium Priority
?
613 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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

636 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