Solved

SOAP call from Zend

Posted on 2013-06-09
5
589 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I found the solution. Thanks everyone!
0
 

Author Closing Comment

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now