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

x
?
Solved

Dataset Web service and consume with nusoap issue how does one access data?

Posted on 2004-10-14
5
Medium Priority
?
876 Views
Last Modified: 2008-01-09
Ok my problem is I am trying to return a dataset from a web service to a nusoap and php.  Is this possible I believe it tranforms it to some xml format correct? If so how would I access the data. I have a funny feeling I am missing something here please help.

<?php

include('nusoap.php');


$parameters = array('strCouponCode' => '1100.13', 'strGenericID' => '123456', 'strUsername' => '23', 'strPassword' => '5');

$soap = new soapclient('http://10.10.3.34/FardemptionNET/FardemptionNET.asmx?wsdl');

$result = $soap->call('getUserCouponTotalPaid',$parameters);

$acount = count($result);

print_r($result);

This is the error message i recieve back:
Array ( [faultcode] => soap:Client [faultstring] => Server did not recognize the value of HTTP Header SOAPAction: . [detail] => ) 3
0
Comment
Question by:hdemetrio
[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
  • 2
5 Comments
 
LVL 1

Expert Comment

by:jaguarul
ID: 12312917
I'm not 100% sure, but can't you call methods on the returned soap object instead of using the "call" method? something like $soap->getUserCouponTotalPaid($parameters); (maybe unfold the parameters array). It seems the SOAP package does not speecifiy the SOAPAction field in the packet, and therefore the server doesn't know what method is called.
0
 

Author Comment

by:hdemetrio
ID: 12313074
I got it lol seems you need to pass the namespace of the web service and make sure its a assocative array $parameters[] = array('strCouponCode' => '1100.13', 'strGenericID' => '123456', 'strUsername' => '23', 'strPassword' => '5');  forgot the [] lol

and you need
$namespace = "www.imadumbidiotlol.com'

$soap = new soapclient('http://10.10.3.34/FardemptionNET/FardemptionNET.asmx?wsdl', $namspace);

ohh well how does that work if I answer my own question lol.
0
 
LVL 1

Expert Comment

by:jaguarul
ID: 12313127
i guess you take the points :))
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12537763
PAQed, with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Independent Software Vendors: 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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
Simple Linear Regression
Introduction to Processes

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