Solved

SOAP call from Zend

Posted on 2013-06-09
5
599 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

839 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