Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL help!

 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!!

I'm new to SOAP and I'm trying to pass an array through SOAP and receive the same array back.I'm using php so I need to make the WSDL manually.When the array comes back instead of containing it's correct values it comes back as:

theArray[0] ='A'
theArray[0] ='r'
theArray[0] ='r'
theArray[0] ='a'
theArray[0] ='y'

This is my WSDL entry:


<message name='getUpdateRequest'>
<part name='symbol' type='<xsd:complexType name="ArrayOfInteger">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="integer[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType> '/>

</message>

<message name='getUpdateResponse'>
<part name='symbol' type='<xsd:complexType name="ArrayOfInteger">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="integer[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType> '/>

</message>
Also,I tried omitting the part name element so that I didn't have to put the complex type in the part name's attributes but the result is the same...
Please some help
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Duran,

A very similar question at Passing an Array through SOAP from PHP

Regards,
Dan
 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah thanks but I just downloaded zend studio and it generated the WSDl for me.Whew..I can keep my job
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!