473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sending information to a webservice

I've run into a snag on a webservice. It's looking for a type of ArrayofString. Bascially it want multiple numbers (bar_code_numbers) to redeem. I swear I had the array built right...but it keeps coming back saying it blank.

This is my array that I send.
[php]Array
(
[parameters] => Array
(
[bar_code_numbers] => Array
(
[0] => 000880759302200705
[1] => 004893608002200705
)

[redeem_branch_nbr] => 3400005
[redeem_method] => WIFI
[order_number] => 9434
)

)[/php]This is the the request that I send.
<RedeemCoupons xmlns="http://www.openuri.org/"><bar_code_numbers><String/></bar_code_numbers><redeem_branch_nbr>3400005</redeem_branch_nbr><redeem_method>WIFI</redeem_method><order_number>9434</order_number></RedeemCoupons>You can see in read that it's blank. The weird thing is, in the debug of it, it shows the codes there.

[php]2007-02-26 09:07:50.201922 soapclient: call: operation=RedeemCoupons, namespace=http://tempuri.org, soapAction=, rpcParams=, style=rpc, use=encoded, endpointType=wsdl
params=array(1) {
["parameters"]=>
array(4) {
["bar_code_numbers"]=>
array(2) {
[0]=>
string(18) "000880759302200705"
[1]=>
string(18) "004893608002200705"
}
["redeem_branch_nbr"]=>
string(7) "3400005"
["redeem_method"]=>
string(4) "WIFI"
["order_number"]=>
string(4) "9434"
}
}[/php]This is the part of the WSDL that covers the redemption.
[php]<s:element name="RedeemCoupons">
<s:complexType>
<s:sequence>
<s:element name="bar_code_numbers" type="ope:ArrayOfString" minOccurs="0"/>
<s:element name="redeem_branch_nbr" type="s:string" minOccurs="0"/>
<s:element name="redeem_method" type="s:string" minOccurs="0"/>
<s:element name="order_number" type="s:int"/>
</s:sequence>
</s:complexType>
</s:element>[/php]I guess I'm lost as to why it's not taking these. Is my array built wrong? I'm really struggling on this...

This is the result of the soap call I make.
[php]Array
(
[redeemResult] => Array
(
[rowCount] => 0
[rowResult] => Array
(
[bar_code_number] =>
[result] => Blank Barcode Number
)

)

)[/php]
Feb 26 '07 #1
0 1003

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tom Leylan | last post by:
I'd like to find/have a discussion about the various ways an application server could be implemented. So the upsides and downsides can be discussed. In case I'm using the term wrong by "app...
2
by: anonymous | last post by:
Hi, I'am sending an xml string to a web service(which is written in c#) using the microsoft web services behavior. When I check this string from the web service I observed that some of the...
0
by: Chris | last post by:
I have a customer who wants to send us a XML message like this: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">...
4
by: Flare | last post by:
OK. I'll try explain my problem so simple as possible. I have to send a complex data type to a WebService from a Asp.net webapplication. My Data type look like this. (A class with a porperty)...
1
by: Nick Gilbert | last post by:
Hi, I'm trying to create a system whereby my desktop application submits it's order to an online server using a webservice (pretty standard!). So, I added a new project to my solution to...
1
by: hazz | last post by:
if I think about efficiently sending data back and forth through a webservice for a 'typical' application (in this case smart client using Composite UI application block) what questions do I ask...
3
by: Sydney | last post by:
Hi, I am trying to construct a WSE 2.0 security SOAP request in VBScript on an HTML page to send off to a webservice. I think I've almost got it but I'm having an issue generating the nonce...
1
by: cmpcrand | last post by:
Hello my name is Craig. I am wondering if it is possible to have 2 websites that are based on the same web server and if somebody enters some information into a textbox on 1 page and then clicks...
2
by: steve | last post by:
Hi All I need to learn how to update a SQl server or Access database located on a web server from my windows forms application, via the internet I have a customer who wants to run several...
2
by: ksheerasagar17 | last post by:
Hello All, Scenario: Sending an image through webservice as byte array to an Java webservice. The Problem1: The webservice method image property expects (data type) SByte rather than Byte...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.