Rest Support in gSoap 2.7

Hi t,

We are using GSOAP 2.7 and trying to implement the REST base Web Service using following xsd:

<?xml version="1.0" encoding="UTF-8"?>
 <schema targetNamespace="http://www.example.org/Test"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
  <!-- operation request element -->
  <element name="student">
   <complexType>
    <sequence>
     <element name="id" type="xsd:int" minOccurs="1" maxOccurs="1"/>
     <element name="firstName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
     <element name="lastName" type="xsd:string" minOccurs="1" maxOccurs="1"/>
     <element name="age" type="xsd:int" minOccurs="1" maxOccurs="1"/>
    </sequence>
   </complexType>
  </element>
   </schema>

Command to generate Code:

*         wsdl2h  -c -o server.h  server.xsd

*         soapcpp2 -c  server.h

*         gcc -o server server.c /home/gsoap-2.7/gsoap/plugin/httpget.c /home/gsoap-2.7/gsoap/plugin/httppost.c /home/gsoap-2.7/gsoap/stdsoap2.c soapC.c soapClient.c soapServer.c -I/home/gsoap-2.7/gsoap/plugin -I/home/gsoap-2.7/gsoap -L/home/gsoap-2.7/gsoap/ -lgsoap

Getting following errors:
"Validation constraint violation: tag name or namespace mismatch in element <student>"

Wireshark Logs
PFA RestServer_Dump (Wireshark pcap)
Server: 172.16.104.148
Client: 10.203.3.175

We are trying to access the WebService using Java Client.
Do you support REST base Interface to send following test contents:

1)      XML data in body.

Attaching Following:

*         JAVA client side code
        UserInfoClient.java
        Student.java


*         Wireshark pcap
RestServer_Dump

Regards,
Akash Sinha
Ext: 4125
[http://static.johnmcneilstudio.com/aricent/email_signature/aricent-footer-email-signature.jpg]

"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."

Received on Wednesday, 14 January 2015 08:17:09 UTC