Hi Shiva,

I suspect that the backend component has been updated and the wsdl has been
altered, but the stub has not been updated yet. Therefore the client side
component doesn't aware of the modification. I suggest that you may update
the wsdl file in stub resources and rebuilding the stub and client should
probably solve the issue.

Thank you  & Best regards,

*Amal Gunatilake*
 Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

On Thu, Aug 21, 2014 at 7:27 PM, Firzhan Naqash <firz...@wso2.com> wrote:

> Hi Shiva,
>
> I think there are no issues with the WSDL file.
>
> The basic reason for this issue is that client wasn't expecting the
> element ID. Therefore you can try out the same sample after generating the
> client again by using the same wsdl.
>
> Regards,
> Firzhan
>
>
> On Thu, Aug 21, 2014 at 3:41 PM, Shiva Balachandran <sh...@wso2.com>
> wrote:
>
>> Hi Kasun,
>>
>> Here is the Wsdl file
>>
>> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> xmlns:ns1="http://org.apache.axis2/xsd"; xmlns:ns="
>> http://mgt.student.carbon.wso2.org"; xmlns:wsaw="
>> http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="
>> http://schemas.xmlsoap.org/wsdl/http/"; xmlns:ax2102="
>> http://data.mgt.student.carbon.wso2.org/xsd"; xmlns:xs="
>> http://www.w3.org/2001/XMLSchema"; xmlns:soap="
>> http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:mime="
>> http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap12="
>> http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="
>> http://mgt.student.carbon.wso2.org";>
>>     <wsdl:documentation>StudentManager</wsdl:documentation>
>>     <wsdl:types>
>>         <xs:schema attributeFormDefault="qualified"
>> elementFormDefault="qualified" targetNamespace="
>> http://data.mgt.student.carbon.wso2.org/xsd";>
>>             <xs:complexType name="Student">
>>                 <xs:sequence>
>>                     <xs:element minOccurs="0" name="ID" type="xs:int"/>
>>                     <xs:element minOccurs="0" name="firstName"
>> nillable="true" type="xs:string"/>
>>                     <xs:element minOccurs="0" name="lastName"
>> nillable="true" type="xs:string"/>
>>                 </xs:sequence>
>>             </xs:complexType>
>>         </xs:schema>
>>         <xs:schema xmlns:ax2103="
>> http://data.mgt.student.carbon.wso2.org/xsd";
>> attributeFormDefault="qualified" elementFormDefault="qualified"
>> targetNamespace="http://mgt.student.carbon.wso2.org";>
>>             <xs:import namespace="
>> http://data.mgt.student.carbon.wso2.org/xsd"/>
>>             <xs:element name="getStudents">
>>                 <xs:complexType>
>>                     <xs:sequence/>
>>                 </xs:complexType>
>>             </xs:element>
>>             <xs:element name="getStudentsResponse">
>>                 <xs:complexType>
>>                     <xs:sequence>
>>                         <xs:element maxOccurs="unbounded" minOccurs="0"
>> name="return" nillable="true" type="ax2103:Student"/>
>>                     </xs:sequence>
>>                 </xs:complexType>
>>             </xs:element>
>>         </xs:schema>
>>     </wsdl:types>
>>     <wsdl:message name="getStudentsRequest">
>>         <wsdl:part name="parameters" element="ns:getStudents"/>
>>     </wsdl:message>
>>     <wsdl:message name="getStudentsResponse">
>>         <wsdl:part name="parameters" element="ns:getStudentsResponse"/>
>>     </wsdl:message>
>>     <wsdl:portType name="StudentManagerPortType">
>>         <wsdl:operation name="getStudents">
>>             <wsdl:input message="ns:getStudentsRequest"
>> wsaw:Action="urn:getStudents"/>
>>             <wsdl:output message="ns:getStudentsResponse"
>> wsaw:Action="urn:getStudentsResponse"/>
>>         </wsdl:operation>
>>     </wsdl:portType>
>>     <wsdl:binding name="StudentManagerSoap11Binding"
>> type="ns:StudentManagerPortType">
>>         <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
>> style="document"/>
>>         <wsdl:operation name="getStudents">
>>             <soap:operation soapAction="urn:getStudents"
>> style="document"/>
>>             <wsdl:input>
>>                 <soap:body use="literal"/>
>>             </wsdl:input>
>>             <wsdl:output>
>>                 <soap:body use="literal"/>
>>             </wsdl:output>
>>         </wsdl:operation>
>>     </wsdl:binding>
>>     <wsdl:binding name="StudentManagerSoap12Binding"
>> type="ns:StudentManagerPortType">
>>         <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
>> style="document"/>
>>         <wsdl:operation name="getStudents">
>>             <soap12:operation soapAction="urn:getStudents"
>> style="document"/>
>>             <wsdl:input>
>>                 <soap12:body use="literal"/>
>>             </wsdl:input>
>>             <wsdl:output>
>>                 <soap12:body use="literal"/>
>>             </wsdl:output>
>>         </wsdl:operation>
>>     </wsdl:binding>
>>     <wsdl:binding name="StudentManagerHttpBinding"
>> type="ns:StudentManagerPortType">
>>         <http:binding verb="POST"/>
>>         <wsdl:operation name="getStudents">
>>             <http:operation location="getStudents"/>
>>             <wsdl:input>
>>                 <mime:content type="text/xml" part="parameters"/>
>>             </wsdl:input>
>>             <wsdl:output>
>>                 <mime:content type="text/xml" part="parameters"/>
>>             </wsdl:output>
>>         </wsdl:operation>
>>     </wsdl:binding>
>>     <wsdl:service name="StudentManager">
>>         <wsdl:port name="StudentManagerHttpsSoap11Endpoint"
>> binding="ns:StudentManagerSoap11Binding">
>>             <soap:address location="
>> https://10.100.5.141:9443/services/StudentManager.StudentManagerHttpsSoap11Endpoint/
>> "/>
>>         </wsdl:port>
>>         <wsdl:port name="StudentManagerHttpsSoap12Endpoint"
>> binding="ns:StudentManagerSoap12Binding">
>>             <soap12:address location="
>> https://10.100.5.141:9443/services/StudentManager.StudentManagerHttpsSoap12Endpoint/
>> "/>
>>         </wsdl:port>
>>         <wsdl:port name="StudentManagerHttpsEndpoint"
>> binding="ns:StudentManagerHttpBinding">
>>             <http:address location="
>> https://10.100.5.141:9443/services/StudentManager.StudentManagerHttpsEndpoint/
>> "/>
>>         </wsdl:port>
>>     </wsdl:service>
>> </wsdl:definitions>
>>
>>
>> On Thu, Aug 21, 2014 at 3:21 PM, Kasun Dissanayake <kas...@wso2.com>
>> wrote:
>>
>>> Hi shiva.
>>>
>>> seems ID is not expecting by receiver. Unexpected subelement means that
>>> your client does not expecting  ID
>>> <http://mgt.student.carbon.wso2.org/xsd%7DID>.
>>> Just looking to your WSDL and find for this ID. if you can't please
>>> share your wsdl.
>>>
>>> Cheers
>>>
>>>
>>> On Thu, Aug 21, 2014 at 3:06 PM, Shiva Balachandran <sh...@wso2.com>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> I was working through this tutorial (
>>>> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/
>>>> ) on developing a carbon component. The maven build was successful and the
>>>> jars were deployed on the carbon server.
>>>>
>>>> I keep getting this error "*Cannot get the list of students . Backend
>>>> service may be unavailable*" so i performed a remote debug to identify
>>>> the error and i get this error "org.apache.axis2.databinding.ADBException:
>>>> Unexpected subelement {http://mgt.student.carbon.wso2.org/xsd}ID";, can
>>>> someone help me out here?
>>>>
>>>> Thank you.
>>>>
>>>> Regards
>>>>
>>>> Shiva Balachandran
>>>> Software Engineer
>>>>
>>>> Phone - +94 774445788
>>>>
>>>
>>>
>>>
>>> --
>>> Kasun Dissanayake
>>> Software Engineer
>>> WSO2 Inc.
>>> Lean | Enterprise | Middleware
>>> Tel - +94 77 086 2860
>>> Skype - kasun.dissanayake4
>>> LinkedIn - lk.linkedin.com/in/kasundis/
>>>
>>
>>
>>
>> --
>> Shiva Balachandran
>> Software Engineer
>>
>> Phone - +94 774445788
>>
>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to