NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Consuming SOAP web services


Joined: 14 Jul 2008
Posts: 1
Reply with quote
Hi there,

I have just started building an app to consume web services written in SOAP. I'm using NuSOAP class to consume the web service.

So far most of the functions can be called without any problem. However, I have a hard time to create the correct parameter for this function below:

- <xs:element name="RequestObject">
- <xs:complexType>
- <xs:sequence>
<xs:element name="fieldA" type="xs:string" />
<xs:element name="fieldB" type="xs:string" />
- <xs:element maxOccurs="unbounded" minOccurs="0" name="checklist">
- <xs:complexType>
- <xs:simpleContent>
- <xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>

The attributes of checklist field above could be: firstname, lastname, dob, etc.

I read from the user guide, the request parameter should look like below:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<RequestObject xmlns="http://www.rtsportscast.com/runningballwebadmin/schemas">
<checklist name=’firstname’>Johnson</checklist>
<fieldA>xx</fieldA>
<filedB>xx</filedB>
</RequestObject>
</soap:Body>
</soap:Envelope>

I'm having a hard time to create this attribute "<checklist name=’firstname’>Johnson</checklist>". I will be very grateful if someone can help me out on this one.
View user's profileFind all posts by singleCoderSend private message
Consuming SOAP web services
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic